Posted June 19, 20241 yr One of my items rely on the material of the block, so I'm wondering what did it get replaced with? Edited June 19, 20241 yr by Azarsra
June 20, 20241 yr nothing replace it you have to use the minecraft block tags or made your own lists of blocks if (dblkstate.canBeReplaced()) { System.out.println("blkstate.canBeReplaced()"); } if (dblkstate.is(BlockTags.MINEABLE_WITH_AXE)) { System.out.println("BlockTags.MINEABLE_WITH_AXE"); } if (dblkstate.is(BlockTags.MINEABLE_WITH_PICKAXE)) { System.out.println("BlockTags.MINEABLE_WITH_PICKAXE"); } if (dblkstate.is(BlockTags.MINEABLE_WITH_SHOVEL)) { System.out.println("BlockTags.MINEABLE_WITH_SHOVEL"); } if (dblkstate.is(BlockTags.LOGS)) { System.out.println("BlockTags.LOGS"); } if (dblkstate.is(BlockTags.PLANKS)) { System.out.println("BlockTags.PLANKS"); }
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.