Minecraft plugin program special blocks under remove player | TNTRun?

Za
- in Plugins
6

If someone would help me it would be really helpful…

So I want to program my TNTRun plugin, and if the player runs over a block the block beneath him, the block next to it (i.e. From the block next to it on which the player stands and the other next to it too. So that the player 100 % runtefliegen (So a floor) and no bugs arise, thanks in advance!

Va

Create an EventHandler of the event type PlayerMoveEvent and check the block on which the player stands. With the location class you can also get the blocks around the player.

Za

I already know that, but how are the blocks removed so that the player falls 100%? Because if I just remove the block under the player, it may not fall off

Va

Replace the corresponding blocks with air.

Tr

Just remove 2/3 blocks at a time. Similar to a radius, I say. With TNT run you have to run anyway

gl

Do you really want it with a plugin or would you also want to do it with commands?

Za

As a plugin only