Uploaded new prototype block - Marking Plate

This commit is contained in:
Waterpicker 2018-07-02 00:46:51 -05:00
parent 85b66dd883
commit 64ba89dbdc
8 changed files with 171 additions and 2 deletions

View file

@ -47,6 +47,7 @@ public final class ModelManager {
register(ModItems.WOVEN_WORLD_THREAD_HELMET); register(ModItems.WOVEN_WORLD_THREAD_HELMET);
register(ModItems.WOVEN_WORLD_THREAD_LEGGINGS); register(ModItems.WOVEN_WORLD_THREAD_LEGGINGS);
register(ModItems.CREEPY_RECORD); register(ModItems.CREEPY_RECORD);
register(ModItems.MARKING_PLATE);
} }
@SubscribeEvent @SubscribeEvent

View file

@ -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;
}
}

View file

@ -24,6 +24,7 @@ public final class ModBlocks {
public static final BlockFabricEternal ETERNAL_FABRIC = new BlockFabricEternal(); public static final BlockFabricEternal ETERNAL_FABRIC = new BlockFabricEternal();
public static final BlockFabricUnravelled UNRAVELLED_FABRIC = new BlockFabricUnravelled(); public static final BlockFabricUnravelled UNRAVELLED_FABRIC = new BlockFabricUnravelled();
public static final BlockFloatingRift RIFT = new BlockFloatingRift(); public static final BlockFloatingRift RIFT = new BlockFloatingRift();
public static final BlockMarkingPlate MARKING_PLATE = new BlockMarkingPlate();
@SubscribeEvent @SubscribeEvent
public static void registerBlocks(RegistryEvent.Register<Block> event) { public static void registerBlocks(RegistryEvent.Register<Block> event) {
@ -40,6 +41,7 @@ public final class ModBlocks {
ANCIENT_FABRIC, ANCIENT_FABRIC,
UNRAVELLED_FABRIC, UNRAVELLED_FABRIC,
ETERNAL_FABRIC, ETERNAL_FABRIC,
RIFT); RIFT,
MARKING_PLATE);
} }
} }

View file

@ -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 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 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 ItemDimensionalTrapdoorWood WOOD_DIMENSIONAL_TRAPDOOR = new ItemDimensionalTrapdoorWood();
public static final ItemBlock MARKING_PLATE = (ItemBlock) new ItemBlock(ModBlocks.MARKING_PLATE).setRegistryName(ModBlocks.MARKING_PLATE.getRegistryName());
// Records // Records
public static final ItemModRecord CREEPY_RECORD = new ItemModRecord("creepy", CREEPY); public static final ItemModRecord CREEPY_RECORD = new ItemModRecord("creepy", CREEPY);
@ -82,6 +83,7 @@ public final class ModItems {
UNRAVELLED_FABRIC, UNRAVELLED_FABRIC,
ETERNAL_FABRIC, ETERNAL_FABRIC,
WOOD_DIMENSIONAL_TRAPDOOR, WOOD_DIMENSIONAL_TRAPDOOR,
CREEPY_RECORD); CREEPY_RECORD,
MARKING_PLATE);
} }
} }

View file

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "dimdoors:marking_plate" }
}
}

View file

@ -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 ] }
}
}
]
}

View file

@ -0,0 +1,3 @@
{
"parent": "dimdoors:block/marking_plate"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB