forked from mtcontrib/farming
food items now crafted using food_ groups
This commit is contained in:
parent
e4ed12056d
commit
14154cea54
@ -23,7 +23,7 @@ minetest.register_craftitem("farming:muffin_blueberry", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:muffin_blueberry 2",
|
output = "farming:muffin_blueberry 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:blueberries", "farming:bread", "farming:blueberries"},
|
{"group:food_blueberries", "group:food_bread", "group:food_blueberries"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ minetest.register_craft({
|
|||||||
output = "farming:carrot_gold",
|
output = "farming:carrot_gold",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "default:gold_lump", ""},
|
{"", "default:gold_lump", ""},
|
||||||
{"default:gold_lump", "farming:carrot", "default:gold_lump"},
|
{"default:gold_lump", "group:food_carrot", "default:gold_lump"},
|
||||||
{"", "default:gold_lump", ""},
|
{"", "default:gold_lump", ""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -22,7 +22,10 @@ minetest.register_craftitem("farming:chili_bowl", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "farming:chili_bowl",
|
output = "farming:chili_bowl",
|
||||||
recipe = {"farming:chili_pepper", "farming:barley", "farming:tomato", "farming:beans"}
|
recipe = {
|
||||||
|
"group:food_chili_pepper", "group:food_barley",
|
||||||
|
"group:food_tomato", "group:food_beans"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- chili can be used for red dye
|
-- chili can be used for red dye
|
||||||
|
@ -82,7 +82,7 @@ minetest.register_craftitem("farming:cookie", {
|
|||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:cookie 8",
|
output = "farming:cookie 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "farming:wheat", "farming:cocoa_beans", "farming:wheat" },
|
{"group:food_wheat", "group:food_cocoa", "group:food_wheat" },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ minetest.register_craftitem("farming:chocolate_dark", {
|
|||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:chocolate_dark",
|
output = "farming:chocolate_dark",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "farming:cocoa_beans", "farming:cocoa_beans", "farming:cocoa_beans" },
|
{"group:food_cocoa", "group:food_cocoa", "group:food_cocoa"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ minetest.register_node("farming:coffee_cup", {
|
|||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:coffee_cup",
|
output = "farming:coffee_cup",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:drinking_cup", "farming:coffee_beans","bucket:bucket_water"},
|
{"farming:drinking_cup", "group:food_coffee","bucket:bucket_water"},
|
||||||
},
|
},
|
||||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
|
6
corn.lua
6
corn.lua
@ -28,7 +28,7 @@ minetest.register_craft({
|
|||||||
type = "cooking",
|
type = "cooking",
|
||||||
cooktime = 10,
|
cooktime = 10,
|
||||||
output = "farming:corn_cob",
|
output = "farming:corn_cob",
|
||||||
recipe = "farming:corn"
|
recipe = "group:food_corn"
|
||||||
})
|
})
|
||||||
|
|
||||||
-- ethanol (thanks to JKMurray for this idea)
|
-- ethanol (thanks to JKMurray for this idea)
|
||||||
@ -52,8 +52,8 @@ minetest.register_node("farming:bottle_ethanol", {
|
|||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:bottle_ethanol",
|
output = "farming:bottle_ethanol",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "vessels:glass_bottle", "farming:corn", "farming:corn"},
|
{ "vessels:glass_bottle", "group:food_corn", "group:food_corn"},
|
||||||
{ "farming:corn", "farming:corn", "farming:corn"},
|
{ "group:food_corn", "group:food_corn", "group:food_corn"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
16
donut.lua
16
donut.lua
@ -11,9 +11,9 @@ minetest.register_craftitem("farming:donut", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:donut 3",
|
output = "farming:donut 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'', 'farming:wheat', ''},
|
{'', 'group:food_wheat', ''},
|
||||||
{'farming:wheat', 'farming:sugar', 'farming:wheat'},
|
{'group:food_wheat', 'group:food_sugar', 'group:food_wheat'},
|
||||||
{'', 'farming:wheat', ''},
|
{'', 'group:food_wheat', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ minetest.register_craftitem("farming:donut_chocolate", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:donut_chocolate",
|
output = "farming:donut_chocolate",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'farming:cocoa_beans'},
|
{'group:food_cocoa'},
|
||||||
{'farming:donut'},
|
{'farming:donut'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -62,8 +62,8 @@ minetest.after(0, function()
|
|||||||
output = "farming:porridge",
|
output = "farming:porridge",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
"farming:barley", "farming:barley", "farming:wheat",
|
"group:food_barley", "group:food_barley", "group:food_wheat",
|
||||||
"farming:wheat", "mobs:bucket_milk"
|
"group:food_wheat", "group:food_milk"
|
||||||
},
|
},
|
||||||
replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}
|
replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
@ -72,8 +72,8 @@ else
|
|||||||
output = "farming:porridge",
|
output = "farming:porridge",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
"farming:barley", "farming:barley", "farming:wheat",
|
"group:food_barley", "group:food_barley", "group:food_wheat",
|
||||||
"farming:wheat", "bucket:bucket_water"
|
"group:food_wheat", "bucket:bucket_water"
|
||||||
},
|
},
|
||||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
|
2
hemp.lua
2
hemp.lua
@ -39,7 +39,7 @@ minetest.register_node("farming:hemp_oil", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||||
},
|
},
|
||||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
|
groups = {food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ minetest.register_craftitem("farming:pepper", {
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "farming:peppercorn",
|
output = "group:food_peppercorn",
|
||||||
recipe = { "farming:pepper" }
|
recipe = { "farming:pepper" }
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ minetest.register_node("farming:pepper_ground", {
|
|||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:pepper_ground",
|
output = "farming:pepper_ground",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"farming:peppercorn", "vessels:glass_bottle"}
|
recipe = {"group:food_peppercorn", "vessels:glass_bottle"}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- crop definition
|
-- crop definition
|
||||||
|
@ -38,7 +38,7 @@ minetest.register_craftitem("farming:pineapple_ring", {
|
|||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "farming:pineapple_ring 5",
|
output = "farming:pineapple_ring 5",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"farming:pineapple"},
|
recipe = {"group:food_pineapple"},
|
||||||
replacements = {{"farming:pineapple", "farming:pineapple_top"}}
|
replacements = {{"farming:pineapple", "farming:pineapple_top"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -52,8 +52,14 @@ minetest.register_craftitem("farming:pineapple_juice", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:pineapple_juice",
|
output = "farming:pineapple_juice",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"vessels:drinking_glass", "farming:pineapple_ring",
|
recipe = {"vessels:drinking_glass", "group:food_pineapple_ring",
|
||||||
"farming:pineapple_ring", "farming:pineapple_ring"},
|
"group:food_pineapple_ring", "group:food_pineapple_ring"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:pineapple_juice 2",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"vessels:drinking_glass", "group:food_pineapple"},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- crop definition
|
-- crop definition
|
||||||
|
@ -28,7 +28,7 @@ minetest.register_craft({
|
|||||||
type = "cooking",
|
type = "cooking",
|
||||||
cooktime = 10,
|
cooktime = 10,
|
||||||
output = "farming:baked_potato",
|
output = "farming:baked_potato",
|
||||||
recipe = "farming:potato"
|
recipe = "group:food_potato"
|
||||||
})
|
})
|
||||||
|
|
||||||
-- potato definition
|
-- potato definition
|
||||||
|
10
pumpkin.lua
10
pumpkin.lua
@ -98,9 +98,8 @@ minetest.register_node("farming:jackolantern_on", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:jackolantern",
|
output = "farming:jackolantern",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", ""},
|
{"default:torch"},
|
||||||
{"", "default:torch", ""},
|
{"group:food_pumpkin"},
|
||||||
{"", "farming:pumpkin", ""},
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -108,7 +107,8 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem("farming:pumpkin_bread", {
|
minetest.register_craftitem("farming:pumpkin_bread", {
|
||||||
description = S("Pumpkin Bread"),
|
description = S("Pumpkin Bread"),
|
||||||
inventory_image = "farming_pumpkin_bread.png",
|
inventory_image = "farming_pumpkin_bread.png",
|
||||||
on_use = minetest.item_eat(8)
|
on_use = minetest.item_eat(8),
|
||||||
|
groups = {food_bread = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("farming:pumpkin_dough", {
|
minetest.register_craftitem("farming:pumpkin_dough", {
|
||||||
@ -119,7 +119,7 @@ minetest.register_craftitem("farming:pumpkin_dough", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:pumpkin_dough",
|
output = "farming:pumpkin_dough",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"farming:flour", "farming:pumpkin_slice", "farming:pumpkin_slice"}
|
recipe = {"group:food_flour", "group:food_pumpkin_slice", "group:food_pumpkin_slice"}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -23,7 +23,7 @@ minetest.register_craft({
|
|||||||
output = "farming:smoothie_raspberry",
|
output = "farming:smoothie_raspberry",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:snow"},
|
{"default:snow"},
|
||||||
{"farming:raspberries"},
|
{"group:food_raspberries"},
|
||||||
{"vessels:drinking_glass"},
|
{"vessels:drinking_glass"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -22,9 +22,9 @@ minetest.register_craftitem("farming:rhubarb_pie", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:rhubarb_pie",
|
output = "farming:rhubarb_pie",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "farming:sugar", ""},
|
{"", "group:food_sugar", ""},
|
||||||
{"farming:rhubarb", "farming:rhubarb", "farming:rhubarb"},
|
{"group:food_rhubarb", "group:food_rhubarb", "group:food_rhubarb"},
|
||||||
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
{"group:food_wheat", "group:food_wheat", "group:food_wheat"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user