animalworld Rezepte gefixt/kompatibel gemacht

This commit is contained in:
N-Nachtigal 2025-05-17 21:05:03 +02:00
parent 0859a56f8f
commit a063db5d3b
34 changed files with 1012 additions and 359 deletions

View file

@ -34,6 +34,8 @@ mobs:register_mob("animalworld:ant", {
drops = {
{name = "animalworld:ant", chance = 1, min = 1, max = 1},
},
on_use = minetest.item_eat(1),
groups = {food = 1, flammable = 2, eatable = 1},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
@ -54,6 +56,19 @@ mobs:register_mob("animalworld:ant", {
},
})
minetest.register_craftitem(":animalworld:cookedant", {
description = S("Cooked Ant"),
inventory_image = "aantcooked.png",
on_use = minetest.item_eat(2),
groups = {food = 1, flammable = 2, eatable = 2},
})
minetest.register_craft({
type = "cooking",
output = "animalworld:cookedant",
recipe = "animalworld:ant",
cooktime = 5,
})
if not mobs.custom_spawn_animalworld then
mobs:spawn({
@ -75,11 +90,12 @@ mobs:register_egg("animalworld:ant", S("Ant"), "aant.png")
mobs:alias_mob("animalworld:ant", "animalworld:ant")
minetest.register_craftitem(":animalworld:anteggs_raw", {
description = S("Raw Ant Eggs"),
inventory_image = "animalworld_anteggs_raw.png",
on_use = minetest.item_eat(2),
groups = {food_meat_raw = 1, flammable = 2},
groups = {food = 1, flammable = 2},
})
@ -87,7 +103,7 @@ minetest.register_craftitem(":animalworld:anteggs_cooked", {
description = S("Cooked Ant Eggs"),
inventory_image = "animalworld_anteggs_cooked.png",
on_use = minetest.item_eat(6),
groups = {food_meat = 1, flammable = 2},
groups = {food = 1, flammable = 2},
})
minetest.register_craft({