1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Help About NBT

Discussion in 'Skript' started by DHStyle, May 23, 2018.

Tags:
Thread Status:
Not open for further replies.
  1. DHStyle

    DHStyle Member

    Joined:
    Jan 26, 2017
    Messages:
    57
    Likes Received:
    0
    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 (Skript):
    1. on spawn of zombie:
    2.     wait 1 ticks
    3.     set {_a} to spawned zombie
    4.     add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
    5.  
    while using the command succeeded
    Code (Skript):
    1. command /zomb:
    2.     trigger:
    3.         wait 1 ticks
    4.         spawn zombie at location of player
    5.         set {_a} to spawned zombie
    6.         add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:1b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
    7.  


     
  2. Best Answer:
    Post #6 by Lego_freak1999, May 23, 2018
  3. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    44
    Remove wait 1 tick and try
    Code (Skript):
    1. set {_a} to last spawned zombie
     
  4. DHStyle

    DHStyle Member

    Joined:
    Jan 26, 2017
    Messages:
    57
    Likes Received:
    0
    Not working :/


    Code (Skript):
    1. on spawn of zombie:
    2.     set {_a} to last spawned zombie
    3.     add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
    4.  
     
    • Agree Agree x 1
  5. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    44
    Try

    Code (Skript):
    1. on spawn of zombie:
    2.     set {_a} to event entity
    3.     add "{Silent:1,NoAI:0,IsBaby:1,ActiveEffects:[{Id:14b,Duration:2147483647,ShowParticles:0b}]}" to nbt of {_a}
     
  6. DHStyle

    DHStyle Member

    Joined:
    Jan 26, 2017
    Messages:
    57
    Likes Received:
    0
  7. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    44
    • Like Like x 1
  8. DHStyle

    DHStyle Member

    Joined:
    Jan 26, 2017
    Messages:
    57
    Likes Received:
    0
    working tq bro
    I want to ask if sheep get angry when hit by player and attack player
     
  9. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    44
    Make a separate post can’t help you
     
Thread Status:
Not open for further replies.

Share This Page

Loading...