-
Notifications
You must be signed in to change notification settings - Fork 7
[2.4.0] JSON Config
Insane96 edited this page Mar 14, 2024
·
1 revision
Make mobs flee from other mobs.
Contains a list of the following object
-
priority
: The AI priority -
attacker
: The entity id or tag that should be hostile -
victim
: The entity id or tag thatentity
will be hostile towards -
chance
: Chance for theentity
to be hostile towardsvictim
-
requires_line_of_sight
: If true,attacker
must have line of sight to get hostile towardsvictim
Example:
Coming soon
Make mobs flee from other mobs.
Contains a list of the following object
-
priority
: The AI priority -
entity
: The entity id or tag that should flee -
flee_from
: The entity id or tag that scaresentity
-
chance
: Chance for theentity
to be scared byflee_from
-
avoid_distance
: When closer to this distanceentity
usingspeed_multiplier
-
avoid_distance_near
: When closer to this distanceentity
will flee usingspeed_multiplier_near
speed_multiplier
speed_multiplier_near
Example:
Coming soon
Make mobs angry when a block is broken.
Contains a list of the following object
-
block
: The block id or tag that triggers the anger -
entity
: The entity id or tag angered -
range
: The range from the block broken to angerentity
This example makes zombified piglins angry when quartz is broken:
[
{
"block": "#forge:ores/quartz",
"entity": "minecraft:zombified_piglin",
"range": 32.0
}
]