#Auto compressor Skript fails whenever I try to add flags

1 messages · Page 1 of 1 (latest)

civic root
#

Skript I have now:
every 0.1 second:
loop all players:
if loop-player is holding gray dye in offhand:
if loop-player's inventory contains 32 stone:
remove 32 stone from loop-player's inventory
give loop-player 1 cobblestone of efficiency 1 named "&3&lEnchanted Cobblestone" with all flags hidden

inland maple
#

cliche auto compressor attemp

#
  1. when sending code, format it in a code block; ```code```
  2. dont loop all players for something like this, especially that fast. just use the on pickup event
#
  1. you can check for and remove plain stone to prevent it taking custom items
#
  1. what do you mean "Skript fails"? Do you have an error message?
wanton wraith
#

Probably ‘in offhand’ part

#

Also possibly not having if