Hello so here's a code that worked a few years ago (2022 I think? so for quite old skript version) but which does not work anymore since I updated Skript and a few addons and I cannot find the uptodate syntax/way to do it. These were functions that were supposed to return an item named and with lore (and attributes, which is why I used NBT) with a command.
Result = no errors, just nothing
here's my skript and addons versions:
Please help
Code:
function FleshoftheoldKing() :: itemtype:
set {_i} to rotten flesh named "&2Flesh of the old King" with lore "&7Smells really bad ..." and "&7maybe an use for it ..?"
set {_n} to nbt compound of {_i}
return nbt item of {_n}
Code:
command /givecustom [<text>]:
permission: staff.admin
trigger:
if arg-1 is set:
if arg-1 is "FleshoftheoldKing":
give player FleshoftheoldKing()
Result = no errors, just nothing
here's my skript and addons versions:
Please help
Last edited: