• 1

    posted a message on The Spice of Life (encouraging dietary variety through diminishing returns)
    Quote from exelsisxax»

    You misunderstand how the mod works.

    It keeps an ordered list of the last N food items eaten. When you eat any food, it is reduced in benefit according to the number of times it appears in the list. It then removes the item at Nth in the list and places the food just eaten at the top. There is no resetting by eating things. You can try to purge the list by eating things, but it will then be filled with whatever you ate to advance the list.


    I understand now thanks :)
    Posted in: Minecraft Mods
  • 0

    posted a message on The Spice of Life (encouraging dietary variety through diminishing returns)
    Quote from squeek502»

    If you just want the history to remember 16 foods, then your setting of food.history.length=16 should work. What does the tooltip of a food you've eaten recently say with that setting?


    After diminishing started i ate 16 of any type of food but only some of them got restored to full nutritional value.
    The way i understand it is that i'm trying to get all of the food that i ate back to restored nutritional value so i can eat them again by eating any food 16 times. But by looking at this, do i have to eat 16 of the same type of food to get the diminishing value of that food to reset?
    Here's a little screenshot of what it said hovering over some raspberries.

    Posted in: Minecraft Mods
  • 0

    posted a message on The Spice of Life (encouraging dietary variety through diminishing returns)
    Quote from squeek502»

    Could you be more specific? What do you mean by 'diminishing returns on food reset after eating food 16 times'? What isn't working? What does the tooltip of a food that you've recently eaten say?

    I realize that my description wasn't very well said xD, basically i want to make the mod react in such a way where if i eat 16 types of food that the nutritional value of the past foods that i ate returns back to 100% (I made a new reply because my past reply was flagged for spam? just wanted o make sure you saw this :p)
    Posted in: Minecraft Mods
  • 0

    posted a message on Spice of life configuration help.

    I do not have hunger overhaul installed but i do have a theory that it is not working because i was already in a generated worl perhaps?

    Posted in: Java Edition Support
  • 0

    posted a message on The Spice of Life (encouraging dietary variety through diminishing returns)

    Hey squeek just a quick question i was wondering how i would change parts of the config for diminishing returns on food reset after eating food 16 times, i changed it around looked it up but it still is not working i am playing on the FTB vanilla+ modpack and hunger overhaul is not installed

    here is the config for what i have changed:


    # 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
    B:food.modifier.enabled=true
    }

    ##########################################################################################################
    # foodgroups
    #--------------------------------------------------------------------------------------------------------#
    # Food groups are defined using .json files in /config/SpiceOfLife/
    # See /config/SpiceOfLife/example-food-group.json
    ##########################################################################################################

    foodgroups {
    }

    ##########################################################################################################
    # server
    #--------------------------------------------------------------------------------------------------------#
    # These config settings are server-side only
    # Their values will get synced to all clients on the server
    ##########################################################################################################

    server {
    # If true, foods' hunger value will be multiplied by the current nutritional value
    # Setting this to false and affect.food.saturation.modifiers to true will make diminishing returns affect saturation only
    B:affect.food.hunger.values=true

    # If true, foods' saturation modifier will be multiplied by the current nutritional value
    # NOTE: When affect.food.hunger.values is true, saturation bonuses of foods will automatically decrease as the hunger value of the food decreases
    # Setting this to true when affect.food.hunger.values is true will make saturation bonuses decrease disproportionately more than hunger values
    # Setting this to true and affect.food.saturation.modifiers to false will make diminishing returns affect saturation only
    B:affect.food.saturation.modifiers=false

    # If true, foods with negative hunger values will be made more negative as nutritional value decreases
    # NOTE: affect.food.hunger.values must be true for this to have any affect
    B:affect.negative.food.hunger.values=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=true

    # The chance for food to drop from an open food container when the player jumps
    # Temporarily disabled while a better implementation is written (this config option will do nothing)
    D:food.containers.chance.to.drop.food=0.25

    # The maximum stacksize per slot in a food container
    I:food.containers.max.stacksize=16

    # The maximum time it takes to eat a food after being modified by food.eating.speed.modifier
    # The default eating duration is 32. Set this to 0 to remove the limit on eating speed.
    # 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
    I:food.eating.duration.max=0

    # If set to greater than zero, food eating speed will be affected by nutritional value
    # (meaning the lower the nutrtional value, the longer it will take to eat it)
    # Eating duration is calcualted using the formula (eating_duration / (nutritional_value^eating_speed_modifier))
    D:food.eating.speed.modifier=0

    # The maximum amount of eaten foods stored in the history at a time
    I:food.history.length=16

    # If true, food history will not get reset after every death
    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 : The number of times the food (or its food group) has been eaten within the food history
    # max_history_length : The maximum length of the food history (see food.history.length)
    # cur_history_length : The current length of the food history (<= max_history_length)
    # food_hunger_value : The default amount of hunger the food would restore in hunger units (1 hunger unit = 1/2 hunger bar)
    # food_saturation_mod : The default saturation modifier of the food
    # cur_hunger : The current hunger value of the player in hunger units (20 = full)
    # cur_saturation : The current saturation value of the player
    # total_food_eaten : The all-time total number of times any food has been eaten by the player
    #
    S:food.modifier.formula=MAX(0, (1 - count/12))^MIN(8, food_hunger_value)

    # If true, a food journal will be given to each player as a starting item
    B:give.food.journal.as.starting.item=false

    # If true, a food journal will be given to each player once diminishing returns start for them
    # Not given if a player was given a food journal by give.food.journal.as.starting.item
    B:give.food.journal.on.dimishing.returns.start=false

    # The number of times a new player (by World) needs to eat before this mod has any effect
    I:new.player.food.eaten.threshold=16

    # If true, any foods not in a food group will be excluded from diminishing returns
    B:use.food.groups.as.whitelists=true

    # 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
    B:use.hunger.restored.for.food.history.length=false
    }

    Posted in: Minecraft Mods
  • 0

    posted a message on Spice of life configuration help.

    I just checked and the setting is true and the new.player.food.eaten.threshhold is set to 16, i went and ate 16 different foods but i did not get a reset?


    Here is a copy of my config settings:


    # 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
    B:food.modifier.enabled=true
    }

    ##########################################################################################################
    # foodgroups
    #--------------------------------------------------------------------------------------------------------#
    # Food groups are defined using .json files in /config/SpiceOfLife/
    # See /config/SpiceOfLife/example-food-group.json
    ##########################################################################################################

    foodgroups {
    }

    ##########################################################################################################
    # server
    #--------------------------------------------------------------------------------------------------------#
    # These config settings are server-side only
    # Their values will get synced to all clients on the server
    ##########################################################################################################

    server {
    # If true, foods' hunger value will be multiplied by the current nutritional value
    # Setting this to false and affect.food.saturation.modifiers to true will make diminishing returns affect saturation only
    B:affect.food.hunger.values=true

    # If true, foods' saturation modifier will be multiplied by the current nutritional value
    # NOTE: When affect.food.hunger.values is true, saturation bonuses of foods will automatically decrease as the hunger value of the food decreases
    # Setting this to true when affect.food.hunger.values is true will make saturation bonuses decrease disproportionately more than hunger values
    # Setting this to true and affect.food.saturation.modifiers to false will make diminishing returns affect saturation only
    B:affect.food.saturation.modifiers=false

    # If true, foods with negative hunger values will be made more negative as nutritional value decreases
    # NOTE: affect.food.hunger.values must be true for this to have any affect
    B:affect.negative.food.hunger.values=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=true

    # The chance for food to drop from an open food container when the player jumps
    # Temporarily disabled while a better implementation is written (this config option will do nothing)
    D:food.containers.chance.to.drop.food=0.25

    # The maximum stacksize per slot in a food container
    I:food.containers.max.stacksize=16

    # The maximum time it takes to eat a food after being modified by food.eating.speed.modifier
    # The default eating duration is 32. Set this to 0 to remove the limit on eating speed.
    # 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
    I:food.eating.duration.max=0

    # If set to greater than zero, food eating speed will be affected by nutritional value
    # (meaning the lower the nutrtional value, the longer it will take to eat it)
    # Eating duration is calcualted using the formula (eating_duration / (nutritional_value^eating_speed_modifier))
    D:food.eating.speed.modifier=0

    # The maximum amount of eaten foods stored in the history at a time
    I:food.history.length=16

    # If true, food history will not get reset after every death
    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 : The number of times the food (or its food group) has been eaten within the food history
    # max_history_length : The maximum length of the food history (see food.history.length)
    # cur_history_length : The current length of the food history (<= max_history_length)
    # food_hunger_value : The default amount of hunger the food would restore in hunger units (1 hunger unit = 1/2 hunger bar)
    # food_saturation_mod : The default saturation modifier of the food
    # cur_hunger : The current hunger value of the player in hunger units (20 = full)
    # cur_saturation : The current saturation value of the player
    # total_food_eaten : The all-time total number of times any food has been eaten by the player
    #
    S:food.modifier.formula=MAX(0, (1 - count/12))^MIN(8, food_hunger_value)

    # If true, a food journal will be given to each player as a starting item
    B:give.food.journal.as.starting.item=false

    # If true, a food journal will be given to each player once diminishing returns start for them
    # Not given if a player was given a food journal by give.food.journal.as.starting.item
    B:give.food.journal.on.dimishing.returns.start=false

    # The number of times a new player (by World) needs to eat before this mod has any effect
    I:new.player.food.eaten.threshold=16

    # If true, any foods not in a food group will be excluded from diminishing returns
    B:use.food.groups.as.whitelists=true

    # 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
    B:use.hunger.restored.for.food.history.length=false
    }

    Posted in: Java Edition Support
  • 0

    posted a message on Spice of life configuration help.

    Hello everyone! I have recently started playing FTB's Vanilla+ modpack and i need your help with the spice of life mod. i decided to keep the mod in for a challenge, but i can't figure out how to set the mod to where diminishing returns resets after 16 foods eaten a.k.a if i eat 16 different foods all of those foods that i ate return to the point of where i didn't eat them at all? any help and replies would be appreciated! Thanks!

    Posted in: Java Edition Support
  • To post a comment, please or register a new account.