I have a list called potions, {potions::id::name} and there is {potions::id::description}
i want to loop through all the ids then set the name and description to a book with the description as the lore
however, i am having issues looping the list, here is my script:
command /recipes:
trigger:
create a gui with virtual chest with 6 rows named "Main Menu":
set {_filler} to white stained glass pane named "&r"
loop 9 times:
make next gui slot with {_filler}
loop {potions::*}:
set {_name} to {potions::%loop-index%::name}
set {_description} to {potions::%loop-index%::description}
make next gui slot with book named {_name} with lore {_description}
loop 9 times:
make next gui slot with {_filler}
open last gui to command sender
i think the issue is with the 'loop {potions::*}' as when i remove what is in the loop and just put 'make next gui slot with book' it still doesn't work
here are the addons i am running skquery and tuske
i want to loop through all the ids then set the name and description to a book with the description as the lore
however, i am having issues looping the list, here is my script:
command /recipes:
trigger:
create a gui with virtual chest with 6 rows named "Main Menu":
set {_filler} to white stained glass pane named "&r"
loop 9 times:
make next gui slot with {_filler}
loop {potions::*}:
set {_name} to {potions::%loop-index%::name}
set {_description} to {potions::%loop-index%::description}
make next gui slot with book named {_name} with lore {_description}
loop 9 times:
make next gui slot with {_filler}
open last gui to command sender
i think the issue is with the 'loop {potions::*}' as when i remove what is in the loop and just put 'make next gui slot with book' it still doesn't work
here are the addons i am running skquery and tuske