Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
Cupcakes and Muffins
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Apr 11, 2014
1 parent ec45757 commit 9c204b5
Show file tree
Hide file tree
Showing 12 changed files with 184 additions and 9 deletions.
4 changes: 4 additions & 0 deletions depends.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
food
farming_plus?
plantlib?
bushes_classic?
bushes?
168 changes: 159 additions & 9 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

print("Sweet Foods - Version 0.1")

if not food or not food.version or food.version < 2.1 then
error("You need to update your version of the Food mod - it is too old")
end

-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
Expand All @@ -20,13 +24,13 @@ end

food.support("strawberry","farming_plus","farming_plus:strawberry_item")
food.support("strawberry","plantlib","plantlib:strawberry")
food.support("strawberry","bushes_classic","bushes:strawberry")
food.support("rhubarb","farming_plus","farming_plus:rhubarb_item")

if minetest.setting_get("food_sweet_use_2d")==nil then
minetest.setting_set("food_sweet_use_2d", "1")
end


food.asupport("walnut",function()
minetest.register_craftitem("food_sweet:walnut", {
description = S("Walnut"),
Expand All @@ -36,9 +40,9 @@ food.asupport("walnut",function()
food.craft({
output = "food_sweet:walnut 4",
recipe = {
{"","default:sand",""},
{"default:sand","","default:sand"},
{"","default:sand",""}
{"","default:sand",""},
{"default:sand","","default:sand"}
}
})
end)
Expand Down Expand Up @@ -79,14 +83,29 @@ food.asupport("rhubarb",function()
groups = {food_rhubarb = 1}
})
food.craft({
output = "food_sweet:rhubarb 4",
output = "food_sweet:rhubarb 10",
recipe = {
{"wool:red"},
{"wool:red"},
{"wool:red"}
}
})
end)
food.asupport("lemon",function()
minetest.register_craftitem("food_sweet:lemon", {
description = S("Lemon"),
inventory_image = "food_lemon.png",
groups = {food_lemon = 1}
})
food.craft({
output = "food_sweet:lemon 4",
recipe = {
{"","default:sand",""},
{"default:sand","","default:sand"},
{"","default:sand",""}
}
})
end)

-- Walnut and Coffee cake
food.register("food_sweet:cake_walnut_coffee",{
Expand Down Expand Up @@ -142,7 +161,7 @@ minetest.register_craftitem("food_sweet:cake_cheese",{
description = S("Strawberry Cheese Cake"),
inventory_image = "food_sweet_cake_cheese.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
groups={food=3}
})
minetest.register_craftitem("food_sweet:cakemix_cheese",{
description = S("Strawberry Cheese Cake Mix"),
Expand All @@ -167,7 +186,7 @@ minetest.register_craftitem("food_sweet:cake_cheese_blueberry",{
description = S("Blueberry Cheese Cake"),
inventory_image = "food_sweet_cake_cheese_blueberry.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
groups={food=3}
})
minetest.register_craftitem("food_sweet:cakemix_cheese_blueberry",{
description = S("Blueberry Cheese Cake Mix"),
Expand All @@ -192,7 +211,7 @@ minetest.register_craftitem("food_sweet:cake_triple_choco",{
description = S("Triple Chocolate Cake"),
inventory_image = "food_sweet_cake_triple_choco.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
groups={food=3}
})
minetest.register_craftitem("food_sweet:cakemix_triple_choco",{
description = S("Triple Chocolate Cake Mix"),
Expand All @@ -217,7 +236,7 @@ minetest.register_craftitem("food_sweet:cake_wedding",{
description = S("Wedding Cake"),
inventory_image = "food_sweet_cake_wedding.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
groups={food=3}
})

food.craft({
Expand All @@ -234,7 +253,7 @@ minetest.register_craftitem("food_sweet:crumble_rhubarb",{
description = S("Rhubarb Crumble"),
inventory_image = "food_sweet_crumble_rhubarb.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
groups={food=3}
})
minetest.register_craftitem("food_sweet:crumble_rhubarb_raw",{
description = S("Raw Rhubarb Crumble"),
Expand All @@ -253,3 +272,134 @@ food.craft({
{"group:food_flour","group:food_sugar","group:food_egg"}
}
})

-- Cup cake
minetest.register_craftitem("food_sweet:cupcake",{
description = S("Cupcake"),
inventory_image = "food_sweet_cupcake.png",
on_use = food.item_eat(2),
groups={food=1}
})
minetest.register_craftitem("food_sweet:cupcake_mix",{
description = S("Cupcake Mix"),
inventory_image = "food_sweet_cupcake_mix.png"
})
food.craft({
type = "cooking",
output = "food_sweet:cupcake",
recipe = "food_sweet:cupcake_mix",
cooktime = 1
})
food.craft({
output = "food_sweet:cupcake_mix 6",
recipe = {
{"group:food_flour","","group:food_egg"},
{"","group:food_sugar",""}
}
})

-- Chocolate Cupcake
minetest.register_craftitem("food_sweet:cupcake_choco",{
description = S("Chocolate Cupcake"),
inventory_image = "food_sweet_cupcake_choco.png",
on_use = food.item_eat(2),
groups={food=1}
})
minetest.register_craftitem("food_sweet:cupcake_choco_mix",{
description = S("Chocolate Cupcake Mix"),
inventory_image = "food_sweet_cupcake_choco_mix.png"
})
food.craft({
type = "cooking",
output = "food_sweet:cupcake_choco",
recipe = "food_sweet:cupcake_choco_mix",
cooktime = 1
})
food.craft({
output = "food_sweet:cupcake_choco_mix 6",
recipe = {
{"group:food_flour","group:food_milk_chocolate","group:food_egg"},
{"","group:food_sugar",""}
}
})

-- Fairy Cake
minetest.register_craftitem("food_sweet:cupcake_fairy",{
description = S("Fairy Cake"),
inventory_image = "food_sweet_cupcake_fairy.png",
on_use = food.item_eat(2),
groups={food=1}
})
food.craft({
output = "food_sweet:cupcake_fairy",
recipe = {
{"group:food_sugar"},
{"food_sweet:cupcake"}
}
})

-- Lemon Cake
minetest.register_craftitem("food_sweet:cupcake_lemon",{
description = S("Lemon Drizzle Cupcake"),
inventory_image = "food_sweet_cupcake_lemon.png",
on_use = food.item_eat(2),
groups={food=1}
})
food.craft({
output = "food_sweet:cupcake_lemon",
recipe = {
{"group:food_lemon"},
{"food_sweet:cupcake"}
}
})

-- Blueberry Muffin
minetest.register_craftitem("food_sweet:muffin_blueberry",{
description = S("Blueberry Muffin"),
inventory_image = "food_sweet_muffin_blueberry.png",
on_use = food.item_eat(2),
groups={food=1}
})
minetest.register_craftitem("food_sweet:muffin_blueberry_mix",{
description = S("Blueberry Muffin Mix"),
inventory_image = "food_sweet_cupcake_mix.png"
})
food.craft({
type = "cooking",
output = "food_sweet:muffin_blueberry",
recipe = "food_sweet:muffin_blueberry_mix",
cooktime = 1
})
food.craft({
output = "food_sweet:muffin_blueberry_mix 6",
recipe = {
{"group:food_flour","group:food_blueberry","group:food_egg"},
{"","group:food_sugar",""}
}
})

-- Chocolate Chip Muffin
minetest.register_craftitem("food_sweet:muffin_choco",{
description = S("Chocolate Chip Muffin"),
inventory_image = "food_sweet_muffin_choco.png",
on_use = food.item_eat(2),
groups={food=1}
})
minetest.register_craftitem("food_sweet:muffin_choco_mix",{
description = S("Chocolate Chip Muffin Mix"),
inventory_image = "food_sweet_cupcake_choco_mix.png"
})
food.craft({
type = "cooking",
output = "food_sweet:muffin_choco",
recipe = "food_sweet:muffin_choco_mix",
cooktime = 1
})
food.craft({
output = "food_sweet:muffin_choco_mix 6",
recipe = {
{"","group:food_milk_chocolate",""},
{"group:food_flour","group:food_milk_chocolate","group:food_egg"},
{"","group:food_sugar",""}
}
})
21 changes: 21 additions & 0 deletions locale/template.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# template
# Supported
Walnut =
Strawberry =
Blueberry =
Rhubarb =
Lemon =

# Cakes
Walnut and Coffee Cake =
Walnut and Coffee Cake Mix =
Strawberry Cheese Cake =
Expand All @@ -12,5 +16,22 @@ Blueberry Cheese Cake Mix =
Triple Chocolate Cake =
Triple Chocolate Cake Mix =
Wedding Cake =

# Crumbles
Rhubarb Crumble =
Raw Rhubarb Crumble =

# Cupcake and derivs
Cupcake =
Cupcake Mix =
Chocolate Cupcake =
Chocolate Cupcake Mix =
Lemon Drizzle Cupcake =
Fairy Cake =

# Muffins
Chocolate Chip Muffin =
Chocolate Chip Muffin Mix =
Blueberry Muffin =
Blueberry Muffin Mix =

Binary file added textures/food_lemon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_cupcake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_cupcake_choco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_cupcake_choco_mix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_cupcake_fairy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_cupcake_lemon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_cupcake_mix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_muffin_blueberry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/food_sweet_muffin_choco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9c204b5

Please sign in to comment.