Data component format/mob visibility
Minecraft Wiki article. Categories: Information_needed, Top-level_data_pages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/mob visibility on the Minecraft Wiki. Mirrored from revision 3678109. 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] minecraft:mob_visibility: Represents the visibility percentage provided by an item with the appropriate minecraft:equippable component, modifying the range at which mobs are able to detect an entity.
- [String][NBT List / JSON Array] targeting_entity_types: An entity ID, a list of namespaced entity IDs, or a hash-prefixed entity tag.
- [Float] visibility: The multiplier for the wearer's detectability by the aforementioned mobs. Valid range is
0fto10f. A value of0freduces the wearer's detectability by these mobs to 2 blocks.[more information needed] A value of10fincreases the detection radius tenfold. The maximum total detection multiplier from all equipped items with this component is 10.
- [NBT Compound / JSON Object] minecraft:mob_visibility: Represents the visibility percentage provided by an item with the appropriate minecraft:equippable component, modifying the range at which mobs are able to detect an entity.
Sources
- Data component format/mob visibility — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3678109.