PenaltyEffect - DragonSurvivalTeam/DragonSurvival GitHub Wiki
Description
A penalty effect is a negative effect that occurs when the penalty triggers.
Parents
This object is used by the following objects:
Penalty Effects
Take Damage
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"
Schema
{
"type": [DamageType] // [Mandatory] || The damage type that is dealt.
"amount": [number] // [Mandatory] || The amount of damage dealt.
}
Mob Effect
Apply the specified mob effect each penalty trigger.
The key for this type is "mob_effect"
Schema
{
"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.
}
Item Blacklist
Prevent the specified items from being held in hand or equipped.
The key for this type is "item_blacklist"
Schema
{
"items": [Item] // [Mandatory] || The items not allowed by the penalty.
}