mtfoods/foods.lua
PHILIP ROBINSON 13fb8b63a8 The First commits
All of the files for the latest mtfoods.
2014-01-20 14:56:42 -08:00

91 lines
2.3 KiB
Lua

-- Foods --
--MLT--
minetest.register_craftitem( "mtfoods:mlt_burger", {
description = "MLT (Mutton, Lettuce, Tomato)",
inventory_image = "mtfoods_mlt.png",
wield_image = "mtfoods_mlt.png",
on_use = minetest.item_eat(6.5),
})
minetest.register_craft({
output = "mtfoods:mlt_burger",
recipe = {
{'farming:bread', 'mobs:meat', ''},
{'', 'default:junglegrass', ''},
{'', 'farming_plus:tomato_item', 'farming:bread'},
}
})
--Potato uses--
minetest.register_craftitem( "mtfoods:potato_slices", {
description = "Sliced Potato",
inventory_image = "mtfoods_potato_slices.png",
wield_image = "mtfoods_potato_slices.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = "mtfoods:potato_slices",
recipe = {
{'farming_plus:potatoe_item'},
}
})
minetest.register_craftitem( "mtfoods:potato_chips", {
description = "Potato Chips",
inventory_image = "mtfoods_potato_chips.png",
wield_image = "mtfoods_potato_chips.png",
on_use = minetest.item_eat(3),
})
minetest.register_craft({
type = "cooking",
output = "mtfoods:potato_chips",
recipe = "mtfoods:potato_slices",
})
-- Medicine --
minetest.register_craftitem( "mtfoods:medicine", {
description = "Medicine",
inventory_image = "mtfoods_medicine.png",
wield_image = "mtfoods_medicine.png",
on_use = minetest.item_eat(8),
})
minetest.register_craft({
output = "mtfoods:medicine",
recipe = {
{'', 'farming:wheat', ''},
{'mtfoods:dandelion_milk', 'default:junglegrass', 'mtfoods:chocolate'},
{'', 'vessels:glass_bottle', ''},
}
})
minetest.register_node( "mtfoods:casserole",{
drawtype = "nodebox",
description = "Casserole",
paramtype = "light",
on_use = minetest.item_eat(5),
groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1},
tiles = {"mtfoods_casserole.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png"},
node_box = {
type = "fixed",
fixed = {
{-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000},
{-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500},
}
}
})
minetest.register_craft({
output = "mtfoods:casserole",
recipe = {
{'farming_plus:carrot_item', 'farming_plus:potatoe_item', 'farming_plus:tomato_item'},
{'', 'farming:bread', ''},
}
})