mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
added food groups for better recipe crafting
This commit is contained in:
parent
cbac52f407
commit
2e3de7c177
1
bee.lua
1
bee.lua
@ -64,6 +64,7 @@ minetest.register_craftitem(":mobs:honey", {
|
|||||||
description = S("Honey"),
|
description = S("Honey"),
|
||||||
inventory_image = "mobs_honey_inv.png",
|
inventory_image = "mobs_honey_inv.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
|
groups = {food_honey = 1, flammable = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- beehive (when placed spawns bee)
|
-- beehive (when placed spawns bee)
|
||||||
|
@ -135,6 +135,7 @@ minetest.register_craftitem(":mobs:rabbit_raw", {
|
|||||||
description = S("Raw Rabbit"),
|
description = S("Raw Rabbit"),
|
||||||
inventory_image = "mobs_rabbit_raw.png",
|
inventory_image = "mobs_rabbit_raw.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
|
groups = {food_meat_raw = 1, food_rabbit_raw = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cooked rabbit
|
-- cooked rabbit
|
||||||
@ -142,6 +143,7 @@ minetest.register_craftitem(":mobs:rabbit_cooked", {
|
|||||||
description = S("Cooked Rabbit"),
|
description = S("Cooked Rabbit"),
|
||||||
inventory_image = "mobs_rabbit_cooked.png",
|
inventory_image = "mobs_rabbit_cooked.png",
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
|
groups = {food_meat = 1, food_rabbit = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -155,6 +157,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem(":mobs:rabbit_hide", {
|
minetest.register_craftitem(":mobs:rabbit_hide", {
|
||||||
description = S("Rabbit Hide"),
|
description = S("Rabbit Hide"),
|
||||||
inventory_image = "mobs_rabbit_hide.png",
|
inventory_image = "mobs_rabbit_hide.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -241,7 +241,7 @@ minetest.register_node(":mobs:egg", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
||||||
},
|
},
|
||||||
groups = {snappy = 2, dig_immediate = 3},
|
groups = {food_egg = 1, snappy = 2, dig_immediate = 3},
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
if placer:is_player() then
|
if placer:is_player() then
|
||||||
minetest.set_node(pos, {name = "mobs:egg", param2 = 1})
|
minetest.set_node(pos, {name = "mobs:egg", param2 = 1})
|
||||||
@ -256,6 +256,7 @@ minetest.register_craftitem(":mobs:chicken_egg_fried", {
|
|||||||
description = S("Fried Egg"),
|
description = S("Fried Egg"),
|
||||||
inventory_image = "mobs_chicken_egg_fried.png",
|
inventory_image = "mobs_chicken_egg_fried.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
|
groups = {food_egg_fried = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -269,6 +270,7 @@ minetest.register_craftitem(":mobs:chicken_raw", {
|
|||||||
description = S("Raw Chicken"),
|
description = S("Raw Chicken"),
|
||||||
inventory_image = "mobs_chicken_raw.png",
|
inventory_image = "mobs_chicken_raw.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
|
groups = {food_meat_raw = 1, food_chicken_raw = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cooked chicken
|
-- cooked chicken
|
||||||
@ -276,6 +278,7 @@ minetest.register_craftitem(":mobs:chicken_cooked", {
|
|||||||
description = S("Cooked Chicken"),
|
description = S("Cooked Chicken"),
|
||||||
inventory_image = "mobs_chicken_cooked.png",
|
inventory_image = "mobs_chicken_cooked.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
|
groups = {food_meat = 1, food_chicken = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -288,6 +291,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem(":mobs:chicken_feather", {
|
minetest.register_craftitem(":mobs:chicken_feather", {
|
||||||
description = S("Feather"),
|
description = S("Feather"),
|
||||||
inventory_image = "mobs_chicken_feather.png",
|
inventory_image = "mobs_chicken_feather.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
2
cow.lua
2
cow.lua
@ -125,6 +125,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
|
|||||||
inventory_image = "mobs_bucket_milk.png",
|
inventory_image = "mobs_bucket_milk.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = minetest.item_eat(8, 'bucket:bucket_empty'),
|
on_use = minetest.item_eat(8, 'bucket:bucket_empty'),
|
||||||
|
groups = {food_milk = 1, flammable = 3},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cheese wedge
|
-- cheese wedge
|
||||||
@ -132,6 +133,7 @@ minetest.register_craftitem(":mobs:cheese", {
|
|||||||
description = S("Cheese"),
|
description = S("Cheese"),
|
||||||
inventory_image = "mobs_cheese.png",
|
inventory_image = "mobs_cheese.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
|
groups = {food_cheese = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -59,7 +59,6 @@ if minetest.get_modpath("ethereal") then
|
|||||||
spawn_on = "ethereal:grove_dirt"
|
spawn_on = "ethereal:grove_dirt"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:kitten",
|
name = "mobs_animal:kitten",
|
||||||
nodes = {spawn_on},
|
nodes = {spawn_on},
|
||||||
|
1
rat.lua
1
rat.lua
@ -88,6 +88,7 @@ minetest.register_craftitem(":mobs:rat_cooked", {
|
|||||||
description = S("Cooked Rat"),
|
description = S("Cooked Rat"),
|
||||||
inventory_image = "mobs_cooked_rat.png",
|
inventory_image = "mobs_cooked_rat.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
|
groups = {food_rat = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -208,6 +208,7 @@ minetest.register_craftitem(":mobs:mutton_raw", {
|
|||||||
description = S("Raw Mutton"),
|
description = S("Raw Mutton"),
|
||||||
inventory_image = "mobs_mutton_raw.png",
|
inventory_image = "mobs_mutton_raw.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
|
groups = {food_meat_raw = 1, food_mutton_raw = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cooked mutton
|
-- cooked mutton
|
||||||
@ -215,6 +216,7 @@ minetest.register_craftitem(":mobs:mutton_cooked", {
|
|||||||
description = S("Cooked Mutton"),
|
description = S("Cooked Mutton"),
|
||||||
inventory_image = "mobs_mutton_cooked.png",
|
inventory_image = "mobs_mutton_cooked.png",
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
|
groups = {food_meat = 1, food_mutton = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -89,6 +89,7 @@ minetest.register_craftitem(":mobs:pork_raw", {
|
|||||||
description = S("Raw Porkchop"),
|
description = S("Raw Porkchop"),
|
||||||
inventory_image = "mobs_pork_raw.png",
|
inventory_image = "mobs_pork_raw.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
|
groups = {food_meat_raw = 1, food_pork_raw = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cooked porkchop
|
-- cooked porkchop
|
||||||
@ -96,6 +97,7 @@ minetest.register_craftitem(":mobs:pork_cooked", {
|
|||||||
description = S("Cooked Porkchop"),
|
description = S("Cooked Porkchop"),
|
||||||
inventory_image = "mobs_pork_cooked.png",
|
inventory_image = "mobs_pork_cooked.png",
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
|
groups = {food_meat = 1, food_pork = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Loading…
Reference in New Issue
Block a user