# Configuration file
####################
# main
#===================
# These config settings are server-side only
# Their values will get synced to all clients on the server
####################
" main " {
# If false, disables the entire diminishing returns part of the mod(如果写false,那么“每次食用减少回复”的设定将关闭)
# Set this to false if you only want the client-side tooltip/HUD additions
B:food.modifier.enabled=true
}
####################
# client
#===================
# These config settings are client-side only
####################
client {
# If true, shows the hunger (and saturation if show.saturation.hud.overlay is true) that would be restored by food you are currently holding
B:show.food.values.hud.overlay=true
# If true, shows the hunger and saturation values of food in its tooltip while holding SHIFT
B:show.food.values.in.tooltip=true
# If true, shows your current saturation level overlayed on the hunger bar
B:show.saturation.hud.overlay=true
}
####################
# foodgroups
#===================
# These config settings are server-side only
# Their values will get synced to all clients on the server
# NOTE: Food groups are a work-in-progress; not all features have been implemented and/or tested
####################
foodgroups {
B:example.enabled=false
# A list of item IDs in id:meta format
# This example adds red apples (id 260 with any metadata) and golden apples (id 322 with metadata 0), thereby excluding enchanted golden apples (id 322 with metadata 1)
S:example.items <
260
322:0
>
S:example.name=Example
# A list of ore dictionary entries
# This example adds two oredictionary entries created by Pam's HarvestCraft, including all fruit and all berries
S:example.oredicts <
listAllfruit
listAllberry
>
# Food can only belong to one food group
# in the case of conflicting food groups, the food group with the highest priority will be selected
# Example: A food group with priority 3 will take precedence over a food group with priority 1
I:example.priority=0
}
####################
# server
#===================
# These config settings are server-side only
# Their values will get synced to all clients on the server
####################
server {
# If true, foods' saturation modifier will also be multiplied by the nutritional value
# NOTE: Saturation bonuses of foods will automatically decrease as the hunger value of the food decreases
# Setting this to true will make saturation bonuses decrease disproportionately more than hunger values
B:affect.food.saturation.modifiers=false
# If true, foods with negative saturation modifiers will be made more negative as nutritional value decreases
# NOTE: affect.food.saturation.modifiers must be true for this to have any affect
B:affect.negative.food.saturation.modifiers=false
# If true, a player's food history will be empty once they pass the new.player.food.eaten.threshold
# If false, any food eaten before the threshold is passed will also count after it is passed
B:clear.history.after.food.eaten.threshold.reached=false
# The maximum amount of eaten foods stored in the history at a time(食用不同食物的历史记录数目)
I:food.history.length=12
# If true, food history will not get reset after every death(如果写TRUE,每次死亡都不会刷新食物历史)
B:food.history.persists.through.death=false
# Rounding mode used on the hunger value of foods
# Valid options: 'round', 'floor', 'ceiling'
S:food.hunger.rounding.mode=round
# Uses the EvalEx expression parser
# See: https://github.com/uklimaschewski/EvalEx for syntax/function documentation
#
# Available variables(可选的变量):
# count : 再记录下的历史中,该食物已经吃过几次了(或者在foodgroup中)
# max_history_length : 最大食物历史记录数目 (见 food.history.length)
# cur_history_length : 当前食物历史记录数目 (小于等于 max_history_length)
# food_hunger_value : 默认情况下,食物恢复的“饥饿度”的数目,在 hunger units 下(1 hunger unit = 1/2 格子饥饿)
# food_saturation_mod : 默认情况下,食物恢复的 “saturation”,saturation是啥详见minecraft中文百科
# cur_hunger : 当前饥饿度的值 (20 = 饥饿条是满着的)
# cur_saturation : 当前玩家的saturation
# total_food_eaten : 玩家总过吃食物的数量
# 下面这个是公式
S:food.modifier.formula=MAX(0, (1 - count/12))^MIN(8, food_hunger_value)
# The number of times a new player (by World) needs to eat before this mod has any effect(新加入的玩家可以吃多少个食物) # 这个默认是6,这意味着玩家新加入世界的时候,你前六个进食不会每次进食减少回复的,直到6个之后开始记录。6个之后你吃1次苹果,苹果下次回复的就少一点
I:new.player.food.eaten.threshold=6
# See 'foodgroups' settings category
B:use.food.groups=false
# If true, food.history.length will use amount of hunger restored instead of number of foods eaten for its maximum length
# For example, a food.history.length length of 12 will store a max of 2 foods that restored 6 hunger each,
# 3 foods that restored 4 hunger each, 12 foods that restored 1 hunger each, etc
# NOTE: food.history.length uses hunger units, where 1 hunger unit = 1/2 hunger bar
# 这个东西挺长……大概意思就是拿每次回复的饥饿格子数目来代替食物数量,这意味着你之前计算中的吃一个苹果,电脑给你记录为“+1”,但是这个设定设为true之后,你第一次吃苹果,电脑给你记录的是“+2.5”,因为你苹果回复了2.5格子的“饥饿度”,这样每次吃减少的多,但是到后面因为回复的少,减少的也少
B:use.hunger.restored.for.food.history.length=false
}
|