Skip to content

Effects

TheIllusiveC4 edited this page May 9, 2018 · 3 revisions

Table of Contents

Overview

With the respawn effects module, you can apply any number of potion effects on players upon respawn. These potion effects can be from vanilla or modded potions, as long as they are registered as a "Potion" and not a custom type of item. You can specify the power and duration of each of these effects individually, granting you a large degree of variety in how you wish to implement them.

The respawn effects module has a sub-module called "Custom Respawn Effect", which lets you create a custom potion effect to be applied on respawn. These options let you modify a player's attributes in ways separate from pre-made potions, and in some ways only available through this sub-module. Every aspect of this custom respawn effect, named "Memento Mori", is completely customizable and optional.

Configuration Options

Enable Respawn Effects Module

Set to true to enable the respawn effects module and all of its features. This needs to be activated for the features in this module to work, regardless of their config settings.

Curable Respawn Effects

A list of effects to apply to players on respawn that are curable through the "Curative Items" list of items. The format for each entry in this list is "[potion name] [duration(seconds)] [power]". For example, an entry of "minecraft:regeneration 30 2" will give players on respawn a vanilla Regeneration II potion effect lasting 30 seconds. Note that the highest available amount of duration is 1600 seconds (roughly 27 minutes), and the highest available amount of power is 10.

Curative Items

A list of items, with each item expressed as their registry name (i.e. "minecraft:milk_bucket"), that can cure the effects listed in the "Curable Respawn Effects" option. Generally, only food and similar items can be used for this list. If this list is empty, there will be no distinction between using the "Curable Respawn Effects" list and the "Uncurable Respawn Effects" list.

Uncurable Respawn Effects

The same as the "Curable Respawn Effects" option except these effects cannot be cured by any means. Players subjected to these effects must wait out their duration.

Custom Respawn Effect

Duration

A whole number between 0 and 1600 that defines the amount of seconds this effect lasts.

Curative Items

A list of items, with each item expressed as their registry name (i.e. "minecraft:milk_bucket"), that can cure this effect. If this list is empty, this effect will be uncurable and players will need to wait out the entire duration.

Gradual Recovery

Set to true to have players subject to this effect gradually recover. This means that whatever modifiers the players have due to this effect will lessen in magnitude over the duration of this effect. This is useful for making players face extremely punitive modifiers at the beginning of a fresh respawn but have the penalty lighten up over time. This could also apply vice versa, with buffs that will gradually fade away over time.

Maximum Health Modifier

A whole number between -1024 and 1024 that defines the change in a player's maximum health. Remember that each heart represents 2 health points. A vanilla player's maximum health is usually set to 20, represented by 10 hearts. Be careful with the negative modifiers, as setting the modifier too low could result in players instantly dying upon respawn with no way of escaping the loop if there are other mods that affect the player's maximum health.

Armor Modifier

A whole number between -30 and 30 that defines the change in a player's total armor value. Note that a player's total armor value cannot be below 0.

Armor Toughness Modifier

A whole number between -20 and 20 that defines the change in a player's armor toughness value.

Attack Damage Modifier

A whole number between -2048 and 2048 that defines the change in a player's attack damage.

Attack Speed Modifier

A percent value between -1.0 and 1.0 that defines the percent change in a player's attack speed. The default is 0.0, which signifies no change in a player's attack speed. A negative value will slow down a player's attack speed, with -1.0 representing a player who cannot attack at all. A positive value will speed up a player's attack speed, with 1.0 representing a player who attacks at double the speed.

Movement Speed Modifier

A percent value between -1.0 and 1.0 that defines the percent change in a player's movement speed. The default is 0.0, which signifies no change in a player's movement speed. A negative value will slow down a player's movement speed, with -1.0 representing a player who cannot move at all. A positive value will speed up a player's movement speed, with 1.0 representing a player who moves at double the speed.

Cannot Eat Food

Set to true to disable players eating any sort of food while under this effect. Food is defined as any item that extends the vanilla ItemFood class, as well as vanilla Cakes placed on the ground and specific other mod items listed in the compatibilities section of this wiki. Players will not even attempt to eat the food, the action itself will be disallowed.

Cannot Gain XP

Set to true to disable players picking up experience orbs while under this effect. Experience orbs will still float towards the player and eventually swirl around the player, but the player will never pick them up nor gain experience from them.

Clone this wiki locally