diff options
-rw-r--r-- | IDEAS.md | 2 | ||||
-rw-r--r-- | drinks/hot.lua | 1 | ||||
-rw-r--r-- | food/baking.lua | 1 | ||||
-rw-r--r-- | food/sandwich.lua | 3 | ||||
-rw-r--r-- | snacks/cakes.lua | 3 | ||||
-rw-r--r-- | snacks/crumbles.lua | 1 | ||||
-rw-r--r-- | snacks/tarts.lua | 1 | ||||
-rw-r--r-- | support.lua | 7 |
8 files changed, 15 insertions, 4 deletions
@@ -37,7 +37,7 @@ Drinks * Cactus Juice
* Coffee
* Coffee Beans
-- Hot Chocolate
+* Hot Chocolate
- Chocolate Milk Shake
- Banana Milk Shake
- Strawberry Milk Shake
diff --git a/drinks/hot.lua b/drinks/hot.lua index 57c5c79..f39e0a5 100644 --- a/drinks/hot.lua +++ b/drinks/hot.lua @@ -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({
diff --git a/food/baking.lua b/food/baking.lua index 9496c68..e3f69f7 100644 --- a/food/baking.lua +++ b/food/baking.lua @@ -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({
diff --git a/food/sandwich.lua b/food/sandwich.lua index ba824e9..f27d641 100644 --- a/food/sandwich.lua +++ b/food/sandwich.lua @@ -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},
})
diff --git a/snacks/cakes.lua b/snacks/cakes.lua index 549bbab..4b517dc 100644 --- a/snacks/cakes.lua +++ b/snacks/cakes.lua @@ -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},
})
diff --git a/snacks/crumbles.lua b/snacks/crumbles.lua index 4a1ab9c..f46de48 100644 --- a/snacks/crumbles.lua +++ b/snacks/crumbles.lua @@ -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", {
diff --git a/snacks/tarts.lua b/snacks/tarts.lua index b985e03..da5bd33 100644 --- a/snacks/tarts.lua +++ b/snacks/tarts.lua @@ -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", {
diff --git a/support.lua b/support.lua index ad95a5f..4f3e095 100644 --- a/support.lua +++ b/support.lua @@ -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,
})
|