I have an advanced item, and i want click right button on any block to destroy it.
I can destroy the block on the client side, but the server will return it immediately
Please, i really need help
What I should do?
LevelAccessor level = player.getLevel();
level.destroyBlock(blockPos,false);
i need to destroy the block at xyz coordinates, the block is broken and put back
LevelAccessor level = player.getLevel();
level.destroyBlock(blockPos,false);
i need to destroy the block at xyz coordinates, the block is broken and put back
5 replies
Important Information
By using this site, you agree to our Terms of Use.