Skip to content

DragonPenalty

seelderr edited this page Jan 4, 2025 · 3 revisions

Description

A dragon penalty is a debuff for being a certain dragon species. This incldues things like vulnerability to water, fear of darkness, needing to drink water to survive, etc...

Location

Dragon penalties are part of the data pack directory structure, highlighted below:

 datapack name.zip
├──  pack.mcmeta
├──  data
    ├──  namespace
       ├──  dragonsurvival
          ├──  dragon_penalties
              ├──  <name>.json
  

Parents

This object is used by the following objects:

  1. DragonSpecies

Dependencies

This object references the following objects:

  1. PenaltyEffect
  2. PenaltyTrigger
  3. Predicate (mod specific predicates here)

Schema

{
    "icon": [ResourceLocation]       // [Mandatory] || The icon to use for this penalty.
    "condition": [Predicate]         // [Mandatory] || The conditions under which this penalty triggers.
    "effect": [PenaltyEffect]        // [Mandatory] || The effects from this penalty.
    "trigger": [PenaltyTrigger]      // [Mandatory] || The ways this penalty triggers.
}
Datapack Documentation
Clone this wiki locally