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

Riknesh

Active Member
Jun 9, 2017
76
2
8
Malaysia
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:
on spawn of sheep:
    "%spawn reason%" is not "natural":
        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
 
Code:
{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
 
Status
Not open for further replies.