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.

Custom NBT

Discussion in 'Skript' started by Riknesh, Feb 29, 2020.

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

    Riknesh Active Member

    Joined:
    Jun 9, 2017
    Messages:
    76
    Likes Received:
    2
    Im trying to make a skript where it adds the spawn reason to the nbt of a mob.
    I tried to test it on sheeps.

    Code (Text):
    1. on spawn of sheep:
    2.     "%spawn reason%" is not "natural":
    3.         add "{spawnreason:1}" to entity-nbt of last spawned sheep
    It seems like the skript isn't working. Any way to fix it or is there any other method?

    Running Skript 2.5-alpha1 and Sk-NBeeT 2.11.0 on Spigot 1.15.2
     
  2. Farid

    Farid Active Member

    Joined:
    Feb 5, 2017
    Messages:
    179
    Likes Received:
    11
    Code (Text):
    1. {SpawnReason:1}
    isn't an actual NBT Tag (source)

    If you want to set an identification that determines if a sheep isn't spawned naturally use TagAPI
     
  3. Riknesh

    Riknesh Active Member

    Joined:
    Jun 9, 2017
    Messages:
    76
    Likes Received:
    2
    isnt skstuff outdated? in its requirements it says skstuff. Im running on MC 1.15.2
     
Thread Status:
Not open for further replies.

Share This Page

Loading...