summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bee.lua1
-rw-r--r--bunny.lua3
-rw-r--r--chicken.lua6
-rw-r--r--cow.lua2
-rw-r--r--kitten.lua1
-rw-r--r--rat.lua1
-rw-r--r--sheep.lua2
-rw-r--r--warthog.lua2
8 files changed, 16 insertions, 2 deletions
diff --git a/bee.lua b/bee.lua
index 4a85091..d94facb 100644
--- a/bee.lua
+++ b/bee.lua
@@ -64,6 +64,7 @@ minetest.register_craftitem(":mobs:honey", {
description = S("Honey"),
inventory_image = "mobs_honey_inv.png",
on_use = minetest.item_eat(4),
+ groups = {food_honey = 1, flammable = 1},
})
-- beehive (when placed spawns bee)
diff --git a/bunny.lua b/bunny.lua
index cbde3e7..24947b6 100644
--- a/bunny.lua
+++ b/bunny.lua
@@ -135,6 +135,7 @@ minetest.register_craftitem(":mobs:rabbit_raw", {
description = S("Raw Rabbit"),
inventory_image = "mobs_rabbit_raw.png",
on_use = minetest.item_eat(3),
+ groups = {food_meat_raw = 1, food_rabbit_raw = 1, flammable = 2},
})
-- cooked rabbit
@@ -142,6 +143,7 @@ minetest.register_craftitem(":mobs:rabbit_cooked", {
description = S("Cooked Rabbit"),
inventory_image = "mobs_rabbit_cooked.png",
on_use = minetest.item_eat(5),
+ groups = {food_meat = 1, food_rabbit = 1, flammable = 2},
})
minetest.register_craft({
@@ -155,6 +157,7 @@ minetest.register_craft({
minetest.register_craftitem(":mobs:rabbit_hide", {
description = S("Rabbit Hide"),
inventory_image = "mobs_rabbit_hide.png",
+ groups = {flammable = 2},
})
minetest.register_craft({
diff --git a/chicken.lua b/chicken.lua
index f79579d..32bd12c 100644
--- a/chicken.lua
+++ b/chicken.lua
@@ -241,7 +241,7 @@ minetest.register_node(":mobs:egg", {
type = "fixed",
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)
if placer:is_player() then
minetest.set_node(pos, {name = "mobs:egg", param2 = 1})
@@ -256,6 +256,7 @@ minetest.register_craftitem(":mobs:chicken_egg_fried", {
description = S("Fried Egg"),
inventory_image = "mobs_chicken_egg_fried.png",
on_use = minetest.item_eat(2),
+ groups = {food_egg_fried = 1, flammable = 2},
})
minetest.register_craft({
@@ -269,6 +270,7 @@ minetest.register_craftitem(":mobs:chicken_raw", {
description = S("Raw Chicken"),
inventory_image = "mobs_chicken_raw.png",
on_use = minetest.item_eat(2),
+ groups = {food_meat_raw = 1, food_chicken_raw = 1, flammable = 2},
})
-- cooked chicken
@@ -276,6 +278,7 @@ minetest.register_craftitem(":mobs:chicken_cooked", {
description = S("Cooked Chicken"),
inventory_image = "mobs_chicken_cooked.png",
on_use = minetest.item_eat(6),
+ groups = {food_meat = 1, food_chicken = 1, flammable = 2},
})
minetest.register_craft({
@@ -288,6 +291,7 @@ minetest.register_craft({
minetest.register_craftitem(":mobs:chicken_feather", {
description = S("Feather"),
inventory_image = "mobs_chicken_feather.png",
+ groups = {flammable = 2},
})
minetest.register_craft({
diff --git a/cow.lua b/cow.lua
index e5ae7c7..8427037 100644
--- a/cow.lua
+++ b/cow.lua
@@ -125,6 +125,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
inventory_image = "mobs_bucket_milk.png",
stack_max = 1,
on_use = minetest.item_eat(8, 'bucket:bucket_empty'),
+ groups = {food_milk = 1, flammable = 3},
})
-- cheese wedge
@@ -132,6 +133,7 @@ minetest.register_craftitem(":mobs:cheese", {
description = S("Cheese"),
inventory_image = "mobs_cheese.png",
on_use = minetest.item_eat(4),
+ groups = {food_cheese = 1, flammable = 2},
})
minetest.register_craft({
diff --git a/kitten.lua b/kitten.lua
index 318fbda..d739271 100644
--- a/kitten.lua
+++ b/kitten.lua
@@ -59,7 +59,6 @@ if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:grove_dirt"
end
-
mobs:spawn({
name = "mobs_animal:kitten",
nodes = {spawn_on},
diff --git a/rat.lua b/rat.lua
index 9434df3..2668475 100644
--- a/rat.lua
+++ b/rat.lua
@@ -88,6 +88,7 @@ minetest.register_craftitem(":mobs:rat_cooked", {
description = S("Cooked Rat"),
inventory_image = "mobs_cooked_rat.png",
on_use = minetest.item_eat(3),
+ groups = {food_rat = 1, flammable = 2},
})
minetest.register_craft({
diff --git a/sheep.lua b/sheep.lua
index 7335cd3..2915f5e 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -208,6 +208,7 @@ minetest.register_craftitem(":mobs:mutton_raw", {
description = S("Raw Mutton"),
inventory_image = "mobs_mutton_raw.png",
on_use = minetest.item_eat(2),
+ groups = {food_meat_raw = 1, food_mutton_raw = 1, flammable = 2},
})
-- cooked mutton
@@ -215,6 +216,7 @@ minetest.register_craftitem(":mobs:mutton_cooked", {
description = S("Cooked Mutton"),
inventory_image = "mobs_mutton_cooked.png",
on_use = minetest.item_eat(6),
+ groups = {food_meat = 1, food_mutton = 1, flammable = 2},
})
minetest.register_craft({
diff --git a/warthog.lua b/warthog.lua
index 7215531..7217f8a 100644
--- a/warthog.lua
+++ b/warthog.lua
@@ -89,6 +89,7 @@ minetest.register_craftitem(":mobs:pork_raw", {
description = S("Raw Porkchop"),
inventory_image = "mobs_pork_raw.png",
on_use = minetest.item_eat(4),
+ groups = {food_meat_raw = 1, food_pork_raw = 1, flammable = 2},
})
-- cooked porkchop
@@ -96,6 +97,7 @@ minetest.register_craftitem(":mobs:pork_cooked", {
description = S("Cooked Porkchop"),
inventory_image = "mobs_pork_cooked.png",
on_use = minetest.item_eat(8),
+ groups = {food_meat = 1, food_pork = 1, flammable = 2},
})
minetest.register_craft({