if player's held item is {Giant}:
set {_waited} to difference between {cooldown.%player%.lastused} and now
if {_waited} is less than 1 seconds:
send "&f&lyou have to wait &a%difference between 15 seconds and {_waited}% so &f&lchill bro" to player
stop
else:
set {cooldown.%player%.lastused} to now
send "&fSwordgun has &eactivated" to player
set {_blck} to location of player's target block
set {_n} to nbt compound of "{NoAI:b, Invulnerable:1b, Invisible:1b}"
spawn giant at {_blck} with nbt {_n}
set {_z} to last spawned giant
set name of {_z} to "Dinnerbone"
set tool of {_z} to iron sword
play huge explosion at {_blck}
loop all entities in radius 15 of {_blck} :
damage loop-entity by 12 hearts
wait 10 second
kill {_z}
```
#no error i just don't see what the giant is holding
1 messages · Page 1 of 1 (latest)

