add _mcl_saturation to edibles

This commit is contained in:
FaceDeer 2022-08-27 19:13:20 -06:00
parent 4bcdcd4996
commit 34cd45bac4
5 changed files with 10 additions and 0 deletions

View File

@ -123,6 +123,7 @@ minetest.register_craftitem("df_farming:cave_bread", {
sound = {eat = {name = "df_farming_chomp_crunch", gain = 1.0}},
on_use = minetest.item_eat(5),
_hunger_ng = {satiates = 5},
_mcl_saturation = 3,
groups = {flammable = 2, food = 5, eatable=5},
})

View File

@ -99,6 +99,7 @@ for _, def in pairs(recipes) do
on_use = minetest.item_eat(recipe_type.value),
groups = {food = recipe_type.value, eatable=recipe_type.value},
_hunger_ng = {satiates = recipe_type.value},
_mcl_saturation = recipe_type.value, -- TODO: make this more interesting
})
minetest.register_craft({

View File

@ -170,6 +170,7 @@ minetest.register_node("df_farming:plump_helmet_1", {
on_use = minetest.item_eat(1),
_hunger_ng = {satiates = 1},
_mcl_saturation = 0.5,
on_timer = function(pos, elapsed)
df_farming.grow_underground_plant(pos, "df_farming:plump_helmet_1", elapsed)
@ -213,6 +214,7 @@ minetest.register_node("df_farming:plump_helmet_2", {
on_use = minetest.item_eat(2),
_hunger_ng = {satiates = 2},
_mcl_saturation = 0.7,
on_timer = function(pos, elapsed)
df_farming.grow_underground_plant(pos, "df_farming:plump_helmet_2", elapsed)
@ -255,6 +257,7 @@ minetest.register_node("df_farming:plump_helmet_3", {
on_use = minetest.item_eat(3),
_hunger_ng = {satiates = 3},
_mcl_saturation = 0.9,
on_timer = function(pos, elapsed)
df_farming.grow_underground_plant(pos, "df_farming:plump_helmet_3", elapsed)
@ -317,6 +320,7 @@ minetest.register_node("df_farming:plump_helmet_4", {
on_use = minetest.item_eat(4),
_hunger_ng = {satiates = 4},
_mcl_saturation = 1,
})
local picked_groups = {}
@ -362,6 +366,7 @@ minetest.register_node("df_farming:plump_helmet_4_picked", {
on_use = minetest.item_eat(4),
_hunger_ng = {satiates = 4},
_mcl_saturation = 1,
})
local place_list = {

View File

@ -9,6 +9,7 @@ minetest.register_craftitem("df_primordial_items:primordial_fruit", {
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
on_use = minetest.item_eat(8),
_hunger_ng = {heals = 8},
_mcl_saturation = 12,
})
minetest.register_craftitem("df_primordial_items:glowtato", {
@ -20,4 +21,5 @@ minetest.register_craftitem("df_primordial_items:glowtato", {
groups = {food = 8, dfcaverns_cookable = 1, eatable=8, plant=1},
on_use = minetest.item_eat(8),
_hunger_ng = {satiates = 8},
_mcl_saturation = 8,
})

View File

@ -78,6 +78,7 @@ minetest.register_craftitem("df_primordial_items:diced_mushroom", {
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
on_use = minetest.item_eat(1),
_hunger_ng = {satiates = 1},
_mcl_saturation = 0.5,
})
minetest.register_craft({