ARatfat

Untitled

Jan 11th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. # Configuration file
  2.  
  3. ##########################################################################################################
  4. # main
  5. #--------------------------------------------------------------------------------------------------------#
  6. # These config settings are server-side only
  7. # Their values will get synced to all clients on the server
  8. ##########################################################################################################
  9.  
  10. " main " {
  11. # If false, disables the entire diminishing returns part of the mod
  12. B:food.modifier.enabled=true
  13. }
  14.  
  15.  
  16. ##########################################################################################################
  17. # client
  18. #--------------------------------------------------------------------------------------------------------#
  19. # These config settings are client-side only
  20. ##########################################################################################################
  21.  
  22. client {
  23. # If true, left clicking the air while holding a food container will open it (so that it can be eaten from)
  24. B:left.click.opens.food.containers=false
  25. }
  26.  
  27.  
  28. ##########################################################################################################
  29. # foodgroups
  30. #--------------------------------------------------------------------------------------------------------#
  31. # Food groups are defined using .json files in /config/SpiceOfLife/
  32. # See /config/SpiceOfLife/example-food-group.json
  33. ##########################################################################################################
  34.  
  35. foodgroups {
  36. }
  37.  
  38.  
  39. ##########################################################################################################
  40. # server
  41. #--------------------------------------------------------------------------------------------------------#
  42. # These config settings are server-side only
  43. # Their values will get synced to all clients on the server
  44. ##########################################################################################################
  45.  
  46. server {
  47. # If true, foods' hunger value will be multiplied by the current nutritional value
  48. # Setting this to false and affect.food.saturation.modifiers to true will make diminishing returns affect saturation only
  49. B:affect.food.hunger.values=true
  50.  
  51. # If true, foods' saturation modifier will be multiplied by the current nutritional value
  52. # NOTE: When affect.food.hunger.values is true, saturation bonuses of foods will automatically decrease as the hunger value of the food decreases
  53. # Setting this to true when affect.food.hunger.values is true will make saturation bonuses decrease disproportionately more than hunger values
  54. # Setting this to true and affect.food.saturation.modifiers to false will make diminishing returns affect saturation only
  55. B:affect.food.saturation.modifiers=false
  56.  
  57. # If true, foods with negative hunger values will be made more negative as nutritional value decreases
  58. # NOTE: affect.food.hunger.values must be true for this to have any affect
  59. B:affect.negative.food.hunger.values=false
  60.  
  61. # If true, foods with negative saturation modifiers will be made more negative as nutritional value decreases
  62. # NOTE: affect.food.saturation.modifiers must be true for this to have any affect
  63. B:affect.negative.food.saturation.modifiers=false
  64.  
  65. # If true, a player's food history will be empty once they pass the new.player.food.eaten.threshold
  66. # If false, any food eaten before the threshold is passed will also count after it is passed
  67. B:clear.history.after.food.eaten.threshold.reached=false
  68.  
  69. # The chance for food to drop from an open food container when the player jumps
  70. # Temporarily disabled while a better implementation is written (this config option will do nothing)
  71. D:food.containers.chance.to.drop.food=0.25
  72.  
  73. # The maximum stacksize per slot in a food container
  74. I:food.containers.max.stacksize=2
  75.  
  76. # The maximum time it takes to eat a food after being modified by food.eating.speed.modifier
  77. # The default eating duration is 32. Set this to 0 to remove the limit on eating speed.
  78. # Note: If this is set to 0 and food.eating.speed.modifier is > 0, a food with 0% nutrtional value will take nearly infinite time to eat
  79. I:food.eating.duration.max=0
  80.  
  81. # If set to greater than zero, food eating speed will be affected by nutritional value
  82. # (meaning the lower the nutrtional value, the longer it will take to eat it)
  83. # Eating duration is calcualted using the formula (eating_duration / (nutritional_value^eating_speed_modifier))
  84. D:food.eating.speed.modifier=1.0
  85.  
  86. # The maximum amount of eaten foods stored in the history at a time
  87. I:food.history.length=12
  88.  
  89. # If true, food history will not get reset after every death
  90. B:food.history.persists.through.death=false
  91.  
  92. # Rounding mode used on the hunger value of foods
  93. # Valid options: 'round', 'floor', 'ceiling'
  94. S:food.hunger.rounding.mode=round
  95.  
  96. # Uses the EvalEx expression parser
  97. # See: https://github.com/uklimaschewski/EvalEx for syntax/function documentation
  98. #
  99. # Available variables:
  100. # count : The number of times the food (or its food group) has been eaten within the food history
  101. # hunger_count : The total amount of hunger that the food (or its food group) has restored within the food history (1 hunger unit = 1/2 hunger bar)
  102. # saturation_count : The total amount of saturation that the food (or its food group) has restored within the food history (1 saturation unit = 1/2 saturation bar)
  103. # max_history_length : The maximum length of the food history (see food.history.length)
  104. # cur_history_length : The current length of the food history (<= max_history_length)
  105. # food_hunger_value : The default amount of hunger the food would restore in hunger units (1 hunger unit = 1/2 hunger bar)
  106. # food_saturation_mod : The default saturation modifier of the food
  107. # cur_hunger : The current hunger value of the player in hunger units (20 = full)
  108. # cur_saturation : The current saturation value of the player
  109. # total_food_eaten : The all-time total number of times any food has been eaten by the player
  110. # food_group_count : The number of food groups that the food belongs to
  111. # distinct_food_groups_eaten : The number of distinct food groups in the player's current food history
  112. # total_food_groups : The total number of enabled food groups
  113. #
  114. S:food.modifier.formula=MAX(0, (1 - count/12))^MIN(8, food_hunger_value)
  115.  
  116. # If true, a food journal will be given to each player as a starting item
  117. B:give.food.journal.as.starting.item=false
  118.  
  119. # If true, a food journal will be given to each player once diminishing returns start for them
  120. # Not given if a player was given a food journal by give.food.journal.as.starting.item
  121. B:give.food.journal.on.dimishing.returns.start=false
  122.  
  123. # The number of times a new player (by World) needs to eat before this mod has any effect
  124. I:new.player.food.eaten.threshold=6
  125.  
  126. # If true, any foods not in a food group will be excluded from diminishing returns
  127. B:use.food.groups.as.whitelists=false
  128.  
  129. # If true, food.history.length will use amount of hunger restored instead of number of foods eaten for its maximum length
  130. # For example, a food.history.length length of 12 will store a max of 2 foods that restored 6 hunger each,
  131. # 3 foods that restored 4 hunger each, 12 foods that restored 1 hunger each, etc
  132. # NOTE: food.history.length uses hunger units, where 1 hunger unit = 1/2 hunger bar
  133. B:use.hunger.restored.for.food.history.length=false
  134.  
  135. # If true, food.history.length will use time (in Minecraft days) instead of number of foods eaten for its maximum length
  136. # For example, a food.history.length length of 12 will store all foods eaten in the last 12 Minecraft days.
  137. # Note: On servers, time only advances for each player while they are logged in unless use.time.progress.time.while.logged.off is set to true
  138. # Also note: use.hunger.restored.for.food.history.length must be false for this config option to take effect
  139. B:use.time.for.food.history.length=false
  140.  
  141. # If true, food history time will still progress for each player while that player is logged out.
  142. # NOTE: use.time.for.food.history.length must be true for this to have any affect
  143. B:use.time.progress.time.while.logged.off=false
  144. }
Add Comment
Please, Sign In to add comment