Advancement/Conditions/damage type
Minecraft Wiki article. Categories: Upcoming, Java_Edition_upcoming_tag, Top-level_data_pages
This article is reproduced from Advancement/Conditions/damage type on the Minecraft Wiki. Mirrored from revision 3677980. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- [NBT Compound / JSON Object] direct_entity: The entity that was the direct cause of the damage.
- entity predicate see Template:Nbt inherit/conditions/entity/template
- [NBT Compound / JSON Object] source_entity: Checks the entity that was the source of the damage (for example: The skeleton that shot the arrow).
- entity predicate see Template:Nbt inherit/conditions/entity/template
- [Boolean] is_direct: If
true, checks if the damage is direct (i.e. the direct and source entities are the same), iffalsechecks if the damage is not direct. Omitted to not check. - [NBT List / JSON Array] tags: An array of objects containing damage type tags that the type of the damage should be included in.
- [NBT Compound / JSON Object]: An object representing a damage type tag.
- [NBT Compound / JSON Object] direct_entity: The entity that was the direct cause of the damage.
Sources
- Advancement/Conditions/damage type — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3677980.