summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-12 18:40:36 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-12 18:40:36 +0000
commitc008cbeebd872cb455ccaf3034d55232ce4a0e8b (patch)
tree0663e59ce0caeb3e410afd996f249433a3bee26a
parentec0f2899cc0fda292bc30c45fe8ad55e25d44b8b (diff)
Food recipes now use food_ groups
-rw-r--r--extra.lua1
-rw-r--r--fishing.lua4
-rw-r--r--food.lua14
-rw-r--r--mushroom.lua2
-rw-r--r--sealife.lua2
5 files changed, 13 insertions, 10 deletions
diff --git a/extra.lua b/extra.lua
index da056e9..e927200 100644
--- a/extra.lua
+++ b/extra.lua
@@ -133,6 +133,7 @@ minetest.register_craft({
minetest.register_craftitem("ethereal:bowl", {
description = S("Bowl"),
inventory_image = "bowl.png",
+ groups = {food_bowl = 1, flammable = 2},
})
minetest.register_craft({
diff --git a/fishing.lua b/fishing.lua
index 9640ba3..a7bf7e6 100644
--- a/fishing.lua
+++ b/fishing.lua
@@ -6,6 +6,7 @@ minetest.register_craftitem("ethereal:fish_raw", {
description = S("Raw Fish"),
inventory_image = "fish_raw.png",
wield_image = "fish_raw.png",
+ groups = {food_fish_raw = 1, flammable = 3},
on_use = minetest.item_eat(2),
})
@@ -14,6 +15,7 @@ minetest.register_craftitem("ethereal:fish_cooked", {
description = S("Cooked Fish"),
inventory_image = "fish_cooked.png",
wield_image = "fish_cooked.png",
+ groups = {food_fish = 1, flammable = 3},
on_use = minetest.item_eat(5),
})
@@ -35,7 +37,7 @@ minetest.register_craftitem("ethereal:sashimi", {
minetest.register_craft({
output = "ethereal:sashimi 2",
recipe = {
- {'ethereal:seaweed','ethereal:fish_raw','ethereal:seaweed'},
+ {'group:food_seaweed','group:food_fish_raw','group:food_seaweed'},
}
})
diff --git a/food.lua b/food.lua
index 56c97cd..758846c 100644
--- a/food.lua
+++ b/food.lua
@@ -38,7 +38,7 @@ minetest.register_craftitem("ethereal:banana_dough", {
minetest.register_craft({
type = "shapeless",
output = "ethereal:banana_dough",
- recipe = {"farming:flour", "ethereal:banana"}
+ recipe = {"group:food_flour", "group:food_banana"}
})
minetest.register_craft({
@@ -164,9 +164,9 @@ minetest.register_craftitem("ethereal:hearty_stew", {
minetest.register_craft({
output = "ethereal:hearty_stew",
recipe = {
- {"ethereal:wild_onion_plant","ethereal:mushroom_plant", "ethereal:fern_tubers"},
- {"","ethereal:mushroom_plant", ""},
- {"","ethereal:bowl", ""},
+ {"group:food_onion","flowers:mushroom_brown", "group:food_tuber"},
+ {"","flowers:mushroom_brown", ""},
+ {"","group:food_bowl", ""},
}
})
@@ -175,9 +175,9 @@ if farming and farming.mod and farming.mod == "redo" then
minetest.register_craft({
output = "ethereal:hearty_stew",
recipe = {
- {"ethereal:wild_onion_plant","ethereal:mushroom_plant", "farming:beans"},
- {"","ethereal:mushroom_plant", ""},
- {"","ethereal:bowl", ""},
+ {"group:food_onion","flowers:mushroom_brown", "group:food_beans"},
+ {"","flowers:mushroom_brown", ""},
+ {"","group:food_bowl", ""},
}
})
end
diff --git a/mushroom.lua b/mushroom.lua
index 91947e1..f89b2e8 100644
--- a/mushroom.lua
+++ b/mushroom.lua
@@ -13,7 +13,7 @@ minetest.register_craft({
recipe = {
{"flowers:mushroom_brown"},
{"flowers:mushroom_brown"},
- {"ethereal:bowl"},
+ {"group:food_bowl"},
}
})
diff --git a/sealife.lua b/sealife.lua
index 08d2f0c..b97cb98 100644
--- a/sealife.lua
+++ b/sealife.lua
@@ -17,7 +17,7 @@ minetest.register_node("ethereal:seaweed", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
- groups = {snappy = 3},
+ groups = {food_seaweed = 1, snappy = 3, flammable = 3},
on_use = minetest.item_eat(1),
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)