-
Notifications
You must be signed in to change notification settings - Fork 2
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"
]
}-
priorityworks the same as in damage type JSONs. -
typedictates which entity type to apply this to. -
resistancesis an object containing each damage type they have resistances for, along with its corresponding resistance multiplier.1.25means they have 1.25x resistance to this damage type, so they take 25% less damage. This works the same in reverse, so0.80means they have 0.80x resistance, taking 20% more damage. -
damagesplits 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_sourcesis a list of damage types that the entity is completely immune to. Also allows damage type tags.