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

Spawn egg doesn't work with Passengers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.9
    • None
    • Unconfirmed

      Since Minecraft 1.9, spawn_egg use NBT tag instead of damage id to specify the mob.

      Here an exemple to give a pig egg:

      /give @p spawn_egg 1 0 {EntityTag:{id:Pig}}

      So it's now possible to add extra NBT tag about mobs, for example here is a spawn_egg to spawn pig with a saddle and glowing effect

      /give @p spawn_egg 1 0 {EntityTag:{id:Pig,Glowing:1,Saddle:1}}

      That work as intented (see screenshot 1).

      But if I try to create a spawn_egg to spawn a pig ridding a glowing spider (= a spider with a pig as passenger), here the command:

      /give @p spawn_egg 1 0 {EntityTag:{id:Spider,Glowing:1,Passengers:[{id:Pig}]}}

      The spawn egg only spawn the spider without its passengers (see screenshot 2).

      It's only a spawn problem, the NBT datas are correctly saved (screenshot 3).

        1. screenshot3-nbt-datas.png
          screenshot3-nbt-datas.png
          6 kB
        2. screenshot2.png
          screenshot2.png
          349 kB
        3. screenshot1.png
          screenshot1.png
          327 kB

            Unassigned Unassigned
            Tronics Tronics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: