FoodSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.FoodSpell"

Description:

Restores Hunger and adds saturation.

Configuration Options:

Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.

Option Description Type Default
food How much hunger to restore. Integer 4
saturation How much saturation to add before your hunger decays. Float 2.5
max-saturation Max saturation. Float 0

Example:

Food:
  spell-class: ".instant.FoodSpell"
  cast-item: stick
  cooldown: 10
  food: 4
  saturation: 2.5