Skip to content

DurationInstanceBase

Cadentem edited this page Jan 29, 2025 · 5 revisions

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:

  1. Oxygen Bonus
  2. Modifier With Duration
  3. Damage Modification
  4. Effect Modification
  5. Harvest Bonus
  6. Glow
  7. 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.
}
Datapack Documentation
Clone this wiki locally