2012-08-30 21:27:32 +02:00
|
|
|
-- RUBENFOOD MOD
|
|
|
|
-- A mod written by rubenwardy that adds
|
|
|
|
-- food to the minetest game
|
|
|
|
-- ======================================
|
2012-08-31 15:56:59 +02:00
|
|
|
-- >> rubenfood/diary.lua
|
2012-08-31 15:09:41 +02:00
|
|
|
-- adds diary products
|
2012-08-30 21:27:32 +02:00
|
|
|
-- ======================================
|
|
|
|
-- [regis-food] Cheese
|
|
|
|
-- [craft] Cheese
|
|
|
|
-- [regis-item] Butter
|
|
|
|
-- [craft] Butter
|
|
|
|
-- ======================================
|
|
|
|
|
2012-08-31 15:56:59 +02:00
|
|
|
minetest.register_craftitem("rubenfood:butter", {
|
|
|
|
description = "Butter",
|
|
|
|
inventory_image = "ruben_butter.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("rubenfood:cheese", {
|
|
|
|
description = "Cheese",
|
|
|
|
inventory_image = "ruben_cheese.png",
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = '"rubenfood:butter" 1',
|
|
|
|
recipe = {
|
|
|
|
{'"rubenfood:milk"','"rubenfood:milk"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = '"rubenfood:cheese" 1',
|
|
|
|
recipe = {
|
|
|
|
{'"rubenfood:butter"','"rubenfood:butter"'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2012-08-30 21:27:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|