Kill sand?

Ti
6

I'm building a tnt run in minecraft but I would like to make several floors but I have to somehow remove the sand and the tnt if it falls off, how can I do that?

Ri

With tags…

You can find a lot on YouTube

Be

/ kill @e [type = tnt]
/ kill @e [type = falling_block]

should work with these two commands

Ti

Do you also know how I get printing plates away, because when you start a game, only the falling tnt and the sand are removed and the printing plates stay in their place

Ti

I got it

Be

/ kill @e [type = item, nbt = {Item: {id: "minecraft: stone_pressure_plate"}}]

If you use a different type of pressure plate, you simply have to replace the stone

Be

Ah didn't see the answer