1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-11-15 23:00:33 +01:00
food/drinks/juice.lua

50 lines
1.2 KiB
Lua
Raw Normal View History

2012-12-13 20:59:31 +01:00
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/juice.lua
-- adds juices
-- =====================================
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
-- =====================================
print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:apple_juice", {
description = "Apple Juice",
inventory_image = "food_juice_apple.png",
on_use = minetest.item_eat(2)
})
minetest.register_craft({
output = '"food:apple_juice" 4',
recipe = {
{"","",""},
{"","default:apple",""},
{"","food:cup",""},
}
})
----------------------cactus juice----------------------------
minetest.register_craftitem("food:cactus_juice", {
description = "Cactuz Juice",
inventory_image = "food_juice_cactus.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:cactus_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:cactus"','""'},
{'""','"food:cup"','""'},
}
})