mojira.dev
MC-162532

When invisible, players wearing heads will bug out

If you get the effect invisibility and put on a player, skeleton, zombie or other heads, the head will look in seemingly random directions

Linked issues

Attachments

Comments 1

Sorry for the long comment but a possible expansion on recreating the issue and probable cause

The Situation

I have a custom model on an armor stand's head. It is placed by using the armor stand's EntityTag on the item. Every now and then the model will rotate 180 degrees and flip upside down. The only thing that feels like it has an effect is another armor stand placed down that does have this pose.

How to recreate.

  1.  Add the attached resource pack.

  2.  Give the player these two items:

/give @p minecraft:armor_stand{CustomModelData:2s,EntityTag:{ArmorItems:[{},{},{},{id:"minecraft:armor_stand",Count:1b,tag:{CustomModelData:2s}}],DisabledSlots:2039583s,Tags:["pot"],Small:1b,Invisible:0b,Health:100.0f,Attributes:[{Name:"generic.maxHealth",Base:100.0f}],Pose:{Head:[180.0f,0.0f,0.0f]}},display:{Name:'{"text":"Pot","italic":false}'}} 1
/give @p minecraft:armor_stand{CustomModelData:1s,EntityTag:{ArmorItems:[{},{},{},{id:"minecraft:armor_stand",Count:1b,tag:{CustomModelData:1s}}],DisabledSlots:2039583s,Tags:["bomb"],Invisible:1b,Pose:{Head:[0.0f,0.0f,0.0f]}},display:{Name:'{"text":"Bomb","italic":false}'}} 1
  1. Place the pot down.

  2. Place the bomb down and look around. At certain angles the bomb flips upside-down and begins to float in the air.

  3. Break the pot. (Simply punching it should suffice)

  4. Move around. The bomb reverts to the normal state and no longer changes.

It appears to be a problem with transforms not being cleared when drawing invisible entities and the transforms are then being used from previously drawn entities as the pot does have this upside down pose on it's head.

I have attached a video of the issue occurring 

[media][media]

 and the resource pack i used. 

[media]

I must apologize for the particles and behaviour making it difficult to see in the video as the items are affected by the datapack i have on.

Rufus Macgill

Fry

Confirmed

Important

Rendering

19w40a

19w42a

Retrieved