JimiIT92 Posted March 18, 2016 Posted March 18, 2016 So i was trying to update my stairs from 1.8 but seems something has changed in rendering. This is how they looks if placed upside And this is my stairs code, i've tried adding the isOpaqueCube function but it seems to change nothing package com.mineworld.blocks; import com.mineworld.core.MWTabs; import net.minecraft.block.Block; import net.minecraft.block.BlockStairs; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.util.EnumBlockRenderType; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; public class BlockStairsMW extends BlockStairs{ public BlockStairsMW(Block block) { this(block.getDefaultState()); } public BlockStairsMW(Block block, int meta) { this(block.getStateFromMeta(meta)); } public BlockStairsMW(IBlockState state) { super(state); this.setHardness(3.0F); this.setResistance(5.0F); if(state.getBlock().getMaterial(state).equals(Material.wood)) this.setStepSound(SoundType.WOOD); else this.setStepSound(SoundType.METAL); this.setCreativeTab(MWTabs.tabBlock); this.setLightOpacity(0); } @Override public boolean isOpaqueCube(IBlockState state) { return false; } } Quote Don't blame me if i always ask for your help. I just want to learn to be better
JimiIT92 Posted March 18, 2016 Author Posted March 18, 2016 Doesn't work. Also slabs has the same problem Quote Don't blame me if i always ask for your help. I just want to learn to be better
TheGreyGhost Posted March 19, 2016 Posted March 19, 2016 Hi I haven't started with 1.9 yet; I would suggest you should look at the vanilla stairs and/or slabs Block to see how they're different from your block; and how they're different to stairs from vanilla 1.8 You should probably also look in the json model files for anything different. -TGG Quote
JimiIT92 Posted March 19, 2016 Author Posted March 19, 2016 Appearently from rendering side nothing has changed in both json files and classes Quote Don't blame me if i always ask for your help. I just want to learn to be better
JimiIT92 Posted March 19, 2016 Author Posted March 19, 2016 So upgrading Forge to a newer version (when available) will sove the problem? Good to know And thanks for response Quote Don't blame me if i always ask for your help. I just want to learn to be better
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.