Rubber Plank stairs got textures

This commit is contained in:
drcrazy 2019-03-01 17:29:19 +03:00
parent f6d94647e2
commit f6579f5c2c
11 changed files with 77 additions and 57 deletions

View file

@ -26,7 +26,6 @@ package techreborn.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockStairs;
import net.minecraft.block.state.IBlockState;
import reborncore.client.models.ModelCompound;
import reborncore.client.models.RebornModelRegistry;
import techreborn.TechReborn;
@ -34,8 +33,8 @@ import techreborn.init.TRContent;
public class BlockRubberPlankStair extends BlockStairs {
public BlockRubberPlankStair(IBlockState modelState, String name) {
super(modelState, Block.Properties.from(TRContent.RUBBER_PLANKS));
public BlockRubberPlankStair() {
super(TRContent.RUBBER_PLANKS.getDefaultState(), Block.Properties.from(TRContent.RUBBER_PLANKS));
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
}
}

View file

@ -88,8 +88,7 @@ public class RegistryEventHandler {
ItemBlockRubberSapling.class,
"rubber_sapling");
RebornRegistry.registerBlockNoItem(TRContent.RUBBER_LOG_SLAB = InitUtils.setup(new BlockRubberPlankSlab("rubber_plank"), "rubber_plank_slab"));
RebornRegistry.registerBlock(TRContent.RUBBER_LOG_STAIR = InitUtils.setup(new BlockRubberPlankStair(TRContent.RUBBER_LOG.getDefaultState(), "rubber_plank"),
"rubber_plank_stair"), new Item.Properties());
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");
}

View file

@ -44,7 +44,7 @@ public class TRContent {
public static Block RUBBER_LEAVES;
public static Block RUBBER_LOG;
public static Block RUBBER_LOG_SLAB;
public static Block RUBBER_LOG_STAIR;
public static Block RUBBER_PLANK_STAIR;
public static Block RUBBER_PLANKS;
public static Block RUBBER_SAPLING;

View file

@ -1,53 +1,45 @@
{
"forge_marker": 1,
"defaults": {
"textures": {
"bottom": "techreborn:blocks/rubber_planks",
"top": "techreborn:blocks/rubber_planks",
"side": "techreborn:blocks/rubber_planks"
}
},
"variants": {
"facing=east,half=bottom,shape=straight": { "model": "minecraft:stairs" },
"facing=west,half=bottom,shape=straight": { "model": "minecraft:stairs", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "minecraft:stairs", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "minecraft:stairs", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "minecraft:outer_stairs" },
"facing=west,half=bottom,shape=outer_right": { "model": "minecraft:outer_stairs", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "minecraft:outer_stairs", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "minecraft:outer_stairs", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "minecraft:outer_stairs", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "minecraft:outer_stairs", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "minecraft:outer_stairs" },
"facing=north,half=bottom,shape=outer_left": { "model": "minecraft:outer_stairs", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "minecraft:inner_stairs" },
"facing=west,half=bottom,shape=inner_right": { "model": "minecraft:inner_stairs", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "minecraft:inner_stairs", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "minecraft:inner_stairs", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "minecraft:inner_stairs", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "minecraft:inner_stairs", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "minecraft:inner_stairs" },
"facing=north,half=bottom,shape=inner_left": { "model": "minecraft:inner_stairs", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "minecraft:stairs", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "minecraft:stairs", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "minecraft:stairs", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "minecraft:stairs", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "minecraft:outer_stairs", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "minecraft:outer_stairs", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "minecraft:outer_stairs", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "minecraft:outer_stairs", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "minecraft:outer_stairs", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "minecraft:outer_stairs", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "minecraft:outer_stairs", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "minecraft:outer_stairs", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "minecraft:inner_stairs", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "minecraft:inner_stairs", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "minecraft:inner_stairs", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "minecraft:inner_stairs", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "minecraft:inner_stairs", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "minecraft:inner_stairs", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "minecraft:inner_stairs", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "minecraft:inner_stairs", "x": 180, "y": 270, "uvlock": true },
"inventory": [{ "model": "minecraft:stairs" }]
"facing=east,half=bottom,shape=straight": { "model": "techreborn:block/rubber_plank_stair" },
"facing=west,half=bottom,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "techreborn:block/rubber_plank_stair", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "techreborn:block/rubber_plank_stair_outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "techreborn:block/rubber_plank_stair_inner", "x": 180, "y": 270, "uvlock": true },
"inventory": [{ "model": "techreborn:block/rubber_plank_stair" }]
}
}

View file

@ -1,5 +1,5 @@
{
"parent": "block/orientable",
"parent": "minecraft:block/orientable",
"textures": {
"top": "techreborn:block/machines/tier1_machines/grinder_top_off",
"front": "techreborn:block/machines/tier1_machines/grinder_front_off",

View file

@ -1,5 +1,5 @@
{
"parent": "block/orientable",
"parent": "minecraft:block/orientable",
"textures": {
"top": "techreborn:block/machines/tier1_machines/grinder_top_on",
"front": "techreborn:block/machines/tier1_machines/grinder_front_on",

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/outer_stairs",
"textures": {
"bottom": "techreborn:block/rubber_planks",
"top": "techreborn:block/rubber_planks",
"side": "techreborn:block/rubber_planks"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/stairs",
"textures": {
"bottom": "techreborn:block/rubber_planks",
"top": "techreborn:block/rubber_planks",
"side": "techreborn:block/rubber_planks"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "minecraft:block/inner_stairs",
"textures": {
"bottom": "techreborn:block/rubber_planks",
"top": "techreborn:block/rubber_planks",
"side": "techreborn:block/rubber_planks"
}
}

View file

@ -0,0 +1,3 @@
{
"parent": "techreborn:block/grinder"
}

View file

@ -0,0 +1,3 @@
{
"parent": "techreborn:block/rubber_plank_stair"
}