copied code for cutting boards/similar
parent
186304b821
commit
d9d578daa6
|
@ -1,7 +1,7 @@
|
|||
local S = farming.intllib
|
||||
|
||||
-- cold cup of coffee
|
||||
minetest.register_node("farming:grain_coffee_cup", {
|
||||
minetest.register_node(":farming:grain_coffee_cup", {
|
||||
description = S("Cup of Grain Coffee"),
|
||||
drawtype = "torchlike", --"plantlike",
|
||||
tiles = {"farming_coffee_cup.png"},
|
||||
|
@ -31,7 +31,7 @@ minetest.register_craft( {
|
|||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:grain_coffee", {
|
||||
minetest.register_craftitem(":farming:grain_coffee", {
|
||||
description = S("Grain Coffee"),
|
||||
inventory_image = "farming_roasted_powder.png",
|
||||
groups = {food_grain_powder = 1, flammable = 2},
|
||||
|
|
64
food.lua
64
food.lua
|
@ -20,7 +20,7 @@ minetest.register_craft({
|
|||
type = "cooking",
|
||||
cooktime = 2,
|
||||
output = "farming:sugar 3",
|
||||
recipe = "default:sugarbeet_seed",
|
||||
recipe = "farming:sugarbeet_seed",
|
||||
})
|
||||
|
||||
|
||||
|
@ -289,3 +289,65 @@ if basic_functions.has_value(modlist,"wool") then
|
|||
recipe={"farming:hemp_fibre","farming:hemp_fibre","farming:hemp_fibre","farming:hemp_fibre"},
|
||||
})
|
||||
end
|
||||
|
||||
--copied from farming_mod
|
||||
-- sliced bread
|
||||
minetest.register_craftitem(":farming:bread_slice", {
|
||||
description = S("Sliced Bread"),
|
||||
inventory_image = "farming_bread_slice.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_bread_slice = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:bread_slice 5",
|
||||
recipe = {"farming:bread", "group:food_cutting_board"},
|
||||
replacements = {{"group:food_cutting_board", "farming:cutting_board"}},
|
||||
})
|
||||
|
||||
-- toast
|
||||
minetest.register_craftitem(":farming:toast", {
|
||||
description = S("Toast"),
|
||||
inventory_image = "farming_toast.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_toast = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 3,
|
||||
output = "farming:toast",
|
||||
recipe = "farming:bread_slice"
|
||||
})
|
||||
|
||||
-- toast sandwich
|
||||
minetest.register_craftitem(":farming:toast_sandwich", {
|
||||
description = S("Toast Sandwich"),
|
||||
inventory_image = "farming_toast_sandwich.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
groups = {flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:toast_sandwich",
|
||||
recipe = {
|
||||
{"farming:bread_slice"},
|
||||
{"farming:toast"},
|
||||
{"farming:bread_slice"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":farming:smoothie", {
|
||||
description = S("Smoothie"),
|
||||
inventory_image = "farming_smoothie.png",
|
||||
groups = {flammable = 3},
|
||||
drink_hp=10,
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:smoothie 3",
|
||||
recipe = {"vessels:drinking_glass","vessels:drinking_glass","vessels:drinking_glass", "farming:blueberry_seed",
|
||||
"farming:strawberry_seed","farming:raspberry_seed"},
|
||||
})
|
||||
|
|
2
init.lua
2
init.lua
|
@ -17,5 +17,7 @@ basic_functions.import_settingtype(farming_craft.path .. "/settingtypes.txt")
|
|||
|
||||
dofile(farming_craft.path .. "/api.lua") -- several foods out of crops
|
||||
dofile(farming_craft.path .. "/food.lua") -- several foods out of crops
|
||||
dofile(farming_craft.path .. "/coffee.lua") -- several foods out of crops
|
||||
dofile(farming_craft.path .. "/utensils.lua") -- several foods out of crops
|
||||
|
||||
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 186 B |
Binary file not shown.
After Width: | Height: | Size: 175 B |
|
@ -0,0 +1,68 @@
|
|||
local S = farming_craft.intllib
|
||||
local modlist=minetest.get_modnames()
|
||||
|
||||
-- code from tenplus1 farming mod
|
||||
-- cutting board
|
||||
|
||||
minetest.register_craftitem(":farming:cutting_board", {
|
||||
description = S("Cutting Board"),
|
||||
inventory_image = "farming_cutting_board.png",
|
||||
groups = {food_cutting_board = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cutting_board",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "", ""},
|
||||
{"", "group:stick", ""},
|
||||
{"", "", "group:wood"},
|
||||
}
|
||||
})
|
||||
|
||||
-- juicer
|
||||
|
||||
minetest.register_craftitem(":farming:juicer", {
|
||||
description = S("Juicer"),
|
||||
inventory_image = "farming_juicer.png",
|
||||
groups = {food_juicer = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:juicer",
|
||||
recipe = {
|
||||
{"", "default:stone", ""},
|
||||
{"default:stone", "", "default:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
-- saucepan
|
||||
|
||||
minetest.register_craftitem(":farming:saucepan", {
|
||||
description = S("Saucepan"),
|
||||
inventory_image = "farming_saucepan.png",
|
||||
groups = {food_saucepan = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:saucepan",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "", ""},
|
||||
{"", "group:stick", ""},
|
||||
}
|
||||
})
|
||||
|
||||
-- cooking pot
|
||||
|
||||
minetest.register_craftitem(":farming:pot", {
|
||||
description = S("Cooking Pot"),
|
||||
inventory_image = "farming_pot.png",
|
||||
groups = {food_pot = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pot",
|
||||
recipe = {
|
||||
{"group:stick", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"", "default:steel_ingot", "default:steel_ingot"},
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue