so i'm going back to skript and I want to finish my skript, but the item doesn't get the tag ;( any help would be appreciated :D function enchantingthetools(p: player): set {_item} to slot 20 of {_p}'s current inventory set {_enchant} to slot {slots::enchanttable::type::%{enchant::%{_p}%}%} of {_p}'s current inventory's name set {_temp} to {_enchant} set {_levelofenchant} to {_enchant} replace all uppercase "ꟾ" with "" in {_temp} set {_enchantname} to lowercase {_temp} replace all {_temp} with "" in {_levelofenchant} add nbt compound from "{%{_enchant}%:%length of {_levelofenchant}%b}" to nbt of slot 20 of {_p}'s current inventory add "&7%{_enchant}%" to lore of slot 20 of {_p}'s current inventory send {_enchantname} to {_p}
#elp
1 messages · Page 1 of 1 (latest)
have you debugged?
also, uppercase "ꟾ" might not be a thing as its a non-standard character
it work
i can probalby remove the uppercase tho 💀
basically i tried uppercase "i" but it also remove in the enchant name so i used a special characher :P
couldnt you... just
check for it at the end with regexes?
or just use a space
replace all " I"
woudn't work for III
so i found out i did a dumb but terrible error and just forgot to add "name" to a var, so now instead of trying to add the tag "enchant ꟾꟾꟾ:3b" it try "enchant:3b" but still doesn't work
this is a very bad command that i plan on changing but it work, so idk what the weird ass nbt tag you sent agentphoenix but it woudn't work 💀 command /customenchants <offline player> <text> <text>: trigger: if {enchants::*} contains arg-2: add nbt compound from "{enchant:%length of arg-3%b}" to nbt of arg-1's tool
It wouldn’t work for custom enchants