Posted December 20, 20213 yr As Walls seem to use Tags, I'm trying to work out if a given block is a wall (e.g Cobblestone Wall), does anyone know a good way to go about doing this? Thank you!
December 21, 20213 yr you can check if the Block you have is Block.COBBLESTONE_WALL using the == operator
December 21, 20213 yr For a more generic check I guess you could check if(Block instanceof WallBlock) or you could grab the minecraft WALLS tags and check if the block is in the tags public static final Tag.Named<Block> myWalls = BlockTags.bind("minecraft:walls"); then BlockState.is(myWalls)
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.