Solved Help About NBT

  • 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.

DHStyle

Member
Jan 26, 2017
58
0
6
78
Hello i have a problem about NBT
how to give NBT to On Spawn of Zombie
but giving NBT using command succeeded
This is my script

this does not work and there is no error but, I try not to follow my NBT instead just like a regular zombie
code_language.skript:
on spawn of zombie:
    wait 1 ticks
    set {_a} to spawned zombie
    add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}

while using the command succeeded
code_language.skript:
command /zomb:
    trigger:
        wait 1 ticks
        spawn zombie at location of player
        set {_a} to spawned zombie
        add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:1b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
 
Hello i have a problem about NBT
how to give NBT to On Spawn of Zombie
but giving NBT using command succeeded
This is my script

this does not work and there is no error but, I try not to follow my NBT instead just like a regular zombie
code_language.skript:
on spawn of zombie:
    wait 1 ticks
    set {_a} to spawned zombie
    add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}

while using the command succeeded
code_language.skript:
command /zomb:
    trigger:
        wait 1 ticks
        spawn zombie at location of player
        set {_a} to spawned zombie
        add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:1b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}

Remove wait 1 tick and try
code_language.skript:
set {_a} to last spawned zombie
 
Remove wait 1 tick and try
code_language.skript:
set {_a} to last spawned zombie
Not working :/


code_language.skript:
on spawn of zombie:
    set {_a} to last spawned zombie
    add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
 
Not working :/


code_language.skript:
on spawn of zombie:
    set {_a} to last spawned zombie
    add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}

Try

code_language.skript:
on spawn of zombie:
    set {_a} to event entity
    add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
 
upload_2018-5-23_12-13-17.png
 
Status
Not open for further replies.