mojira.dev
MC-107494

Cannot summon Vex with empty right hand

What I expected to happen was...:
Summon a Vex with no items in his right hand

What actually happened was...:
It has an Iron Sword in his right hand.

Commands to Reproduce:

/summon Vex ~ ~ ~ {HandItems:[{id:air,Count:1},{}]}
/summon Vex ~ ~ ~ {HandItems:[{},{}]}

(If you say it's specification. I want change this specification.)


As of 1.11-pre release 1, spawn eggs are still unable to do this, however, this is a client side glitch and reloading the vex fixes it (as server side it has an empty hand)

/give @p minecraft:spawn_egg 1 0 {EntityTag:{id:"minecraft:vex",HandItems:[{id:air,Count:1b},{id:air,Count:1b}]}}

Linked issues

Comments 12

Confirmed. You can empty its hand via /entitydata, though:

/entitydata @e[type=vex] {HandItems:[{},{}]}

In 16w40a.
I successfulempty its hand with /summon

/summon Vex ~ ~1 ~ {ArmorItems:[{},{},{},{id:air,Count:1}]}

When specified air to the head, its hand is empty.

But Specified air to the mainhand. its has iron sword.

Confirmed in 1.11-pre1.
When used SpawnEgg with EntityTag.

/give @p minecraft:spawn_egg 1 0 {EntityTag:{id:"minecraft:vex",HandItems:[{id:air,Count:1b},{id:air,Count:1b}]}}

Please provide the command used.

In 1.11, from the server perspective (tested with /entitydata @e[type=vex] {} ):

/summon vex

- with a sword.

/summon vex ~ ~ ~ {HandItems:[0:{},1:{}]}

- without a sword.

/entitydata @e[type=vex] {HandItems:[0:{},1:{}]}

- empties the hands.

/replaceitem entity @e[type=vex] slot.weapon.mainhand air

- empties the hand.

/give @p minecraft:spawn_egg 1 0 {EntityTag:{id:"minecraft:vex",HandItems:[0:{},1:{}]}}

- when used, spawns a vex without a sword.

However, from the client side, the egg spawns a vex with a sword.
Quitting the world and reentering - fixes the graphic glitch.

2 more comments

First, can someone update the description and affected versions to 1.11?
Second, SunCat, you should test bugs in the latest version, (I believe that what being a helper means).
Also, the bug I described has nothing to do with https://bugs.mojang.com/browse/MC-87661, which is a server side bug, (though it can be opened as a separated one if needed and hasn't already, then we can mark https://bugs.mojang.com/browse/MC-107494 as fixed and related).

  1. It won't be updated because it's fixed: you can summon a vex with empty hands.

  2. I was sceptical about new comments being related to this bug. So I tested in 16w40a (which is confirmed to have this bug) and found that in that version vexes weren't fixed by re-entering the world, but other mobs were. So, this shows, that those bugs are different.
    Also, other mobs were (and are) affected only when being summoned by an egg, whether the vexes were also affected when you used /summon.

    1. Right now, it describes both client side and server side issue, although the difference is not mentioned.

      zombies vary equipment and type as they would without EntityTag

      (and it's a bit outdated, as the type no longer exist, but whatever)
      Also if you try the provided command, you will see that the equipment is set client side.

    2. I actually thought about splitting that ticket, but I need to test what tags do both of the issues affect, and how I can differentiate them between each other (other then client/server, of course). Then I'm going to discuss it with mods/other helpers.

    3. And I don't think that MC-107494 and your issue are related, aside from "both issues affect vexes from spawn eggs" and "they are both about items in hands"

Ok, got you!
Just let us know what will happen with the client bug, not now - when you will decide.

Confirmed for 1.11.2

@unknown, you most likely reproduced MC-87661, not this bug.

Chuzume

Erik Broes

Confirmed

Minecraft 16w39a, Minecraft 16w40a

Minecraft 16w44a, Minecraft 1.11

Retrieved