Penaltyeffect
A penalty effect is a negative effect that occurs when the penalty triggers.
This object is used by the following objects:
- DragonPenalty
Take damage when the penalty triggers. To see available damage types, see this for vanilla damage types and this for dragon survival damage types.
The key for this type is "take_damage"
{
"type": [DamageType] // [Mandatory] || The damage type that is dealt.
"amount": [number] // [Mandatory] || The amount of damage dealt.
}
Apply the specified mob effect each penalty trigger.
The key for this type is "mob_effect"
{
"effects": [MobEffect] // [Mandatory] || The effects applied by the penalty.
"amplifier": [number] // [Mandatory] || The amplifier of the effects.
"duration": [number] // [Mandatory] || The duration of the effects.
}
Prevent the specified items from being held in hand or equipped.
The key for this type is "item_blacklist"
{
"items": [Item] // [Mandatory] || The items not allowed by the penalty.
}