Damage Source - apace100/origins-fabric GitHub Wiki

A data type used in power JSON definitions (mostly inside Actions) to define how to deal damage to an entity.

Fields:

name, string: The name of the damage source. Controls death message as well as other interactions (like an ID!).

bypasses_armor, boolean, default = false: When true, armor values are not taken into account when calculating the actual damage amount taken.

fire, boolean, default = false: When true, the damage will be considered fire damage.

unblockable, boolean, default = false: When true, the damage will be unblockable (not reduced by resistance effects or protection enchantments).

magic, boolean, default = false: When true, the damage will be considered magic damage.

out_of_world, boolean, default = false: When true, the damage will be considered "out of world" damage, i.e. damage from falling into the void.

Consider List of vanilla damage source names when picking a name for the damage source.