You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi! if you want to update and fix some of the mechanics of the mod, i have a suggestion for the food spoiling mechanic, since there is no decent mod that do this on 1.12...
currently better with addons add an nbt tag to foods with the time of creation and, if i'm not wrong, it will check when the item is in the player inventory, or in the inventory that the player have opened to see if the item had reached it's expiration date.
this alone have the issue of not giving the ability to preserve foods, but the advantage of not being taxing on server tps since the check is not done often.
if you already have an idea on how to improve on this, great! but if you are intereste, here is mine: add the time the item was added to an inventory that can preserve food and, when the item is removed, use this new time to upate the time of creation with:
current time - (time of preservation - time of creation)
this way it will be possible to preserve foods.
if you also want to add a system where ingredients are added to foods to slow own their spoiling rate, add it as an additional nbt, something like a spoiling rate and use it as a multiplier on the time.
This way you can also add custom rate for preservation methods and it will be easy to edit and add custom preservation recipes
The text was updated successfully, but these errors were encountered:
hi! if you want to update and fix some of the mechanics of the mod, i have a suggestion for the food spoiling mechanic, since there is no decent mod that do this on 1.12...
currently better with addons add an nbt tag to foods with the time of creation and, if i'm not wrong, it will check when the item is in the player inventory, or in the inventory that the player have opened to see if the item had reached it's expiration date.
this alone have the issue of not giving the ability to preserve foods, but the advantage of not being taxing on server tps since the check is not done often.
if you already have an idea on how to improve on this, great! but if you are intereste, here is mine: add the time the item was added to an inventory that can preserve food and, when the item is removed, use this new time to upate the time of creation with:
current time - (time of preservation - time of creation)
this way it will be possible to preserve foods.
if you also want to add a system where ingredients are added to foods to slow own their spoiling rate, add it as an additional nbt, something like a spoiling rate and use it as a multiplier on the time.
This way you can also add custom rate for preservation methods and it will be easy to edit and add custom preservation recipes
The text was updated successfully, but these errors were encountered: