Skip to content

Commit

Permalink
Merge pull request #771 from last8kings/nutrition
Browse files Browse the repository at this point in the history
Add Nutrition Config
  • Loading branch information
bruberu authored Mar 4, 2024
2 parents 90c4fe5 + eb63d77 commit 4164d8d
Show file tree
Hide file tree
Showing 13 changed files with 5,592 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/nutrition/effects/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"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", // Detection type. 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
"nutrients": [ // A whitelist of nutrient IDs to detect against
"fruit", // If this field is omitted, then all nutrients will be included
"vegetable" //
], //
"cumulative_modifier": 1, // Amount to increase the amplifier by for each cumulative effect
"particles": "transparent", // Particle visibility: 'transparent' (default), 'translucent', or 'opaque'
"enabled": false // Will this effect be active or not
}
9 changes: 9 additions & 0 deletions config/nutrition/effects/mining_fatigue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "mining_fatigue",
"potion": "minecraft:mining_fatigue",
"amplifier": 0,
"minimum": 0,
"maximum": 20,
"detect": "average",
"enabled": true
}
9 changes: 9 additions & 0 deletions config/nutrition/effects/resistance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "resistance",
"potion": "minecraft:resistance",
"amplifier": 0,
"minimum": 80,
"maximum": 100,
"detect": "average",
"enabled": true
}
9 changes: 9 additions & 0 deletions config/nutrition/effects/strength.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "strength",
"potion": "minecraft:strength",
"amplifier": 0,
"minimum": 90,
"maximum": 100,
"detect": "average",
"enabled": true
}
10 changes: 10 additions & 0 deletions config/nutrition/effects/toughness.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "toughness",
"potion": "nutrition:toughness",
"amplifier": 0,
"minimum": 90,
"maximum": 100,
"detect": "cumulative",
"cumulative_modifier": 1,
"enabled": true
}
9 changes: 9 additions & 0 deletions config/nutrition/effects/weakness.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "weakness",
"potion": "minecraft:weakness",
"amplifier": 0,
"minimum": 0,
"maximum": 10,
"detect": "average",
"enabled": true
}
Loading

0 comments on commit 4164d8d

Please sign in to comment.