Skip to content

Datapacks

Provi edited this page Feb 14, 2024 · 3 revisions

General

This mod allows datapacks to assign groups to any entity.

Instructions

If you are not already, you will need to familiarise yourself with datapacks, specifically how to edit tags.

All tags used by this mod are in the data/extra-damage-enchantments/tags/entity_types/ directory:

  • undead.json
  • arthropod.json
  • illager.json
  • aquatic.json
  • humanoid.json
  • outerworldly.json
  • arcane.json
  • fungifloral.json
  • beastly.json

Unless you intend to remove values from tags (such as removing Players from the humanoid tag) it is recommended to set replace: false in your files. By doing this, your datapack will add values to Minecraft's understanding of the tag.

Examples

View the default tag contents for an example of how to correctly add entities to tags.

Notes

Mobs that have pre-existing entity groups built-in cannot be overridden due to how mixins work. For example, a Zombie will always be undead and adding it to the Humanoid tag will not change this.

It is recommended not to add the same entity type to multiple ExtraDE tags, however if you do decide to do this for whatever reason: be advised that the groupings are applied with priority.
Outerworldly > Arcane > Fungifloral > Beastly > Undead > Arthropod > Illager > Aquatic > Humanoid