x_farming/crafting.lua

499 lines
12 KiB
Lua
Raw Normal View History

--
-- Crafting recipes & items
--
2018-10-29 19:37:18 -07:00
-- Cocoa
minetest.register_craft( {
output = "dye:brown",
recipe = {
2021-03-14 13:29:09 -07:00
{ "x_farming:cocoa_bean" },
2018-10-29 19:37:18 -07:00
}
})
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:cookie", {
2021-03-21 09:13:10 -07:00
description = "Cookie" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 2"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_cookie.png",
2018-10-29 19:37:18 -07:00
on_use = minetest.item_eat(2),
})
minetest.register_craft( {
type = "shapeless",
2021-03-14 13:29:09 -07:00
output = "x_farming:cookie 8",
recipe = {"farming:wheat", "x_farming:cocoa_bean", "farming:flour", "x_farming:bottle_soymilk", "x_farming:sugar" }
2018-10-29 19:37:18 -07:00
})
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:chocolate", {
2021-03-21 09:13:10 -07:00
description = "Chocolate" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 3"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_chocolate.png",
2018-10-29 19:37:18 -07:00
on_use = minetest.item_eat(3),
})
minetest.register_craft( {
2021-03-14 13:29:09 -07:00
output = "x_farming:chocolate",
2018-10-29 19:37:18 -07:00
recipe = {
2021-03-14 13:29:09 -07:00
{"", "", "x_farming:cocoa_bean"},
{"", "x_farming:cocoa_bean", ""},
2018-10-29 19:37:18 -07:00
{"default:paper", "", ""},
}
})
-- Soup Bowl
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:bowl", {
2018-02-05 20:33:09 -08:00
description = "Empty Soup Bowl",
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_bowl.png",
2018-02-05 20:33:09 -08:00
})
2018-02-08 19:00:40 -08:00
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:bowl 3",
2018-02-08 19:00:40 -08:00
recipe = {
{"group:wood", "", "group:wood"},
{"", "group:wood", ""}
}
})
2018-02-05 20:33:09 -08:00
-- Hog Stew
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:hog_stew", {
2021-03-21 09:13:10 -07:00
description = "Hog Stew" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 8"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_hog_stew.png",
on_use = minetest.item_eat(8, "x_farming:bowl"),
2018-02-05 20:33:09 -08:00
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:hog_stew",
2018-02-05 20:33:09 -08:00
recipe = {
{"", "mobs:pork_raw", ""},
2021-03-14 13:29:09 -07:00
{"x_farming:carrot", "x_farming:bakedpotato", "flowers:mushroom_brown"},
{"", "x_farming:bowl", ""}
2018-02-05 20:33:09 -08:00
}
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:hog_stew",
2018-02-05 20:33:09 -08:00
recipe = {
{"", "mobs:pork_raw", ""},
2021-03-14 13:29:09 -07:00
{"x_farming:carrot", "x_farming:bakedpotato", "flowers:mushroom_red"},
{"", "x_farming:bowl", ""}
2018-02-05 20:33:09 -08:00
}
})
-- Beetroot
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:beetroot_soup", {
2021-03-21 09:13:10 -07:00
description = "Beetroot Soup" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 6"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_beetroot_soup.png",
on_use = minetest.item_eat(6, "x_farming:bowl"),
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:beetroot_soup",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:beetroot", "x_farming:beetroot", "x_farming:beetroot"},
{"x_farming:beetroot", "x_farming:beetroot", "x_farming:beetroot"},
{"", "x_farming:bowl", ""}
2018-02-05 20:33:09 -08:00
}
})
-- Carrot
2021-03-21 09:13:10 -07:00
local golden_carrot_desc = "Golden Carrot" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 10")
if x_farming.hbhunger ~= nil then
golden_carrot_desc = golden_carrot_desc .. "\n" .. minetest.colorize(x_farming.colors.red, "Heal: 10")
end
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:carrot_golden", {
2021-03-21 09:13:10 -07:00
description = golden_carrot_desc,
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_carrot_golden.png",
wield_image = "x_farming_carrot_golden.png^[transformR270",
2018-02-05 20:33:09 -08:00
on_use = minetest.item_eat(10),
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:carrot_golden",
2018-02-05 20:33:09 -08:00
recipe = {
{"default:gold_lump", "default:gold_lump", "default:gold_lump"},
2021-03-14 13:29:09 -07:00
{"default:gold_lump", "x_farming:carrot", "default:gold_lump"},
2018-02-05 20:33:09 -08:00
{"default:gold_lump", "default:gold_lump", "default:gold_lump"}
},
})
-- Coffee
minetest.register_craftitem("x_farming:bottle_coffee", {
description = "Coffee Bottle",
tiles = {"x_farming_bottle_coffee.png"},
inventory_image = "x_farming_bottle_coffee.png",
wield_image = "x_farming_bottle_coffee.png",
groups = {vessel = 1},
})
minetest.register_craft({
type = "shapeless",
output = "x_farming:bottle_coffee",
recipe = {"x_farming:coffee","x_farming:bottle_water"}
})
minetest.register_craft({
2018-02-05 20:33:09 -08:00
type = "cooking",
cooktime = 7,
2021-03-14 13:29:09 -07:00
output = "x_farming:coffee_cup_hot",
recipe = "x_farming:bottle_coffee",
replacements = {{"x_farming:bottle_coffee", "vessels:glass_bottle"}}
2018-02-05 20:33:09 -08:00
})
-- backwards compatibility
minetest.register_alias("x_farming:coffee_cup", "x_farming:bottle_coffee")
2018-02-05 20:33:09 -08:00
-- Corn
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:corn_pop", {
2021-03-21 09:13:10 -07:00
description = "Popped corn" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 1"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_corn_pop.png",
2018-02-05 20:33:09 -08:00
on_use = minetest.item_eat(1),
})
minetest.register_craft( {
type = "cooking",
cooktime = 10,
2021-03-14 13:29:09 -07:00
output = "x_farming:corn_pop",
recipe = "x_farming:corn"
2018-02-05 20:33:09 -08:00
})
minetest.register_craft( {
2021-03-14 13:29:09 -07:00
output = "x_farming:corn_popcorn",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:corn_pop", "x_farming:corn_pop","x_farming:corn_pop"},
2021-03-29 08:48:45 -07:00
{"default:paper", "x_farming:salt","default:paper"},
2018-02-05 20:33:09 -08:00
{"default:paper", "default:paper","default:paper"},
}
})
-- Melon
2021-03-21 09:13:10 -07:00
local golden_melon_desc = "Golden Melon" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 10")
if x_farming.hbhunger ~= nil then
golden_melon_desc = golden_melon_desc .. "\n" .. minetest.colorize(x_farming.colors.red, "Heal: 10")
end
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:golden_melon", {
2021-03-21 09:13:10 -07:00
description = golden_melon_desc,
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_golden_melon.png",
wield_image = "x_farming_golden_melon.png^[transformR90",
2018-02-05 20:33:09 -08:00
on_use = minetest.item_eat(10),
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:golden_melon",
2018-02-05 20:33:09 -08:00
recipe = {
{"default:gold_lump", "default:gold_lump", "default:gold_lump"},
2021-03-14 13:29:09 -07:00
{"default:gold_lump", "x_farming:melon", "default:gold_lump"},
2018-02-05 20:33:09 -08:00
{"default:gold_lump", "default:gold_lump", "default:gold_lump"}
},
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:melon_block",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:melon", "x_farming:melon", "x_farming:melon"},
{"x_farming:melon", "x_farming:melon", "x_farming:melon"},
{"x_farming:melon", "x_farming:melon", "x_farming:melon"}
2018-02-05 20:33:09 -08:00
},
})
-- Obsidian Wart
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:wart_brick", {
2018-02-05 20:33:09 -08:00
description = "Wart Brick",
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_wart_brick.png",
})
minetest.register_craft({
2018-02-05 20:33:09 -08:00
type = "cooking",
cooktime = 10,
2021-03-14 13:29:09 -07:00
output = "x_farming:wart_brick",
recipe = "x_farming:obsidian_wart"
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:wart_block",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:obsidian_wart", "x_farming:obsidian_wart", "x_farming:obsidian_wart"},
{"x_farming:obsidian_wart", "x_farming:obsidian_wart", "x_farming:obsidian_wart"},
{"x_farming:obsidian_wart", "x_farming:obsidian_wart", "x_farming:obsidian_wart"}
2018-02-05 20:33:09 -08:00
}
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:wart_brick_block",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:wart_brick", "x_farming:wart_brick", ""},
{"x_farming:wart_brick", "x_farming:wart_brick", ""}
2018-02-05 20:33:09 -08:00
}
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:wart_red_brick_block",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:obsidian_wart", "x_farming:wart_brick", ""},
{"x_farming:wart_brick", "x_farming:obsidian_wart", ""}
2018-02-05 20:33:09 -08:00
},
})
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:wartrack 4",
2018-02-05 20:33:09 -08:00
recipe = {
2021-03-14 13:29:09 -07:00
{"x_farming:wart_block", "x_farming:wart_block", ""},
{"x_farming:wart_block", "x_farming:wart_block", ""}
2018-02-05 20:33:09 -08:00
},
})
-- Potato
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:bakedpotato", {
2021-03-21 09:13:10 -07:00
description = "Baked Potato" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 6"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_potato_baked.png",
2018-02-05 20:33:09 -08:00
on_use = minetest.item_eat(6),
})
2021-03-21 09:13:10 -07:00
local poisonouspotato_desc = "Poisonous Potato" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: -6")
if x_farming.hbhunger ~= nil then
poisonouspotato_desc = poisonouspotato_desc .. "\n" .. minetest.colorize(x_farming.colors.green, "Poison: 5")
end
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:poisonouspotato", {
2021-03-21 09:13:10 -07:00
description = poisonouspotato_desc,
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_potato_poisonous.png",
2021-03-21 09:13:10 -07:00
on_use = minetest.item_eat(-6),
})
minetest.register_craft({
2018-02-05 20:33:09 -08:00
type = "cooking",
cooktime = 10,
2021-03-14 13:29:09 -07:00
output = "x_farming:bakedpotato",
recipe = "x_farming:potato"
})
-- Pumpkin
-- pumpkin lantern recipe
minetest.register_craft({
2021-03-14 13:29:09 -07:00
output = "x_farming:pumpkin_lantern",
2018-02-05 20:33:09 -08:00
recipe = {
{"", "", ""},
2021-03-14 13:29:09 -07:00
{"", "x_farming:pumpkin_block", ""},
2018-02-05 20:33:09 -08:00
{"", "default:torch", ""}
},
})
-- crafted item from recipe
2021-03-14 13:29:09 -07:00
minetest.register_craftitem("x_farming:pumpkin_pie", {
2021-03-21 09:13:10 -07:00
description = "Pumpkin Pie" .. "\n" .. minetest.colorize(x_farming.colors.brown, "Hunger: 6"),
2021-03-14 13:29:09 -07:00
inventory_image = "x_farming_pumpkin_pie.png",
2018-02-05 20:33:09 -08:00
on_use = minetest.item_eat(6),
})
-- pumpkin pie crafting recipe
minetest.register_craft({
type = "shapeless",
2021-03-14 13:29:09 -07:00
output = "x_farming:pumpkin_pie",
recipe = {"x_farming:pumpkin_block", "farming:flour", "x_farming:bottle_soymilk", "x_farming:sugar"}
})
-- pumpkin as fuel (better than cactus)
minetest.register_craft({
2018-02-05 20:33:09 -08:00
type = "fuel",
2021-03-14 13:29:09 -07:00
recipe = "x_farming:pumpkin_block",
2018-02-05 20:33:09 -08:00
burntime = 20,
})
minetest.register_craft({
2018-02-05 20:33:09 -08:00
type = "fuel",
2021-03-14 13:29:09 -07:00
recipe = "x_farming:pumpkin_lantern",
2018-02-05 20:33:09 -08:00
burntime = 20,
})
-- Bottle Water
minetest.register_craftitem("x_farming:bottle_water", {
description = "Water Bottle",
tiles = {"x_farming_bottle_water.png"},
inventory_image = "x_farming_bottle_water.png",
wield_image = "x_farming_bottle_water.png",
groups = {vessel = 1},
})
minetest.register_craft({
type = "shapeless",
output = "x_farming:bottle_water 5",
recipe = {"vessels:glass_bottle", "vessels:glass_bottle", "vessels:glass_bottle", "vessels:glass_bottle", "vessels:glass_bottle", "bucket:bucket_water"},
replacements = {{"bucket:water_bucket", "bucket:bucket_empty"}},
})
-- Donuts
minetest.register_craft({
type = "shapeless",
output = "x_farming:donut",
recipe = {"x_farming:bottle_soymilk", "x_farming:sugar", "farming:flour"}
})
minetest.register_craft({
type = "shapeless",
output = "x_farming:donut_chocolate",
recipe = {"x_farming:bottle_soymilk", "x_farming:sugar", "farming:flour", "x_farming:cocoa_bean"}
})
2021-03-29 08:48:45 -07:00
-- Fries
minetest.register_craft({
output = "x_farming:fries",
recipe = {
{"", "", "x_farming:salt"},
{"", "x_farming:bakedpotato", ""},
{"default:paper", "", ""}
},
})
2021-04-01 11:09:45 -07:00
-- Ice Fishing
minetest.register_craft({
output = "x_farming:seed_icefishing",
recipe = {
{"group:wool", "farming:string", "group:stick"},
{"", "farming:string", "group:stick"},
{"", "farming:string", "group:stick"}
},
})
minetest.register_craft({
output = "dye:black 4",
recipe = {
{"x_farming:black_seashroom"}
}
})
minetest.register_craft({
output = "dye:blue 4",
recipe = {
{"x_farming:blue_seashroom"}
}
})
minetest.register_craft({
output = "dye:brown 4",
recipe = {
{"x_farming:brown_seashroom"}
}
})
minetest.register_craft({
output = "dye:cyan 4",
recipe = {
{"x_farming:cyan_seashroom"}
}
})
minetest.register_craft({
output = "dye:dark_grey 4",
recipe = {
{"x_farming:gray_seashroom"}
}
})
minetest.register_craft({
output = "dye:grey 4",
recipe = {
{"x_farming:light_gray_seashroom"}
}
})
minetest.register_craft({
output = "dye:dark_green 4",
recipe = {
{"x_farming:green_seashroom"}
}
})
minetest.register_craft({
output = "dye:green 4",
recipe = {
{"x_farming:lime_seashroom"}
}
})
minetest.register_craft({
output = "dye:magenta 4",
recipe = {
{"x_farming:magenta_seashroom"}
}
})
minetest.register_craft({
output = "dye:orange 4",
recipe = {
{"x_farming:orange_seashroom"}
}
})
minetest.register_craft({
output = "dye:pink 4",
recipe = {
{"x_farming:pink_seashroom"}
}
})
minetest.register_craft({
output = "dye:violet 4",
recipe = {
{"x_farming:purple_seashroom"}
}
})
minetest.register_craft({
output = "dye:red 4",
recipe = {
{"x_farming:red_seashroom"}
}
})
minetest.register_craft({
output = "dye:white 4",
recipe = {
{"x_farming:white_seashroom"}
}
})
minetest.register_craft({
output = "dye:yellow 4",
recipe = {
{"x_farming:yellow_seashroom"}
}
})
minetest.register_craft({
output = "default:diamond",
recipe = {
{"x_farming:diamond_angler"}
}
})
minetest.register_craft({
output = "default:gold_lump",
recipe = {
{"x_farming:goldfish"}
}
})
minetest.register_craft({
output = "default:gold_ingot",
recipe = {
{"x_farming:true_goldfish"}
}
})
minetest.register_craft({
output = "default:iron_lump",
recipe = {
{"x_farming:ironfish"}
}
})
minetest.register_craft({
output = "x_farming:seed_pumpkin",
recipe = {
{"x_farming:pumpkinseed"}
}
})