NBT of Advanced Enchantments

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

kamilleon

Member
Nov 18, 2017
48
0
6
24
So, i'm trying to read the value of a custom enchanted item from advanced enchantments with SkBee, but it always seems to return "<none>"

Picture:
lO9tHHb.png


Code:
Code:
on armor change:
    if new armor item is any armor:
        set {_gov} to tag "ae_enchantment;godlyoverload" of nbt of new armor item
        set {_ov} to "ae_enchantment;overload" tag of nbt of new armor item
        if {_gov} > 0:
            set {_cov} to 60+({_gov}*20)
        else if {_ov} > 0:
            set {_cov} to {_ov}*20
        else:
            set {_cov} to 0
        send "t %{_cov}% g %{_gov}% n %{_ov}%"
 
it looks like it's name is "ae_enchantment;overload" instead of just ae_enchantment;overload
try:
Code:
set {_gov} to tag """ae_enchantment;godlyoverload""" of nbt of new armor item
(in string, quoation marks must be doubled)
not sure though, just trying to help
 
it looks like it's name is "ae_enchantment;overload" instead of just ae_enchantment;overload
try:
Code:
set {_gov} to tag """ae_enchantment;godlyoverload""" of nbt of new armor item
(in string, quoation marks must be doubled)
not sure though, just trying to help
I tried that too, even trying to maybe "escape the quoation marks" like in java using \"
 
Status
Not open for further replies.