Hello, I would need a hand with this skript. Hello, I would need a hand with this skript. I would like to make sure that typing /tnt give (quantity) is givved that number of tnt. I would like to make sure that typing /tnt give (quantity) is givved that number of tnt. The problem is that %arg-1% associates it with tnt, trying to givve a %arg-1%_tnt instead of tot tnt (I don't know if I explain)
Code:
on first join:
make console execute command "pex user %player% add utente.registrato"
on place:
if event-block is tnt:
if player is holding tnt named "&c&lTNT":
set block at event-block to air
spawn primed tnt at event-block
command /tnt give [<integer>]:
permission: addon.give.tnt
permission message: &cNon hai il permesso per eseguire questo comando!
trigger:
if arg-1 is integer:
give player %arg-1% tnt named "&c&lTNT"
else:
message "&c&lTNT &7(Addon) &8&l> &7 /tnt give <quantità>"