mojira.dev
MC-201198

Strays in naturally generated custom structures do not have NBT assigned to their bows properly.

I used strays in a structure that was made to generate naturally using the world generation feature in datapacks. The bow it was holding had enchantments and custom tags, but upon world generation the NBT tags for the bows were completely removed. If I manually create the structure with a structure block it functions fine, and when looking at the NBT data for the structure it shows the data being properly saved.

 

The saved structure.

[media]


 

The NBT data for the structure, confirming that HandItems was saved properly.

[media]


 

 This is a picture of the structure being naturally generated. Note that the bows have no enchants.

[media]

Linked issues

Attachments

Comments 3

Addendum: this bug applies to all entities in naturally generated structures. HandItems are always randomized using vanilla/non preset settings regardless of the saved NBT data.

Please include a data pack/world for testing this

Reopened based on MC-306096 - Issue with spawning with custom weapons. User had provided a Data Pack and issue occurs.

Added relation to MC-108149 - it lists out various NBT tags not applied on world generation.

Surviving Te

(Unassigned)

Confirmed

(Unassigned)

1.16.3, 1.21.11

Retrieved