1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-12-23 08:20:19 +01:00
food/drinks/hot.lua

82 lines
1.8 KiB
Lua
Raw Normal View History

2012-08-30 18:04:36 +02:00
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/hot.lua
-- adds hot drinks
2012-08-30 18:04:36 +02:00
-- =====================================
-- [regis-food] Coffee
-- [craft] Coffe
-- [regis-food] Hot Chocolate
-- [craft] Hot Chocolate
2012-08-30 18:04:36 +02:00
-- =====================================
print ("RubenFood [Master] - Loading Hot")
2012-08-29 20:47:01 +02:00
2012-08-29 20:25:41 +02:00
-----------------------------Coffee-----------------------------
minetest.register_craftitem("food:coffeebean",{
2012-08-29 20:47:01 +02:00
description = "Raw Coffee Bean",
2012-08-31 16:37:02 +02:00
tiles = {"food_coffee.png"},
inventory_image = "food_coffee.png",
2012-08-29 20:25:41 +02:00
})
minetest.register_craftitem("food:coffeebean_cooked",{
2012-08-29 20:25:41 +02:00
description = "Cooked Coffee Bean",
2012-08-31 16:37:02 +02:00
tiles = {"food_coffee_cooked.png"},
inventory_image = "food_coffee_cooked.png",
2012-08-29 20:25:41 +02:00
})
minetest.register_craftitem("food:coffee", {
2012-08-29 20:25:41 +02:00
description = "Coffee",
2012-08-31 16:37:02 +02:00
inventory_image = "food_coffee_cup.png",
2012-08-29 20:25:41 +02:00
on_use = minetest.item_eat(10),
2012-10-02 18:38:10 +02:00
groups={food=1},
2012-08-29 20:25:41 +02:00
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:coffeebean" 1',
2012-08-29 20:25:41 +02:00
recipe = {
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
{'""','"default:dry_shrub"','""'},
}
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:coffee" 1',
2012-08-29 20:25:41 +02:00
recipe = {
2012-08-31 16:37:02 +02:00
{'""','"food:coffeebean_cooked"','""'},
{'""','"food:coffeebean_cooked"','""'},
{'""','"food:cup"','""'},
2012-08-29 20:25:41 +02:00
}
})
minetest.register_craft({
type = "cooking",
2012-08-31 16:37:02 +02:00
output = "food:coffeebean_cooked",
recipe = "food:coffeebean",
2012-08-29 20:47:01 +02:00
})
-------------------------Hot Chocolate--------------------------
minetest.register_craftitem("food:hotchoco", {
description = "Hot Chocolate",
inventory_image = "food_hotchoco.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
output = '"food:hotchoco" 1 ',
recipe = {
{"food:chocolate_powder"},
{"food:milk"},
{"food:mug"},
},
})