-
Notifications
You must be signed in to change notification settings - Fork 39
Effects
Wes Cook edited this page May 21, 2017
·
9 revisions
Effects are customizable potion effects that are applied based on nutrition levels. They are applied if the conditions of the effect are met.
Effects are defined in the /config/nutrition/effects
directory. Each .json file defines a new effect.
All fields except for nutrient
and enabled
are required.
{
"name": "example", // Unique Effect ID
"potion": "minecraft:strength", // Potion's resource location (eg. fire_resistance)
"amplifier": 0, // Potion strength
"minimum": 75, // Minimum nutrition level to take effect
"maximum": 100, // Maximum nutrition level to take effect
"detect": "any", // Accepted values:
// 'any': Any nutrient may be in the threshold
// 'average': The average of all nutrients must be in the threshold
// 'all': All nutrients must be in the threshold
// 'cumulative': For each nutrient within the threshold, the amplifier increases by one
// 'nutrient': A specific nutrient must be in the threshold (see below)
"nutrient": "", // If detect=nutrient, this defines the nutrient ID checked against
"enabled": false // Will this effect be active or not
}