mojira.dev
MC-164906

Infested blocks do not save silverfish NBT data

The bug

When a silverfish with unique NBT data (a.k.a. a named silverfish or a silverfish with a potion effect) tunnels into a block, the infested block does not save the silverfish's data. When the block is broken, the silverfish no longer has a name or any effects.

Linked issues

Attachments

Comments 13

Confirmed for Minecraft 1.16 Pre-Release 6

Can I request ownership over this ticket?

Confirmed for Minecraft 1.16 Pre-Release 7, I would like to request ownership of the ticket so I can continue updating it.

Confirmed in 1.16.1, one unintended consequence of making the silverfish eggs tile entities to store the NBT data though will be that they will no longer be able to be moved by pistons

3 more comments

Can confirm in 21w06a.

If this got fixed, the infested blocks will become tile entities, will making them can no longer able to be moved by pistons.

Can confirm in 1.20.6.

Can confirm in 24w35a

How to Fully Fix without too much issues:

This can be a bit of a tricky solution based on the other comments. Making the infested stone types tile entities will be a big problem. However, we can solve this by making a separate variant of the infested stone types that will hold NBT data as new blocks, while keeping the normal infested stone variants that does not hold NBT data. The infested stone types that were generated directly on world generation, those that came from the creative inventory or those that existed in the world prior to the fix version of this bug will not be tile entities. Later on if silverfish decide to infest a stone variant, that infested stone will be a tile entity with holds Silverfish NBT data.

We can explain the differences between the normal infested stone and the infested stone that holds NBT data.

Differences to the Infested Stone that holds silverfish data compared to those without NBT data:

  • These blocks use a separate identifier to normal infested stone blocks. For example: tile_entity_infested_stone

  • If these blocks are ever attempted to be pushed or pulled by pistons, it will be successful, but the NBT data is lost, unless Mojang allows all tile entities and their data to be moved by pistons.

  • These blocks have no item form, similar to other technical blocks like water. 

BCNOFNeNaMg

(Unassigned)

Community Consensus

(Unassigned)

19w44a, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Release Candidate 1, 1.16, ..., 21w08b, 21w10a, 1.20.6, 24w35a, 1.21.2 Pre-Release 2

Retrieved