Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-67606

Effect names do not work in data tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 14w33c
    • None
    • 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)
    • Unconfirmed

      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}]}

            Unassigned Unassigned
            expertmac2 Mac
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: