Food recipes now use food_ groups
This commit is contained in:
parent
ec0f2899cc
commit
c008cbeebd
@ -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({
|
||||
|
@ -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'},
|
||||
}
|
||||
})
|
||||
|
||||
|
14
food.lua
14
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
|
||||
|
@ -13,7 +13,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"flowers:mushroom_brown"},
|
||||
{"flowers:mushroom_brown"},
|
||||
{"ethereal:bowl"},
|
||||
{"group:food_bowl"},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user