Posted June 13, 20205 yr so I'm trying to make a rock salt block item thing, which basically breaks when a animal steps on it and it scares off mobs. How would I do this?
June 13, 20205 yr override onEntityWalk to run world.setBlockState(pos, Blocks.AIR.getDefaultState(), 3);
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.