Skip to content

[2.4.0] JSON Config

Insane96 edited this page Mar 14, 2024 · 1 revision

Mobs

Custom Hostile

custom_hostile.json

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 that entity will be hostile towards
  • chance: Chance for the entity to be hostile towards victim
  • requires_line_of_sight: If true, attacker must have line of sight to get hostile towards victim

Example:

Coming soon

Custom Flee

custom_flee.json

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 scares entity
  • chance: Chance for the entity to be scared by flee_from
  • avoid_distance: When closer to this distance entity using speed_multiplier
  • avoid_distance_near: When closer to this distance entity will flee using speed_multiplier_near
  • speed_multiplier
  • speed_multiplier_near

Example:

Coming soon

Break Anger

break_anger_config.json

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 anger entity

This example makes zombified piglins angry when quartz is broken:

[
  {
    "block": "#forge:ores/quartz",
    "entity": "minecraft:zombified_piglin",
    "range": 32.0
  }
]

Version 2.4.0

Version 1.15.4 and below

(MC 1.19+ only)

Clone this wiki locally