Posted April 20, 20178 yr I have this: @Override public void onBlockPlacedBy(World world, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack){ IBlockState bs = Blocks.FURNACE.getDefaultState(); BlockPos p1 = new BlockPos(pos.getX(),pos.getY()-1,pos.getZ()); world.destroyBlock(p1,true); world.setBlockState(p1, bs); } which works fine if i want a furnace, but i want the default state of a custom block. The custom block is registered , how do i get the state?
April 21, 20178 yr Author saved the instance of a the custom block i needed in my blockInit as a static , then i can just pull the instance when needed Edited April 21, 20178 yr by blinky000
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.