Camas/mods/farming/craft.lua

56 lines
1.1 KiB
Lua
Raw Normal View History

minetest.register_craftitem(
2015-09-01 17:15:24 +02:00
"farming:cotton",
{
description = "Cotton",
inventory_image = "farming_cotton.png"
})
minetest.register_craftitem(
2015-09-01 17:15:24 +02:00
"farming:wheat",
{
description = "Wheat",
inventory_image = "farming_wheat.png"
})
minetest.register_craftitem(
2015-09-01 17:15:24 +02:00
"farming:flour",
{
description = "Flour",
inventory_image = "farming_flour.png"
})
minetest.register_craftitem(
2015-09-01 17:15:24 +02:00
"farming:bread",
{
description = "Bread",
inventory_image = "farming_bread.png",
on_use = minetest.item_eat({hp = 4, sat = 40})
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
2015-09-01 17:15:24 +02:00
{
output = "farming:flour",
recipe = {
{"farming:wheat", "farming:wheat"},
{"farming:wheat", "farming:wheat"},
}
})
minetest.register_craft(
2015-09-01 17:15:24 +02:00
{
output = "farming:cotton_bale 2",
recipe = {
{"farming:cotton", "farming:cotton"},
{"farming:cotton", "farming:cotton"},
}
})
minetest.register_craft(
2015-09-01 17:15:24 +02:00
{
type = "cooking",
output = "farming:bread",
recipe = "farming:flour",
cooktime = 15,
})
default.log("craft", "loaded")