July 27, 20187 yr 11 minutes ago, Toastyman23 said: if(play.world.getBlockState(blockPos) == Blocks.GRASS.getBlockState()) This won't ever be true. Block#getBlockState returns a BlockStateContainer while World#getBlockState(BlockPos) returns an IBlockState. So instead do Block#getDefaultState() Edited July 27, 20187 yr by Animefan8888 VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
July 27, 20187 yr Author 3 minutes ago, Animefan8888 said: This won't ever be true. getBlockState returns a Block#BlockStateContainer while World#getBlockState(BlockPos) returns an IBlockState. So instead do Block#getDefaultState() Am I changing the getBlockState after play.world, the one after Blocks.GRASS, or both?
July 27, 20187 yr Just now, Toastyman23 said: Am I changing the getBlockState after play.world, the one after Blocks.GRASS, or both? Blocks.GRASS VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
July 27, 20187 yr Author 2 minutes ago, Animefan8888 said: Blocks.GRASS Finally, it works. Thanks for your help!
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.