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
* Coffee
* Coffee Beans
- Hot Chocolate
* Hot Chocolate
- Chocolate Milk Shake
- Banana Milk Shake
- Strawberry Milk Shake

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -39,19 +39,20 @@ minetest.register_craftitem("food:bread", {
description = "Bread",
inventory_image = "food_bread.png",
stack_max = 1,
on_use = minetest.item_eat(10)
on_use = minetest.item_eat(10),
groups={food=2},
})
minetest.register_craft({
output = "food:dough",
type = "shapeless",
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({
type = "cooking",
output = "food:bread",
recipe = "food:dough",
cooktime = 10
cooktime = 10,
})