#elp

1 messages · Page 1 of 1 (latest)

sinful cobalt
#

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}

manic jackal
#

have you debugged?

#

also, uppercase "ꟾ" might not be a thing as its a non-standard character

sinful cobalt
#

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

manic jackal
#

couldnt you... just

#

check for it at the end with regexes?

#

or just use a space

#

replace all " I"

sinful cobalt
manic jackal
#

regexes would

#

you could I+

#

or just I+$

sinful cobalt
#

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

manic jackal
#

or you could just split it at space

#

and delete the last element

sinful cobalt
#

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

near niche
#

It wouldn’t work for custom enchants