Skript 2.2 with bensku's 1.12 fork, trying to give the player a variable-item.
My first line declares the item:
set {_eggType} to "%{_dragonElement::4}% spawn egg" parsed as item type
(note: also tried item, itemtype, and setting it to item type on a different line)
Then it gives the item:
give 1 {_eggType} named "&f%{_dragonElement::1}% Egg" with lore "&fHatching: &7[0%%]||&fClass: %{_dragonElement::2}%|| ||&7%{_dragonElement::3}%" to player
But it returns the error from the title. Typing in any other item such as egg will work, so I know that it's the variable. What am I doing wrong?
My first line declares the item:
set {_eggType} to "%{_dragonElement::4}% spawn egg" parsed as item type
(note: also tried item, itemtype, and setting it to item type on a different line)
Then it gives the item:
give 1 {_eggType} named "&f%{_dragonElement::1}% Egg" with lore "&fHatching: &7[0%%]||&fClass: %{_dragonElement::2}%|| ||&7%{_dragonElement::3}%" to player
But it returns the error from the title. Typing in any other item such as egg will work, so I know that it's the variable. What am I doing wrong?