mojira.dev
MC-306096

Mobs that naturally spawn with equipment cannot have their equipment changed when spawned with jigsaw blocks.

When saving a structure containing an entity that naturally spawns with equipment (e.g. Skeleton), said entity will always spawn with their natural equipment during structure generation, even if its NBT is changed to different items.

How to reproduce:

  • Summon a skeleton with any item other than a bow, for example an Iron Sword.

  • Save it using a structure block.

  • Create a Jigsaw structure using a data-pack, containing said entity.

Expected result:

  • Structure generates a skeleton with an iron sword.

Actual result:

  • Structure generates a skeleton with a bow, (its natural equipment) rather than the custom equipment.

Entities that do not naturally spawn with equipment can have it changed and generate properly. Spawning the saved entity using a structure block manually also spawns it correctly, with the custom equipment.

Linked issues

Attachments

Comments 3

Hi!
Thank you for your report!ย 

  • Can you provide a structure file or a datapack?

Quick Links:ย 
๐Ÿ““โ€ฏIssue Guidelinesโ€ฏโ€“ ๐Ÿ’ฌโ€ฏMojang Supportโ€ฏโ€“ ๐Ÿ“งโ€ฏSuggestionsโ€ฏโ€“ ๐Ÿ“–โ€ฏMinecraft Wiki

[media]

Here is a datapack with a simple structure. The skeleton inside should have an iron sword and a turtle shell, however, it only spawns with the turtle shell, its sword is replaced with the default bow.

Hi!
Thank you for your report!ย 

We're already tracking this issue at MC-201198 , so I will resolve and link this ticket as a Duplicate.ย 

I suggest also to browse through the main issue for potential fixes.ย 

If you would like to add a vote and any extra information to the main ticket it would be appreciated.ย 

Quick Links:ย 
๐Ÿ““โ€ฏIssue Guidelinesโ€ฏโ€“ ๐Ÿ’ฌโ€ฏMojang Supportโ€ฏโ€“ ๐Ÿ“งโ€ฏSuggestionsโ€ฏโ€“ ๐Ÿ“–โ€ฏMinecraft Wiki

Adam

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved