mojira.dev
MC-67606

Effect names do not work in data tags

You can use effect names with the effect command:
/effect @p invisibility 10 (gives the player Invisibility for 10 seconds)

What is expected?:
/summon Zombie ~ ~ ~ {NoAI:1,ActiveEffects:[{Id:invisibility,Amplifier:0,Duration:9999}]} will spawn an invisible zombie.

What happens?:
A zombie with no status effects is spawned.

Workaround:
Use the ID of the effect instead:
/summon Zombie ~ ~ ~ {NoAI:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:9999}]}

Environment

OS:
Windows 7, 64-bit

Java version (from java -version):
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Linked issues

Comments 1

This is intended. For the time being, names can only be used in commands, and are just an alias for the effect numbers.

migrated

(Unassigned)

Unconfirmed

Minecraft 14w33c

Retrieved