Skip to content

Entity Stats

dhyces edited this page Jan 16, 2024 · 1 revision

This feature allows you to give entities resistances to certain damage types and augment their outgoing damage to be other damage types. data/alembic/alembic/entity_stats/blaze.json

{
  "priority": 1,
  "type": "minecraft:blaze",
  "resistances": {
    "alchemical_damage": 1.0,
    "physical_damage": 1.0,
    "fire_damage": 2.0,
    "arcane_damage": 0.7,
    "true_damage": 0.0
  },
  "damage": {
    "fire_damage": 0.90,
	  "physical_damage": 0.10
  },
  "ignored_sources": [
    "minecraft:lava",
    "minecraft:in_fire",
    "minecraft:on_fire"
  ]
}
  • priority works the same as in damage type JSONs.
  • type dictates which entity type to apply this to.
  • resistances is an object containing each damage type they have resistances for, along with its corresponding resistance multiplier. 1.25 means they have 1.25x resistance to this damage type, so they take 25% less damage. This works the same in reverse, so 0.80 means they have 0.80x resistance, taking 20% more damage.
  • damage splits their outgoing damage into the damage types contained here, divided up by the float values associated with them. The values in here MUST add up to 1.
  • ignored_sources is a list of damage types that the entity is completely immune to. Also allows damage type tags.
Clone this wiki locally