on explode:
if loop-block is air:
if loop-block's y-coordinate is bigger than event-entity:
set loop-block to fire
wait 3 seconds
set loop-block to air
on rightclick with flower pot:
shoot a tnt at speed 1
remove 1 flower pot from the player's inventory