#How can I get a slot number from a variable?

1 messages · Page 1 of 1 (latest)

devout mirage
#

How can I get a slot number from a variable?

  loop player's inventory:
    if loop-value is a golden carrot:
      set {slot.%player's uuid%} to index of loop-value
...
    if slot {slot.%player's uuid%} of player's inventory does not contain golden carrot:
              ^ error
maiden geyser
#

could you not just put an else after if loop-value is a golden carrot