on rightclick: if name of player's tool is "&4Rzucane TnT": set {tnt.%player%} to true shoot a TNT from player with speed 0.4 remove 1 tnt named "&4Rzucane TnT" from player wait 2 second set {tnt.%player%} to false on place tnt: if {tnt.%player%} is true: cancel event command /rzucanetnt: trigger: if player have 576 tnt: remove 576 tnt from the player's inventory give 1 tnt of infinity 5 named "&4Rzucane TnT" to the player else: send "Nie posiadasz wystarczajaco TnT"