DurationInstanceBase - DragonSurvivalTeam/DragonSurvival GitHub Wiki
Description
A DurationInstanceBase contains all of the base data used in the various effects that have a duration in Dragon Survival. A instance is displayed identically to a vanilla mob effect to the player if "is_hidden"
is set to false.
Parents
This object is used by the following objects:
- Oxygen Bonus
- Modifier With Duration
- Damage Modification
- Effect Modification
- Harvest Bonus
- Glow
- Block Vision
Schema
{
"id": [ResourceLocation] // [Mandatory] || The ID of the instance.
"duration": [LevelBasedValue] // [Optional] || How long the modifiers should last. Is infinite duration if empty (a value of -1).
"should_remove_automatically": [boolean] // [Optional] || Whether the effect should be removed automatically if the ability that triggered it becomes disabled. False by default.
"early_removal_condition": [Predicate] // [Optional] || If this condition is met, remove the instance immediately.
"custom_icon": [ResourceLocation] // [Optional] || The icon shown if the modifier is displayed as a mob effect. Has a default icon if empty.
"is_hidden": [bool] // [Optional] || Whether this should be displayed as a mob effect to the player. False by default.
}