generated from jaredlll08/MultiLoader-Template
-
Notifications
You must be signed in to change notification settings - Fork 9
Mob Relations
Miguel Enrique Garay edited this page Aug 5, 2024
·
3 revisions
As of version 1.2.0, a config option called mob_relations was introduced. This allows you to control how mobs attacking with Better Combat attacks interpret indirect targets in their attack hitbox.
JSON Format:
-
mob_relations: The config option. A map of Entity IDs to mob relation maps. Entries are comma-separated.- An entry made of a mapping of an Entity ID to a mob relation map.
- An Entity ID.
- A mob relation map, in string JSON format (all quotation marks surrounding fields in this string JSON must be prefixed by a
\).- An entry made of a mapping of an Entity ID to a target relation.
- An Entity ID.
- A target relation. Valid values are
FRIENDLY,NEUTRAL,HOSTILE. Case is flexible.- Note: Currently,
FRIENDLYdoes not do anything different thanNEUTRAL, as mobs will damage their AI attack target regardless of any specified mob relation. In the future, this may change, so it is recommended to useNEUTRALif you only want the specified mob to not be damaged indirectly.
- Note: Currently,
- An entry made of a mapping of an Entity ID to a target relation.
- An entry made of a mapping of an Entity ID to a mob relation map.
Example:
"mob_relations": {
"minecraft:piglin": "{
\"minecraft:piglin\":\"NEUTRAL\",
\"minecraft:piglin_brute\":\"NEUTRAL\"
}",
"minecraft:piglin_brute": "{
\"minecraft:piglin\":\"NEUTRAL\",
\"minecraft:piglin_brute\":\"NEUTRAL\"
}"
}
To validate your config option entry, use JSONLint.