2024-06-12 13:49:09 +02:00
|
|
|
local items = {
|
2024-06-12 14:25:09 +02:00
|
|
|
["apple"] = {
|
|
|
|
groups = {compostability = 65, food_and_drinks = 1, saturation = 24},
|
|
|
|
on_place = minetest.item_eat(4),
|
|
|
|
on_secondary_use = minetest.item_eat(4)
|
|
|
|
},
|
|
|
|
["baked_potato"] = {
|
|
|
|
groups = {compostability = 85, food_and_drinks = 1, saturation = 60},
|
|
|
|
on_place = minetest.item_eat(5),
|
|
|
|
on_secondary_use = minetest.item_eat(5)
|
|
|
|
},
|
|
|
|
["beetroot"] = {
|
|
|
|
groups = {compostability = 65, food_and_drinks = 1, saturation = 12},
|
|
|
|
on_place = minetest.item_eat(1),
|
|
|
|
on_secondary_use = minetest.item_eat(1)
|
|
|
|
},
|
|
|
|
["carrot"] = {
|
|
|
|
groups = {compostability = 65, food_and_drinks = 1, saturation = 36},
|
|
|
|
on_place = nil,
|
|
|
|
on_secondary_use = minetest.item_eat(3)
|
|
|
|
},
|
2024-06-12 13:49:09 +02:00
|
|
|
["chorus_fruit"] = {},
|
|
|
|
["glow_berries"] = {},
|
|
|
|
["melon_slice"] = {},
|
|
|
|
["sweet_berries"] = {},
|
|
|
|
["poisonous_potato"] = {},
|
2024-06-12 14:25:09 +02:00
|
|
|
["potato"] = {
|
|
|
|
groups = {compostability = 65, food_and_drinks = 1, saturation = 6, smoker_cookable = 1},
|
|
|
|
on_place = nil,
|
|
|
|
on_secondary_use = minetest.item_eat(1)
|
|
|
|
},
|
2024-06-12 13:49:09 +02:00
|
|
|
["spider_eye"] = {}
|
|
|
|
}
|
|
|
|
|
|
|
|
for identifier, definitions in pairs(items) do
|
|
|
|
voxelibre.register_item(identifier, definitions)
|
|
|
|
end
|