{ // Edit the expressions that are used for calculating the player stats after respawning. // Expressions are mathematical terms with the following variables: // hunger is the amount of hunger the player had when dying // saturation is the amount of hunger the player had when dying respawn: { // Expression that determines the hunger level after a fresh respawn // default: max(14, hunger) hunger: max(14, hunger) // Expression that determines the saturation level after a fresh respawn // default: saturation saturation: saturation // Sets whether the food history should be cleaned at death // default: false reset-history: false // Sets whether the player's maximum hearts should be reset in carrot mode after death // default: false reset-carrot-mode: false } // The good ol' carrot style. // Carrot style means, that you start with a certain amount of hearts and gain more by eating unique foods. carrot: { // Enables the carrot style module. // default: false enable: false // Specifies an offset in health points (half hearts) from default health. // Default health in vanilla is 20 but that may change through mods like Origins. // The resulting value will be floored before use. // default: (0.6 * baseHealth) + max(2 * log2(uniqueFoodsEaten), 0) health-formula: baseHealth // Specifies the maximum number of health points (half hearts) a player can get to through carrot mode. // When 0, carrot mode is effectively disabled. (Why would you do this? :P) // When -1, you can gain a basically infinite amount of hearts. // default: -1 // Must be inclusively between -1 and 200 max-health: -1 } // Must be set on the server! // Whether the players will be able to see how many foods ago they ate an item directly on the item. // When set to SIMPLE, just this information will be shown. // If set to EXTENDED, there'll also be information on how many other foods the player needs to eat to restore the nutrition value. // With NONE this tooltip is hidden. // default: NONE show-last-eaten-tips: EXTENDED // Change the expressions used for calculating the various food properties. // Expressions are mathematical terms with the following variables: // timesEaten is the number of times the current food // hungerValue is the game defined hunger value for the current item // saturationValue is the saturation modifier defined for the current item // consumeDuration is the time in ticks it takes the player to consume the current item food: { // Expression that determines the food level to restore when eating a food item // default: hungerValue * 0.7 ^ timesEaten hunger: hungerValue * 0.7 ^ timesEaten // Expression that determines the saturation modifier for a food item // default: saturationValue saturation: saturationValue // Expression that determines the time requited to consume an item, given in ticks // default: consumeDuration * 1.3 ^ timesEaten consume-duration: consumeDuration * 1.3 ^ timesEaten // Sets the amount of last eaten foods to use for the calculations in this category // default: 20 // Must be greater or equal to 0 history-length: 8 } }