forked from BlackAures1/DragonSurvival
-
Notifications
You must be signed in to change notification settings - Fork 42
DurationInstanceBase
Cadentem edited this page Jan 29, 2025
·
5 revisions
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.
This object is used by the following objects:
- Oxygen Bonus
- Modifier With Duration
- Damage Modification
- Effect Modification
- Harvest Bonus
- Glow
- Block Vision
{
"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.
}
■ Still have questions about Dragon Survival? Ask them in the Discord Server! I always try to help everyone as much as I can.
Datapack Documentation
- Dragon Species
- Projectile
- General Data Formats
- Installation
- "Mod doesn't work!"
- Incompatibility
- Configuration
- Update
- Moving appearance between saves
- Linux compatibility
- How do I use Curseforge?
- Installing the modpack
- Optimizing