Skip to content

Some NBT tags don't work in Spawn.json #549

@Tusason

Description

@Tusason

I tried a very simple script in which I wanted to add the following tags to all spawned mobs in my world: Invulnerable, noAI, Silent.

Here is the script:

[

{

  "eventspawn": false,
  "when": "finalize",
  "result": "default",
  "nbt": {"Invulnerable":true, "NoAI":true ,"Silent":true}

}

]

Strangely enough the NoAI rule seems to get applied correctly to all mobs but the Invulnerable and Silent nbt tags have no effect.

I also tried summoning a mob with the same tags as a test through a command to see if there was an issue with my game and that worked perfectly fine. Here's the command.

/summon zombie ~ ~ ~ {Invulnerable:1b,NoAI:1b,Silent:1b}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions