hey, I just created a pet skript and a menu for it, I get no errors but when I right-click on the menu while having all the right items it does not give me my item {VillagerPet} if anyone could help would be great I don't know why this doesn't work.
trigger:
set {VillagerSkull} to {VillagerSkull::%uuid of player%}
set {VillagerPet} to {VillagerSkull} named "&aVillager Pet &lCOMMON" with lore "&8Multiuse Pet" and "" and "&7This pet grants you" and "&7access to village tasks" and "&7from the clashgenz village" and "" and "&e&oRight - Click to spawn!"
on inventory click:
if name of event-inventory is "&8Pet Specialist":
if event-slot is 22:
if {balance::%UUID of player%} >= 250000:
if player has 1 poppy named "&cLost Golem Poppy":
if player has 10 glowstone dust named "&6Magic Cave Dust":
remove 250000 from {balance::%UUID of player%}
remove 1 poppy named "&cLost Golem Poppy" from player's inventory
remove 10 glowstone dust named "&6Magic Cave Dust" from player's inventory
give player 1 of {VillagerPet}
play sound "entity.player.levelup" with pitch 2 to player
send "&9&lPET SPECIALIST: &7You have purchased &aVillager Pet"
if {QuestStatus-CaveExplorer::%UUID of player%} is "Started-part4":
set {QuestStatus-CaveExplorer::%UUID of player%} to "Started-part5"
send "&7[Quest Book Updated]"
stop
play sound "block.note_block.bass" with pitch 2 to player
send "&9&lPET SPECIALIST: &7You cannot afford to purchase this!"
stop```

