Added Food Group

This commit is contained in:
Rubenwardy 2012-10-02 17:38:10 +01:00
parent a954f869bf
commit b4feb52c49
8 changed files with 15 additions and 4 deletions

View File

@ -37,7 +37,7 @@ Drinks
* Cactus Juice * Cactus Juice
* Coffee * Coffee
* Coffee Beans * Coffee Beans
- Hot Chocolate * Hot Chocolate
- Chocolate Milk Shake - Chocolate Milk Shake
- Banana Milk Shake - Banana Milk Shake
- Strawberry Milk Shake - Strawberry Milk Shake

View File

@ -31,6 +31,7 @@ minetest.register_craftitem("food:coffee", {
description = "Coffee", description = "Coffee",
inventory_image = "food_coffee_cup.png", inventory_image = "food_coffee_cup.png",
on_use = minetest.item_eat(10), on_use = minetest.item_eat(10),
groups={food=1},
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -51,6 +51,7 @@ minetest.register_craftitem("food:bun", {
description = "Bun", description = "Bun",
inventory_image = "food_bun.png", inventory_image = "food_bun.png",
on_use = minetest.item_eat(4), on_use = minetest.item_eat(4),
groups={food=2},
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -19,18 +19,21 @@ minetest.register_craftitem("food:sw_meat", {
description = "Venison Sandwich", description = "Venison Sandwich",
inventory_image = "food_sw_meat.png", inventory_image = "food_sw_meat.png",
on_use = minetest.item_eat(10), on_use = minetest.item_eat(10),
groups={food=2},
}) })
minetest.register_craftitem("food:sw_cheese", { minetest.register_craftitem("food:sw_cheese", {
description = "Cheese Sandwich", description = "Cheese Sandwich",
inventory_image = "food_sw_cheese.png", inventory_image = "food_sw_cheese.png",
on_use = minetest.item_eat(8), on_use = minetest.item_eat(8),
groups={food=2},
}) })
minetest.register_craftitem("food:burger", { minetest.register_craftitem("food:burger", {
description = "Burger", description = "Burger",
inventory_image = "food_burger.png", inventory_image = "food_burger.png",
on_use = minetest.item_eat(10), on_use = minetest.item_eat(10),
groups={food=2},
}) })

View File

@ -55,18 +55,21 @@ minetest.register_craftitem("food:cake", {
description = "Cake", description = "Cake",
inventory_image = "food_cake.png", inventory_image = "food_cake.png",
on_use = minetest.item_eat(30), on_use = minetest.item_eat(30),
groups={food=3},
}) })
minetest.register_craftitem("food:cake_chocolate", { minetest.register_craftitem("food:cake_chocolate", {
description = "Chocolate Cake", description = "Chocolate Cake",
inventory_image = "food_cake_choco.png", inventory_image = "food_cake_choco.png",
on_use = minetest.item_eat(40), on_use = minetest.item_eat(40),
groups={food=3},
}) })
minetest.register_craftitem("food:cake_carrot", { minetest.register_craftitem("food:cake_carrot", {
description = "Carrot Cake", description = "Carrot Cake",
inventory_image = "food_cake_carrot.png", inventory_image = "food_cake_carrot.png",
on_use = minetest.item_eat(40), on_use = minetest.item_eat(40),
groups={food=3},
}) })

View File

@ -14,6 +14,7 @@ minetest.register_craftitem("food:crumble_rhubarb", {
description = "Rhubarb Crumble", description = "Rhubarb Crumble",
inventory_image = "food_crumble_rhubarb.png", inventory_image = "food_crumble_rhubarb.png",
on_use = minetest.item_eat(30), on_use = minetest.item_eat(30),
groups={food=3},
}) })
minetest.register_craftitem("food:crumble_rhubarb_raw", { minetest.register_craftitem("food:crumble_rhubarb_raw", {

View File

@ -14,6 +14,7 @@ minetest.register_craftitem("food:tart_strawberry", {
description = "Strawberry Tart", description = "Strawberry Tart",
inventory_image = "food_tart_strawberry.png", inventory_image = "food_tart_strawberry.png",
on_use = minetest.item_eat(30), on_use = minetest.item_eat(30),
groups={food=3},
}) })
minetest.register_craftitem("food:tart_base", { minetest.register_craftitem("food:tart_base", {

View File

@ -39,19 +39,20 @@ minetest.register_craftitem("food:bread", {
description = "Bread", description = "Bread",
inventory_image = "food_bread.png", inventory_image = "food_bread.png",
stack_max = 1, stack_max = 1,
on_use = minetest.item_eat(10) on_use = minetest.item_eat(10),
groups={food=2},
}) })
minetest.register_craft({ minetest.register_craft({
output = "food:dough", output = "food:dough",
type = "shapeless", type = "shapeless",
recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"}, recipe = {"food:flour", "food:flour", "food:flour", "food:flour", "bucket:bucket_water"},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
}) })
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "food:bread", output = "food:bread",
recipe = "food:dough", recipe = "food:dough",
cooktime = 10 cooktime = 10,
}) })