mojira.dev
MC-188568

The entity_properties block loot table condition is still dysfunctional for some explosive entities

Most explosive entities still cannot be properly detected by this in the entity_properties condition of block loot tables, contrary to Boq's comment on the matter (see attached)

The following is a list of explosive entities that work/don't work.

Works with:

-TNT

-Creeper

-Minecart with TNT

Does not work with:

-End Crystal

-Wither Skull

-Wither (spawning explosion)

-Fireball (using Ghast does not work either)

This can be reproduced by enabling the attached datapack, then destroying soul sand with each of these entities.

For the entities that work properly with the condition, a diamond sword is dropped. Otherwise, nothing drops.

Linked issues

Attachments

Comments 4

Please attach the data pack.

Done. The table's condition tests for an entity type tag, which contains a list of all the explosive entities.

Note: the underlying cause for end crystal probably also causes MC-233181.

Yarn 1.18-rc3: EndCrystalEntity#damage calls World#createExplosion with null as the entity instead of this (as seen in TNT code.).

Can confirm in 1.20.6:

[media]

ChromaKey

(Unassigned)

Community Consensus

Platform

Normal

Data Packs

data-pack

1.16 Pre-release 3, 1.16 Pre-release 5, 1.16.2, 1.20.6

Retrieved