Skip to content

Latest commit

 

History

History
50 lines (46 loc) · 1.78 KB

EndlessModifier.md

File metadata and controls

50 lines (46 loc) · 1.78 KB

Description

An Endless Modifier is the core building block of an Endless Gateway, and controls what changes are applied on each endless wave.

Dependencies

This object references the following objects:

  1. ApplicationMode
  2. WaveEntity
  3. Reward
  4. WaveModifier

Schema

{
    "application_mode": ApplicationMode,  // [Mandatory] || The application mode for this modifier.
    "entities": [                         // [Optional]  || A list of additional entities that will be spawned each time the modifier is applied.
        WaveEntity
    ],
    "rewards": [                          // [Optional]  || A list of rewards that will be added to the wave rewards each tim the modifier is applied.
        Reward
    ],
    "modifiers": [                        // [Optional]  || A list of wave modifiers that will be applied to all entities each time the modifier is applied.
        WaveModifier
    ],
    "max_wave_time": integer,             // [Optional]  || The time (in ticks) that this modifier will add/remove to/from the max wave time.
    "setup_time": integer                 // [Optional]  || The time (in ticks) that this modifier will add/remove to/from the setup time.
}

One of the three optional components must be present for a modifier to be valid.

Examples

An endless modifier that adds three blazes and five blaze loot rolls every 3 waves, up to 15 max applications.

{
    "application_mode": {
        "type": "gateways:after_every_n_waves",
        "waves": 3,
        "max": 15
    },
    "entities": [{
        "entity": "minecraft:blaze",
        "count": 3
    }],
    "rewards": [{
        "type": "gateways:entity_loot",
        "entity": "minecraft:blaze",
        "rolls": 5
    }]
}