Posted October 28, 20186 yr I am trying to get a block state from a block by doing Blocks.HARDENED_STAINED_CLAY.getStateById();. But when I go into the game, I don't get the right block. I figured out that getStateById doesn't work with what I am trying to do. Which method do I use though?
October 28, 20186 yr 6 minutes ago, EOT3000 said: getStateById This is an internal method for getting the blockstate from an internal ID. Never use anything that involves IDs ever. 6 minutes ago, EOT3000 said: Which method do I use though? Construct the blockstate yourself with the properties you need. Blocks.STAINED_HARDENED_CLAY.getDefaultState().withProperty(BlockColored.COLOR, EnumDyeColor.WHITE)
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.