From 64ba89dbdcc61c8ffed7d2557576936eb66da32f Mon Sep 17 00:00:00 2001 From: Waterpicker Date: Mon, 2 Jul 2018 00:46:51 -0500 Subject: [PATCH] Uploaded new prototype block - Marking Plate --- .../dimdev/dimdoors/client/ModelManager.java | 1 + .../shared/blocks/BlockMarkingPlate.java | 44 +++++++ .../dimdoors/shared/blocks/ModBlocks.java | 4 +- .../dimdoors/shared/items/ModItems.java | 4 +- .../dimdoors/blockstates/marking_plate.json | 5 + .../dimdoors/models/block/marking_plate.json | 112 ++++++++++++++++++ .../dimdoors/models/item/marking_plate.json | 3 + .../textures/blocks/marking_plate.png | Bin 0 -> 1243 bytes 8 files changed, 171 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/dimdev/dimdoors/shared/blocks/BlockMarkingPlate.java create mode 100644 src/main/resources/assets/dimdoors/blockstates/marking_plate.json create mode 100644 src/main/resources/assets/dimdoors/models/block/marking_plate.json create mode 100644 src/main/resources/assets/dimdoors/models/item/marking_plate.json create mode 100644 src/main/resources/assets/dimdoors/textures/blocks/marking_plate.png diff --git a/src/main/java/org/dimdev/dimdoors/client/ModelManager.java b/src/main/java/org/dimdev/dimdoors/client/ModelManager.java index cf72270e..e888c6e1 100644 --- a/src/main/java/org/dimdev/dimdoors/client/ModelManager.java +++ b/src/main/java/org/dimdev/dimdoors/client/ModelManager.java @@ -47,6 +47,7 @@ public final class ModelManager { register(ModItems.WOVEN_WORLD_THREAD_HELMET); register(ModItems.WOVEN_WORLD_THREAD_LEGGINGS); register(ModItems.CREEPY_RECORD); + register(ModItems.MARKING_PLATE); } @SubscribeEvent diff --git a/src/main/java/org/dimdev/dimdoors/shared/blocks/BlockMarkingPlate.java b/src/main/java/org/dimdev/dimdoors/shared/blocks/BlockMarkingPlate.java new file mode 100644 index 00000000..7dc1bb04 --- /dev/null +++ b/src/main/java/org/dimdev/dimdoors/shared/blocks/BlockMarkingPlate.java @@ -0,0 +1,44 @@ +package org.dimdev.dimdoors.shared.blocks; + +import net.minecraft.block.Block; +import net.minecraft.block.SoundType; +import net.minecraft.block.material.MapColor; +import net.minecraft.block.material.Material; +import net.minecraft.block.state.IBlockState; +import net.minecraft.item.EnumDyeColor; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.ResourceLocation; +import net.minecraft.util.math.AxisAlignedBB; +import net.minecraft.util.math.BlockPos; +import net.minecraft.world.IBlockAccess; +import org.dimdev.dimdoors.DimDoors; +import org.dimdev.dimdoors.shared.items.ModCreativeTabs; + +public class BlockMarkingPlate extends Block { + public static final Material FABRIC = new Material(MapColor.BLACK); + public static final String ID = "marking_plate"; + public static final AxisAlignedBB FULL_BLOCK_AABB = new AxisAlignedBB(0.25D, 0.0D, 0.0D, 0.75D, 1.875D, 1.0D); + + public BlockMarkingPlate() { + super(FABRIC); + setRegistryName(new ResourceLocation(DimDoors.MODID, ID)); + setUnlocalizedName(ID); + setCreativeTab(ModCreativeTabs.DIMENSIONAL_DOORS_CREATIVE_TAB); + setHardness(0.1F); + setSoundType(SoundType.STONE); + setLightLevel(0); + } + + @Override + public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face) { + return false; + } + + public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos) { + return false; + } + + public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { + return FULL_BLOCK_AABB; + } +} diff --git a/src/main/java/org/dimdev/dimdoors/shared/blocks/ModBlocks.java b/src/main/java/org/dimdev/dimdoors/shared/blocks/ModBlocks.java index c6636177..2211a730 100644 --- a/src/main/java/org/dimdev/dimdoors/shared/blocks/ModBlocks.java +++ b/src/main/java/org/dimdev/dimdoors/shared/blocks/ModBlocks.java @@ -24,6 +24,7 @@ public final class ModBlocks { public static final BlockFabricEternal ETERNAL_FABRIC = new BlockFabricEternal(); public static final BlockFabricUnravelled UNRAVELLED_FABRIC = new BlockFabricUnravelled(); public static final BlockFloatingRift RIFT = new BlockFloatingRift(); + public static final BlockMarkingPlate MARKING_PLATE = new BlockMarkingPlate(); @SubscribeEvent public static void registerBlocks(RegistryEvent.Register event) { @@ -40,6 +41,7 @@ public final class ModBlocks { ANCIENT_FABRIC, UNRAVELLED_FABRIC, ETERNAL_FABRIC, - RIFT); + RIFT, + MARKING_PLATE); } } diff --git a/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java b/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java index 2e65b819..d8e63707 100644 --- a/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java +++ b/src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java @@ -51,6 +51,7 @@ public final class ModItems { public static final ItemBlock UNRAVELLED_FABRIC = (ItemBlock) new ItemBlock(ModBlocks.UNRAVELLED_FABRIC).setRegistryName(ModBlocks.UNRAVELLED_FABRIC.getRegistryName()); public static final ItemBlock ETERNAL_FABRIC = (ItemBlock) new ItemBlock(ModBlocks.ETERNAL_FABRIC).setRegistryName(ModBlocks.ETERNAL_FABRIC.getRegistryName()); public static final ItemDimensionalTrapdoorWood WOOD_DIMENSIONAL_TRAPDOOR = new ItemDimensionalTrapdoorWood(); + public static final ItemBlock MARKING_PLATE = (ItemBlock) new ItemBlock(ModBlocks.MARKING_PLATE).setRegistryName(ModBlocks.MARKING_PLATE.getRegistryName()); // Records public static final ItemModRecord CREEPY_RECORD = new ItemModRecord("creepy", CREEPY); @@ -82,6 +83,7 @@ public final class ModItems { UNRAVELLED_FABRIC, ETERNAL_FABRIC, WOOD_DIMENSIONAL_TRAPDOOR, - CREEPY_RECORD); + CREEPY_RECORD, + MARKING_PLATE); } } diff --git a/src/main/resources/assets/dimdoors/blockstates/marking_plate.json b/src/main/resources/assets/dimdoors/blockstates/marking_plate.json new file mode 100644 index 00000000..289d4d48 --- /dev/null +++ b/src/main/resources/assets/dimdoors/blockstates/marking_plate.json @@ -0,0 +1,5 @@ +{ + "variants": { + "normal": { "model": "dimdoors:marking_plate" } + } +} diff --git a/src/main/resources/assets/dimdoors/models/block/marking_plate.json b/src/main/resources/assets/dimdoors/models/block/marking_plate.json new file mode 100644 index 00000000..27e4c8bc --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/block/marking_plate.json @@ -0,0 +1,112 @@ +{ + "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", + "textures": { + "0": "dimdoors:blocks/marking_plate" + }, + "elements": [ + { + "name": "core", + "from": [ 5.0, 0.0, 1.0 ], + "to": [ 11.0, 30.0, 15.0 ], + "faces": { + "north": { "texture": "#0", "uv": [ 0.0, 0.0, 8.0, 16.0 ] }, + "east": { "texture": "#0", "uv": [ 0.0, 0.0, 8.0, 16.0 ] }, + "south": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 16.0 ] }, + "west": { "texture": "#0", "uv": [ 0.0, 0.0, 8.0, 16.0 ] }, + "up": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 14.0 ] }, + "down": { "texture": "#0", "uv": [ 0.0, 0.0, 6.0, 14.0 ] } + } + }, + { + "name": "top", + "from": [ 4.0, 30.0, 0.0 ], + "to": [ 12.0, 30.6, 16.0 ], + "faces": { + "north": { "texture": "#0", "uv": [ 8.0, 3.0, 16.0, 3.6 ] }, + "east": { "texture": "#0", "uv": [ 8.0, 15.0, 16.0, 15.6 ] }, + "south": { "texture": "#0", "uv": [ 8.0, 11.0, 16.0, 11.6 ] }, + "west": { "texture": "#0", "uv": [ 8.0, 3.0, 16.0, 3.5999999999999996 ] }, + "up": { "texture": "#0", "uv": [ 8.0, 0.0, 16.0, 16.0 ] }, + "down": { "texture": "#0", "uv": [ 8.0, 0.0, 16.0, 16.0 ] } + } + }, + { + "name": "base1", + "from": [ 4.5, 0.0, 0.5 ], + "to": [ 11.5, 5.0, 15.5 ], + "faces": { + "north": { "texture": "#0", "uv": [ 8.0, 3.0, 15.0, 8.0 ] }, + "east": { "texture": "#0", "uv": [ 8.0, 4.0, 16.0, 9.0 ] }, + "south": { "texture": "#0", "uv": [ 9.0, 9.0, 16.0, 14.0 ] }, + "west": { "texture": "#0", "uv": [ 9.0, 11.0, 16.0, 16.0 ] }, + "up": { "texture": "#0", "uv": [ 8.0, 0.0, 15.0, 15.0 ] }, + "down": { "texture": "#0", "uv": [ 8.0, 0.0, 15.0, 15.0 ] } + } + }, + { + "name": "base2", + "from": [ 4.0, 0.0, 0.0 ], + "to": [ 12.0, 1.0, 16.0 ], + "faces": { + "north": { "texture": "#0", "uv": [ 8.0, 2.0, 16.0, 3.0 ] }, + "east": { "texture": "#0", "uv": [ 8.0, 6.0, 16.0, 7.0 ] }, + "south": { "texture": "#0", "uv": [ 8.0, 4.0, 16.0, 5.0 ] }, + "west": { "texture": "#0", "uv": [ 8.0, 11.0, 16.0, 12.0 ] }, + "up": { "texture": "#0", "uv": [ 8.0, 0.0, 16.0, 16.0 ] }, + "down": { "texture": "#0", "uv": [ 8.0, 0.0, 16.0, 16.0 ] } + } + }, + { + "name": "line1", + "from": [ 4.5, 5.0, 0.5 ], + "to": [ 5.0, 30.0, 1.0 ], + "faces": { + "north": { "texture": "#0", "uv": [ 12.0, 0.0, 12.5, 25.0 ] }, + "east": { "texture": "#0", "uv": [ 12.0, 0.0, 12.5, 25.0 ] }, + "south": { "texture": "#0", "uv": [ 12.0, 0.0, 12.5, 25.0 ] }, + "west": { "texture": "#0", "uv": [ 11.0, 0.0, 11.5, 25.0 ] }, + "up": { "texture": "#0", "uv": [ 12.0, 4.0, 12.5, 4.5 ] }, + "down": { "texture": "#0", "uv": [ 9.0, 9.0, 9.5, 9.5 ] } + } + }, + { + "name": "line2", + "from": [ 4.5, 5.0, 15.0 ], + "to": [ 5.0, 30.0, 15.5 ], + "faces": { + "north": { "texture": "#0", "uv": [ 12.0, 0.0, 12.5, 25.0 ] }, + "east": { "texture": "#0", "uv": [ 10.0, 0.0, 10.5, 25.0 ] }, + "south": { "texture": "#0", "uv": [ 10.0, 0.0, 10.5, 25.0 ] }, + "west": { "texture": "#0", "uv": [ 11.0, 0.0, 11.5, 25.0 ] }, + "up": { "texture": "#0", "uv": [ 11.0, 9.0, 11.5, 9.5 ] }, + "down": { "texture": "#0", "uv": [ 11.0, 6.0, 11.5, 6.5 ] } + } + }, + { + "name": "line3", + "from": [ 11.0, 5.0, 15.0 ], + "to": [ 11.5, 30.0, 15.5 ], + "faces": { + "north": { "texture": "#0", "uv": [ 11.0, 0.0, 11.5, 25.0 ] }, + "east": { "texture": "#0", "uv": [ 10.0, 0.0, 10.5, 25.0 ] }, + "south": { "texture": "#0", "uv": [ 9.0, 0.0, 9.5, 25.0 ] }, + "west": { "texture": "#0", "uv": [ 8.0, 0.0, 8.5, 25.0 ] }, + "up": { "texture": "#0", "uv": [ 15.0, 9.0, 15.5, 9.5 ] }, + "down": { "texture": "#0", "uv": [ 9.0, 4.0, 9.5, 4.5 ] } + } + }, + { + "name": "line4", + "from": [ 11.0, 5.0, 0.5 ], + "to": [ 11.5, 30.0, 1.0 ], + "faces": { + "north": { "texture": "#0", "uv": [ 10.0, 0.0, 10.5, 25.0 ] }, + "east": { "texture": "#0", "uv": [ 11.0, 0.0, 11.5, 25.0 ] }, + "south": { "texture": "#0", "uv": [ 12.0, 0.0, 12.5, 25.0 ] }, + "west": { "texture": "#0", "uv": [ 13.0, 0.0, 13.5, 25.0 ] }, + "up": { "texture": "#0", "uv": [ 12.0, 9.0, 12.5, 9.5 ] }, + "down": { "texture": "#0", "uv": [ 12.0, 8.0, 12.5, 8.5 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/dimdoors/models/item/marking_plate.json b/src/main/resources/assets/dimdoors/models/item/marking_plate.json new file mode 100644 index 00000000..78983224 --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/item/marking_plate.json @@ -0,0 +1,3 @@ +{ + "parent": "dimdoors:block/marking_plate" +} diff --git a/src/main/resources/assets/dimdoors/textures/blocks/marking_plate.png b/src/main/resources/assets/dimdoors/textures/blocks/marking_plate.png new file mode 100644 index 0000000000000000000000000000000000000000..bfbbcb91f229864c16af5182435482917d7375a8 GIT binary patch literal 1243 zcmV<11SI>3P)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00cuxL_t(o!jJkKblfSFNi#pQAVGvo8~6Mz2v!Nve1SD6Jka5N_xbd0vch7;rco5JG^6fSEClBSHu`pU-Ao z+p?5`)*4!CU~bR5fIwZ;wC>P-^ty7+7={7PIb1Fm0KoBhM9vv8Mx4**t>^2V@zxqd zcG^(hZwqrGgn-r>y!XgC-(^w_YWv-~f#B#Jws|-~-C1U_2%U2{91e&vnh_#G2*KJ; z-@W%cJg`MgL~jvvYZcQp83t;t21ISiQVK-m2Wj0ou)hDEZh6RtbKYiwMyZpqwPx8+ za?&hliNa%Ry;BP5{vHk^j>n^AK!*)88z$7)ihQ;`@7+TQq<{G7gi>z5PNx%EYsfj< z#X1M3X~OArvgnl=wM5La@_-0l)_iSCdFtHv_cxq#2qDIN2HY2N!I~Z(=Q?hSZ3ZFp!X#hAREOBAOvQC_iOK`luUqV znh%GA4WyKkDJCtG>w~)+c!F*M%Fd`3>-iWXj>n@7rXI*W2KuRLM08_Au~v{hjUe~L zCBjBBr4$pS8gWYLP6cTz>P&cFmdgvEcHN*usAoa_KPPQZXKrOA{0~Y^M#e_cFE0Q9002ovPDHLk FV1j`gDs=z= literal 0 HcmV?d00001