Yo wsp!
i am making a inventory for pets and when i try to add a pet it says a error and i dont know why it shows up
command /inventory:
trigger:
inventory(player, 0)
function inventory(p: player, page: number):
set {_gui} to a new chest inventory with 6 rows named "&aɪɴᴠᴇɴᴛᴏʀʏ"
set slot (integers from 0 to 9) of {_gui} to black stained glass pane named " "
set slot (17 , 18 , 26 , 27 , 35 , 36) of {_gui} to black stained glass pane named " "
set slot (integers from 44 to 54) of {_gui} to black stained glass pane named " "
set {_s} to 10
loop {%{_p}'s uuid%::petname::*}:
set {_a} to loop-value
if {_s} is not 17 or 26 or 35:
set slot {_s} of {_gui} to loop-value's skull named "&7ᴘʟᴀʏᴇʀ:&e %loop-value%" with lore "&7ʀᴀɴᴋ: %{_p}'s prefix%"
open {_gui} to {_p}
if i remove the lore then it works else it just gives me an error
