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!
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.
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
Replace the corresponding blocks with air.
Just remove 2/3 blocks at a time. Similar to a radius, I say. With TNT run you have to run anyway
Do you really want it with a plugin or would you also want to do it with commands?
As a plugin only