More rubber stuff
This commit is contained in:
parent
9079765bc9
commit
d2db53f6f2
7 changed files with 27 additions and 24 deletions
|
@ -34,11 +34,9 @@ import reborncore.client.models.RebornModelRegistry;
|
||||||
import techreborn.TechReborn;
|
import techreborn.TechReborn;
|
||||||
|
|
||||||
public class BlockRubberPlankSlab extends BlockSlab {
|
public class BlockRubberPlankSlab extends BlockSlab {
|
||||||
public final String name;
|
|
||||||
|
|
||||||
public BlockRubberPlankSlab(String name) {
|
public BlockRubberPlankSlab() {
|
||||||
super(Block.Properties.create(Material.WOOD, MaterialColor.OBSIDIAN).hardnessAndResistance(2.0F, 15.0F).sound(SoundType.WOOD));
|
super(Block.Properties.create(Material.WOOD, MaterialColor.OBSIDIAN).hardnessAndResistance(2.0F, 15.0F).sound(SoundType.WOOD));
|
||||||
this.name = name;
|
|
||||||
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
|
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class RegistryEventHandler {
|
||||||
RebornRegistry.registerBlock(TRContent.RUBBER_SAPLING = InitUtils.setup(new BlockRubberSapling(), "rubber_sapling"),
|
RebornRegistry.registerBlock(TRContent.RUBBER_SAPLING = InitUtils.setup(new BlockRubberSapling(), "rubber_sapling"),
|
||||||
ItemBlockRubberSapling.class,
|
ItemBlockRubberSapling.class,
|
||||||
"rubber_sapling");
|
"rubber_sapling");
|
||||||
RebornRegistry.registerBlockNoItem(TRContent.RUBBER_LOG_SLAB = InitUtils.setup(new BlockRubberPlankSlab("rubber_plank"), "rubber_plank_slab"));
|
RebornRegistry.registerBlock(TRContent.RUBBER_PLANK_SLAB = InitUtils.setup(new BlockRubberPlankSlab(), "rubber_plank_slab"), new Item.Properties().group(TechReborn.ITEMGROUP));
|
||||||
RebornRegistry.registerBlock(TRContent.RUBBER_PLANK_STAIR = InitUtils.setup(new BlockRubberPlankStair(), "rubber_plank_stair"), new Item.Properties().group(TechReborn.ITEMGROUP));
|
RebornRegistry.registerBlock(TRContent.RUBBER_PLANK_STAIR = InitUtils.setup(new BlockRubberPlankStair(), "rubber_plank_stair"), new Item.Properties().group(TechReborn.ITEMGROUP));
|
||||||
|
|
||||||
TechReborn.LOGGER.debug("TechReborns Blocks Loaded");
|
TechReborn.LOGGER.debug("TechReborns Blocks Loaded");
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class TRContent {
|
||||||
public static Block REINFORCED_GLASS;
|
public static Block REINFORCED_GLASS;
|
||||||
public static Block RUBBER_LEAVES;
|
public static Block RUBBER_LEAVES;
|
||||||
public static Block RUBBER_LOG;
|
public static Block RUBBER_LOG;
|
||||||
public static Block RUBBER_LOG_SLAB;
|
public static Block RUBBER_PLANK_SLAB;
|
||||||
public static Block RUBBER_PLANK_STAIR;
|
public static Block RUBBER_PLANK_STAIR;
|
||||||
public static Block RUBBER_PLANKS;
|
public static Block RUBBER_PLANKS;
|
||||||
public static Block RUBBER_SAPLING;
|
public static Block RUBBER_SAPLING;
|
||||||
|
|
|
@ -1,21 +1,7 @@
|
||||||
{
|
{
|
||||||
"forge_marker": 1,
|
"variants": {
|
||||||
"defaults": {
|
"type=bottom": { "model": "techreborn:block/rubber_plank_slab" },
|
||||||
"model": "half_slab",
|
"type=top": { "model": "techreborn:block/rubber_plank_slab_top" },
|
||||||
"textures": {
|
"type=double": { "model": "techreborn:block/rubber_planks" }
|
||||||
"top": "techreborn:blocks/rubber_planks",
|
|
||||||
"bottom": "techreborn:blocks/rubber_planks",
|
|
||||||
"side": "techreborn:blocks/rubber_planks"
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"variants": {
|
|
||||||
"inventory": { "transform": "forge:default-block" },
|
|
||||||
"half": {
|
|
||||||
"top": { "model": "upper_slab" },
|
|
||||||
"bottom": { "model": "half_slab" }
|
|
||||||
},
|
|
||||||
"variant": {
|
|
||||||
"default": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:block/slab",
|
||||||
|
"textures": {
|
||||||
|
"bottom": "techreborn:block/rubber_planks",
|
||||||
|
"top": "techreborn:block/rubber_planks",
|
||||||
|
"side": "techreborn:block/rubber_planks"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:block/slab_top",
|
||||||
|
"textures": {
|
||||||
|
"bottom": "techreborn:block/rubber_planks",
|
||||||
|
"top": "techreborn:block/rubber_planks",
|
||||||
|
"side": "techreborn:block/rubber_planks"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"parent": "techreborn:block/rubber_plank_slab"
|
||||||
|
}
|
Loading…
Reference in a new issue