Recently I started making a skymining server, and players need to be able to have a certain item, and if its in their offhand, it will compress iron ingots into compressed iron ingots, but I keep getting these errors when I reload the skript, can someone remake the skript and send it to me?
[doublepost=1673367441,1673314673][/doublepost]can someone please reply?
Code:
every 1 second:
loop all players:
if player's offhand is stone named "&f&lIronAutoCompressor":
loop all players where [input has 32 of iron ingots]:
set {_n} to number of iron ingots in loop-player's inventory
set {_n} to {_n} / 32
set {_n} to floor({_n})
loop {_n} times:
remove ({_n} * 32) of iron ingots from loop-player's offhand
give {_n} of iron ingots named "&dCompressed iron ingots" to the loop-player
[doublepost=1673367441,1673314673][/doublepost]can someone please reply?