Posted December 10, 20159 yr Hi, I'm trying to have MC place some stair blocks (non-vanilla, but they directly inherit from BlockStairs) and I got stuck with having them placed in specific directions. Here's a sample: world.setBlockState(pos, BlocksTC.stairsArcane.getDefaultState().withProperty(BlockStairs.FACING, EnumFacing.EAST)); The stairs class (not my code, of course ): package thaumcraft.common.blocks.basic; import net.minecraft.block.BlockStairs; import net.minecraft.block.state.IBlockState; import thaumcraft.common.Thaumcraft; public class BlockStairsTC extends BlockStairs { public BlockStairsTC(IBlockState modelState) { super(modelState); setCreativeTab(Thaumcraft.tabTC); setLightOpacity(0); } }
December 11, 20159 yr That looks like it should work. Is it not placing stairs facing east in the bottom half of the block? Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.