#Return name of a item in a looped list variable.

1 messages · Page 1 of 1 (latest)

granite drift
#

Hello there,

maybe I'm just a bit dumb rn but I can't figure out how I would call the name of a item if I'm using loop-value instead of loop-item, for example because I loop a list variable.

Example code:

loop {example::items::*}:
  send "%loop-value%" to player

As you see, this snippet would just return the stack size and the id of the item, but not for example a custom name.

Thanks in advance :)

oak yoke
#

I presume you have items in this list, therefore it's simple as doing name of loop-value.