forked from mtcontrib/farming
update recipes to use water/river-water buckets, also support for wooden bucket mod
This commit is contained in:
parent
a7a7a55a29
commit
f7524e1449
@ -11,7 +11,7 @@ minetest.register_craftitem("farming:coffee_beans", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cold cup of coffee
|
-- cup of coffee
|
||||||
minetest.register_node("farming:coffee_cup", {
|
minetest.register_node("farming:coffee_cup", {
|
||||||
description = S("Cup of Coffee"),
|
description = S("Cup of Coffee"),
|
||||||
drawtype = "torchlike",
|
drawtype = "torchlike",
|
||||||
@ -37,13 +37,27 @@ minetest.register_craft( {
|
|||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
"vessels:drinking_glass", "group:food_coffee",
|
"vessels:drinking_glass", "group:food_coffee",
|
||||||
"bucket:bucket_water", "group:food_saucepan"},
|
"group:water_bucket", "group:food_saucepan"},
|
||||||
replacements = {
|
replacements = {
|
||||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
{"group:water_bucket", "bucket:bucket_empty"},
|
||||||
{"group:food_saucepan", "farming:saucepan"}
|
{"group:food_saucepan", "farming:saucepan"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("bucket_wooden") then
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "farming:coffee_cup",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {
|
||||||
|
"vessels:drinking_glass", "group:food_coffee",
|
||||||
|
"group:water_bucket_wooden", "group:food_saucepan"},
|
||||||
|
replacements = {
|
||||||
|
{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"},
|
||||||
|
{"group:food_saucepan", "farming:saucepan"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- coffee definition
|
-- coffee definition
|
||||||
local def = {
|
local def = {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
@ -78,21 +78,23 @@ minetest.register_craft( {
|
|||||||
output = "farming:hemp_fibre 8",
|
output = "farming:hemp_fibre 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
|
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
|
||||||
{"farming:hemp_leaf", "bucket:bucket_water", "farming:hemp_leaf"},
|
{"farming:hemp_leaf", "group:water_bucket", "farming:hemp_leaf"},
|
||||||
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
|
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
|
||||||
},
|
},
|
||||||
replacements = {{ "bucket:bucket_water", "bucket:bucket_empty"}}
|
replacements = {{"group:water_bucket", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
if minetest.get_modpath("bucket_wooden") then
|
||||||
output = "farming:hemp_fibre 8",
|
minetest.register_craft( {
|
||||||
recipe = {
|
output = "farming:hemp_fibre 8",
|
||||||
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
|
recipe = {
|
||||||
{"farming:hemp_leaf", "bucket:bucket_river_water", "farming:hemp_leaf"},
|
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"},
|
||||||
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
|
{"farming:hemp_leaf", "group:water_bucket_wooden", "farming:hemp_leaf"},
|
||||||
},
|
{"farming:hemp_leaf", "farming:hemp_leaf", "farming:hemp_leaf"}
|
||||||
replacements = {{ "bucket:bucket_river_water", "bucket:bucket_empty"}}
|
},
|
||||||
})
|
replacements = {{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- hemp block
|
-- hemp block
|
||||||
minetest.register_node("farming:hemp_block", {
|
minetest.register_node("farming:hemp_block", {
|
||||||
|
@ -33,14 +33,30 @@ minetest.register_craft({
|
|||||||
recipe = {
|
recipe = {
|
||||||
"vessels:drinking_glass", "group:food_mint",
|
"vessels:drinking_glass", "group:food_mint",
|
||||||
"group:food_mint", "group:food_mint",
|
"group:food_mint", "group:food_mint",
|
||||||
"farming:juicer", "bucket:bucket_water"
|
"farming:juicer", "group:water_bucket"
|
||||||
},
|
},
|
||||||
replacements = {
|
replacements = {
|
||||||
{"group:food_juicer", "farming:juicer"},
|
{"group:food_juicer", "farming:juicer"},
|
||||||
{"bucket:bucket_water", "bucket:bucket_empty"}
|
{"group:water_bucket", "bucket:bucket_empty"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("bucket_wooden") then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:mint_tea",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {
|
||||||
|
"vessels:drinking_glass", "group:food_mint",
|
||||||
|
"group:food_mint", "group:food_mint",
|
||||||
|
"farming:juicer", "group:water_bucket_wooden"
|
||||||
|
},
|
||||||
|
replacements = {
|
||||||
|
{"group:food_juicer", "farming:juicer"},
|
||||||
|
{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- mint definition
|
-- mint definition
|
||||||
local def = {
|
local def = {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
|
55
food.lua
55
food.lua
@ -68,14 +68,29 @@ minetest.register_craft({
|
|||||||
recipe = {
|
recipe = {
|
||||||
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
||||||
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
||||||
{"bucket:bucket_water", "group:food_pot", "vessels:glass_bottle"}
|
{"group:water_bucket", "group:food_pot", "vessels:glass_bottle"}
|
||||||
},
|
},
|
||||||
replacements = {
|
replacements = {
|
||||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
{"group:water_bucket", "bucket:bucket_empty"},
|
||||||
{"group:food_pot", "farming:pot"}
|
{"group:food_pot", "farming:pot"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("bucket_wooden") then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:rose_water",
|
||||||
|
recipe = {
|
||||||
|
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
||||||
|
{"flowers:rose", "flowers:rose", "flowers:rose"},
|
||||||
|
{"group:water_bucket_wooden", "group:food_pot", "vessels:glass_bottle"}
|
||||||
|
},
|
||||||
|
replacements = {
|
||||||
|
{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"},
|
||||||
|
{"group:food_pot", "farming:pot"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
--= Turkish Delight
|
--= Turkish Delight
|
||||||
|
|
||||||
minetest.register_craftitem("farming:turkish_delight", {
|
minetest.register_craftitem("farming:turkish_delight", {
|
||||||
@ -168,24 +183,29 @@ minetest.register_craftitem("farming:porridge", {
|
|||||||
|
|
||||||
minetest.after(0, function()
|
minetest.after(0, function()
|
||||||
|
|
||||||
local fluid = "bucket:bucket_water"
|
local fluid = "group:water_bucket"
|
||||||
local fluid_return = "bucket:bucket_water"
|
local fluid_return = {
|
||||||
|
{"group:water_bucket", "bucket:bucket_empty"},
|
||||||
|
{"group:water_bucket_wooden", "bucket:bucket_empty"}
|
||||||
|
}
|
||||||
|
|
||||||
if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
|
if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
|
||||||
fluid = "group:food_milk"
|
fluid = "group:food_milk"
|
||||||
fluid_return = "mobs:bucket_milk"
|
fluid_return = {
|
||||||
|
{"mobs:bucket_milk", "bucket:bucket_empty"}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "farming:porridge",
|
||||||
|
recipe = {
|
||||||
|
"group:food_oats", "group:food_oats", "group:food_oats",
|
||||||
|
"group:food_oats", "group:food_bowl", "group:water_bucket_wooden"
|
||||||
|
},
|
||||||
|
replacements = fluid_return
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = "farming:porridge",
|
|
||||||
recipe = {
|
|
||||||
"group:food_barley", "group:food_barley", "group:food_wheat",
|
|
||||||
"group:food_wheat", "group:food_bowl", fluid
|
|
||||||
},
|
|
||||||
replacements = {{fluid_return, "bucket:bucket_empty"}}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "farming:porridge",
|
output = "farming:porridge",
|
||||||
@ -193,8 +213,11 @@ minetest.after(0, function()
|
|||||||
"group:food_oats", "group:food_oats", "group:food_oats",
|
"group:food_oats", "group:food_oats", "group:food_oats",
|
||||||
"group:food_oats", "group:food_bowl", fluid
|
"group:food_oats", "group:food_bowl", fluid
|
||||||
},
|
},
|
||||||
replacements = {{fluid_return, "bucket:bucket_empty"}}
|
replacements = fluid_return
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("bucket_wooden") then
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--= Jaffa Cake
|
--= Jaffa Cake
|
||||||
|
Loading…
Reference in New Issue
Block a user