food/drinks.lua

132 lines
2.9 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
-- =====================================
2012-08-30 18:19:00 +02:00
-- >> rubenfood/drinks.lua
-- adds drinks
2012-08-30 18:04:36 +02:00
-- =====================================
2012-08-30 18:19:00 +02:00
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
2012-08-30 18:04:36 +02:00
-- =====================================
print ("RubenFood [Master] - Loading Juices")
2012-08-29 20:25:41 +02:00
--------------------------Apple Juice--------------------------
2012-08-31 16:37:02 +02:00
minetest.register_node("food:apple_juice", {
2012-08-29 20:25:41 +02:00
description = "Apple Juice",
2012-08-31 15:56:59 +02:00
2012-08-29 20:25:41 +02:00
visual_scale = 1.0,
2012-08-31 16:37:02 +02:00
tiles = {"food_juice_apple.png"},
inventory_image = "food_juice_apple.png",
2012-08-29 20:25:41 +02:00
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(2),
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:apple_juice" 4',
2012-08-29 20:25:41 +02:00
recipe = {
{'""','""','""'},
{'""','"default:apple"','""'},
2012-08-31 16:37:02 +02:00
{'""','"food:cup"','""'},
2012-08-29 20:25:41 +02:00
}
})
2012-08-30 18:19:00 +02:00
----------------------cactus juice----------------------------
2012-08-31 16:37:02 +02:00
minetest.register_node(":food:cactus_juice", {
2012-08-29 20:47:01 +02:00
description = "Cactuz Juice",
2012-08-31 15:56:59 +02:00
2012-08-29 20:25:41 +02:00
visual_scale = 1.0,
2012-08-31 16:37:02 +02:00
tiles = {"food_juice_cactus.png"},
inventory_image = "food_juice_cactus.png",
2012-08-29 20:25:41 +02:00
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
2012-08-29 20:47:01 +02:00
on_use = minetest.item_eat(2),
2012-08-29 20:25:41 +02:00
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:cactus_juice" 4',
2012-08-29 20:25:41 +02:00
recipe = {
2012-08-29 20:47:01 +02:00
{'""','""','""'},
{'""','"default:cactus"','""'},
2012-08-31 16:37:02 +02:00
{'""','"food:cup"','""'},
2012-08-29 20:25:41 +02:00
}
})
2012-08-29 20:47:01 +02:00
2012-08-29 20:25:41 +02:00
-----------------------------Coffee-----------------------------
2012-08-31 16:37:02 +02:00
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
})
2012-08-31 16:37:02 +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
})
2012-08-31 16:37:02 +02:00
minetest.register_node(":food:coffee", {
2012-08-29 20:25:41 +02:00
description = "Coffee",
2012-08-31 15:56:59 +02:00
2012-08-29 20:25:41 +02:00
visual_scale = 1.0,
2012-08-31 16:37:02 +02:00
tiles = {"food_coffee_cup.png"},
inventory_image = "food_coffee_cup.png",
2012-08-29 20:25:41 +02:00
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
on_use = minetest.item_eat(10),
sounds = default.node_sound_defaults(),
})
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
})