mirror of
https://github.com/rubenwardy/food_sweet.git
synced 2025-01-10 01:50:35 +01:00
Update to 0.2
This commit is contained in:
parent
185e60c4f0
commit
ad57e4789b
@ -3,7 +3,7 @@ Sweet Foods
|
|||||||
|
|
||||||
An expansion pack for the food mod, written by rubenwardy.
|
An expansion pack for the food mod, written by rubenwardy.
|
||||||
|
|
||||||
Version 0.1
|
Version 0.2
|
||||||
|
|
||||||
* Strawberry cheese cake
|
* Strawberry cheese cake
|
||||||
* Blueberry cheese cake
|
* Blueberry cheese cake
|
||||||
|
55
init.lua
55
init.lua
@ -7,9 +7,9 @@
|
|||||||
-- things
|
-- things
|
||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
print("Sweet Foods - Version 0.1")
|
print("Sweet Foods - Version 0.2")
|
||||||
|
|
||||||
if not food or not food.version or food.version < 2.1 then
|
if not food or not food.version or food.version < 2.3 then
|
||||||
error("You need to update your version of the Food mod - it is too old")
|
error("You need to update your version of the Food mod - it is too old")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -22,16 +22,14 @@ else
|
|||||||
S = function ( s ) return s end
|
S = function ( s ) return s end
|
||||||
end
|
end
|
||||||
|
|
||||||
food.support("strawberry","farming_plus","farming_plus:strawberry_item")
|
food.support("strawberry", {"farming_plus:strawberry_item", "plantlib:strawberry", "bushes:strawberry"})
|
||||||
food.support("strawberry","plantlib","plantlib:strawberry")
|
food.support("rhubarb", "farming_plus:rhubarb_item")
|
||||||
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
|
if minetest.setting_get("food_sweet_use_2d")==nil then
|
||||||
minetest.setting_set("food_sweet_use_2d", "1")
|
minetest.setting_set("food_sweet_use_2d", "1")
|
||||||
end
|
end
|
||||||
|
|
||||||
food.asupport("walnut",function()
|
food.module("walnut",function()
|
||||||
minetest.register_craftitem("food_sweet:walnut", {
|
minetest.register_craftitem("food_sweet:walnut", {
|
||||||
description = S("Walnut"),
|
description = S("Walnut"),
|
||||||
inventory_image = "food_sweet_walnut.png",
|
inventory_image = "food_sweet_walnut.png",
|
||||||
@ -45,8 +43,8 @@ food.asupport("walnut",function()
|
|||||||
{"default:sand","","default:sand"}
|
{"default:sand","","default:sand"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end, true)
|
||||||
food.asupport("strawberry",function()
|
food.module("strawberry",function()
|
||||||
minetest.register_alias("food:strawberry", "food_sweet:strawberry")
|
minetest.register_alias("food:strawberry", "food_sweet:strawberry")
|
||||||
minetest.register_craftitem("food_sweet:strawberry", {
|
minetest.register_craftitem("food_sweet:strawberry", {
|
||||||
description = S("Strawberry"),
|
description = S("Strawberry"),
|
||||||
@ -60,8 +58,8 @@ food.asupport("strawberry",function()
|
|||||||
{"default:apple"},
|
{"default:apple"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end, true)
|
||||||
food.asupport("blueberry",function()
|
food.module("blueberry",function()
|
||||||
minetest.register_craftitem("food_sweet:blueberry", {
|
minetest.register_craftitem("food_sweet:blueberry", {
|
||||||
description = S("Blueberry"),
|
description = S("Blueberry"),
|
||||||
inventory_image = "food_sweet_blueberry.png",
|
inventory_image = "food_sweet_blueberry.png",
|
||||||
@ -75,8 +73,8 @@ food.asupport("blueberry",function()
|
|||||||
{"","wool:blue",""}
|
{"","wool:blue",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end, true)
|
||||||
food.asupport("rhubarb",function()
|
food.module("rhubarb",function()
|
||||||
minetest.register_craftitem("food_sweet:rhubarb", {
|
minetest.register_craftitem("food_sweet:rhubarb", {
|
||||||
description = S("Rhubard"),
|
description = S("Rhubard"),
|
||||||
inventory_image = "farming_rhubarb.png",
|
inventory_image = "farming_rhubarb.png",
|
||||||
@ -90,8 +88,8 @@ food.asupport("rhubarb",function()
|
|||||||
{"wool:red"}
|
{"wool:red"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end, true)
|
||||||
food.asupport("lemon",function()
|
food.module("lemon",function()
|
||||||
minetest.register_craftitem("food_sweet:lemon", {
|
minetest.register_craftitem("food_sweet:lemon", {
|
||||||
description = S("Lemon"),
|
description = S("Lemon"),
|
||||||
inventory_image = "food_lemon.png",
|
inventory_image = "food_lemon.png",
|
||||||
@ -105,9 +103,10 @@ food.asupport("lemon",function()
|
|||||||
{"","default:sand",""}
|
{"","default:sand",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end)
|
end, true)
|
||||||
|
|
||||||
-- Walnut and Coffee cake
|
-- Walnut and Coffee cake
|
||||||
|
food.module("cake_walnut_coffee", function()
|
||||||
food.register("food_sweet:cake_walnut_coffee",{
|
food.register("food_sweet:cake_walnut_coffee",{
|
||||||
description = S("Walnut and Coffee Cake"),
|
description = S("Walnut and Coffee Cake"),
|
||||||
on_use = food.item_eat(4),
|
on_use = food.item_eat(4),
|
||||||
@ -153,8 +152,10 @@ food.craft({
|
|||||||
{"group:food_flour","group:food_sugar","group:food_egg"}
|
{"group:food_flour","group:food_sugar","group:food_egg"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Strawberry Cheese cake
|
-- Strawberry Cheese cake
|
||||||
|
food.module("cake_cheese", function()
|
||||||
minetest.register_alias("food:cake_cheese", "food_sweet:cake_cheese")
|
minetest.register_alias("food:cake_cheese", "food_sweet:cake_cheese")
|
||||||
minetest.register_alias("food:cakemix_cheese", "food_sweet:cakemix_cheese")
|
minetest.register_alias("food:cakemix_cheese", "food_sweet:cakemix_cheese")
|
||||||
minetest.register_craftitem("food_sweet:cake_cheese",{
|
minetest.register_craftitem("food_sweet:cake_cheese",{
|
||||||
@ -180,8 +181,10 @@ food.craft({
|
|||||||
{"group:food_flour","group:food_sugar","group:food_egg"}
|
{"group:food_flour","group:food_sugar","group:food_egg"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Blueberry Cheese Cake
|
-- Blueberry Cheese Cake
|
||||||
|
food.module("cake_cheese_blueberry", function()
|
||||||
minetest.register_craftitem("food_sweet:cake_cheese_blueberry",{
|
minetest.register_craftitem("food_sweet:cake_cheese_blueberry",{
|
||||||
description = S("Blueberry Cheese Cake"),
|
description = S("Blueberry Cheese Cake"),
|
||||||
inventory_image = "food_sweet_cake_cheese_blueberry.png",
|
inventory_image = "food_sweet_cake_cheese_blueberry.png",
|
||||||
@ -205,8 +208,10 @@ food.craft({
|
|||||||
{"group:food_flour","group:food_sugar","group:food_egg"}
|
{"group:food_flour","group:food_sugar","group:food_egg"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Triple chocolate cake
|
-- Triple chocolate cake
|
||||||
|
food.module("cake_triple_choco", function()
|
||||||
minetest.register_craftitem("food_sweet:cake_triple_choco",{
|
minetest.register_craftitem("food_sweet:cake_triple_choco",{
|
||||||
description = S("Triple Chocolate Cake"),
|
description = S("Triple Chocolate Cake"),
|
||||||
inventory_image = "food_sweet_cake_triple_choco.png",
|
inventory_image = "food_sweet_cake_triple_choco.png",
|
||||||
@ -230,8 +235,10 @@ food.craft({
|
|||||||
{"group:food_flour","group:food_sugar","group:food_egg"}
|
{"group:food_flour","group:food_sugar","group:food_egg"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Wedding Cake
|
-- Wedding Cake
|
||||||
|
food.module("cake_wedding", function()
|
||||||
minetest.register_craftitem("food_sweet:cake_wedding",{
|
minetest.register_craftitem("food_sweet:cake_wedding",{
|
||||||
description = S("Wedding Cake"),
|
description = S("Wedding Cake"),
|
||||||
inventory_image = "food_sweet_cake_wedding.png",
|
inventory_image = "food_sweet_cake_wedding.png",
|
||||||
@ -247,8 +254,10 @@ food.craft({
|
|||||||
{"food:cake"}
|
{"food:cake"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Rhubarb Crumble
|
-- Rhubarb Crumble
|
||||||
|
food.module("crumble_rhubarb", function()
|
||||||
minetest.register_craftitem("food_sweet:crumble_rhubarb",{
|
minetest.register_craftitem("food_sweet:crumble_rhubarb",{
|
||||||
description = S("Rhubarb Crumble"),
|
description = S("Rhubarb Crumble"),
|
||||||
inventory_image = "food_sweet_crumble_rhubarb.png",
|
inventory_image = "food_sweet_crumble_rhubarb.png",
|
||||||
@ -272,8 +281,10 @@ food.craft({
|
|||||||
{"group:food_flour","group:food_sugar","group:food_egg"}
|
{"group:food_flour","group:food_sugar","group:food_egg"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Cup cake
|
-- Cup cake
|
||||||
|
food.module("cupcake", function()
|
||||||
minetest.register_craftitem("food_sweet:cupcake",{
|
minetest.register_craftitem("food_sweet:cupcake",{
|
||||||
description = S("Cupcake"),
|
description = S("Cupcake"),
|
||||||
inventory_image = "food_sweet_cupcake.png",
|
inventory_image = "food_sweet_cupcake.png",
|
||||||
@ -297,8 +308,10 @@ food.craft({
|
|||||||
{"","group:food_sugar",""}
|
{"","group:food_sugar",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Chocolate Cupcake
|
-- Chocolate Cupcake
|
||||||
|
food.module("cupcake_choco", function()
|
||||||
minetest.register_craftitem("food_sweet:cupcake_choco",{
|
minetest.register_craftitem("food_sweet:cupcake_choco",{
|
||||||
description = S("Chocolate Cupcake"),
|
description = S("Chocolate Cupcake"),
|
||||||
inventory_image = "food_sweet_cupcake_choco.png",
|
inventory_image = "food_sweet_cupcake_choco.png",
|
||||||
@ -322,8 +335,10 @@ food.craft({
|
|||||||
{"","group:food_sugar",""}
|
{"","group:food_sugar",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Fairy Cake
|
-- Fairy Cake
|
||||||
|
food.module("cupcake_fairy", function()
|
||||||
minetest.register_craftitem("food_sweet:cupcake_fairy",{
|
minetest.register_craftitem("food_sweet:cupcake_fairy",{
|
||||||
description = S("Fairy Cake"),
|
description = S("Fairy Cake"),
|
||||||
inventory_image = "food_sweet_cupcake_fairy.png",
|
inventory_image = "food_sweet_cupcake_fairy.png",
|
||||||
@ -337,8 +352,10 @@ food.craft({
|
|||||||
{"food_sweet:cupcake"}
|
{"food_sweet:cupcake"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Lemon Cake
|
-- Lemon Cake
|
||||||
|
food.module("cupcake_lemon", function()
|
||||||
minetest.register_craftitem("food_sweet:cupcake_lemon",{
|
minetest.register_craftitem("food_sweet:cupcake_lemon",{
|
||||||
description = S("Lemon Drizzle Cupcake"),
|
description = S("Lemon Drizzle Cupcake"),
|
||||||
inventory_image = "food_sweet_cupcake_lemon.png",
|
inventory_image = "food_sweet_cupcake_lemon.png",
|
||||||
@ -352,8 +369,10 @@ food.craft({
|
|||||||
{"food_sweet:cupcake"}
|
{"food_sweet:cupcake"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Blueberry Muffin
|
-- Blueberry Muffin
|
||||||
|
food.module("muffin_blueberry", function()
|
||||||
minetest.register_craftitem("food_sweet:muffin_blueberry",{
|
minetest.register_craftitem("food_sweet:muffin_blueberry",{
|
||||||
description = S("Blueberry Muffin"),
|
description = S("Blueberry Muffin"),
|
||||||
inventory_image = "food_sweet_muffin_blueberry.png",
|
inventory_image = "food_sweet_muffin_blueberry.png",
|
||||||
@ -377,8 +396,10 @@ food.craft({
|
|||||||
{"","group:food_sugar",""}
|
{"","group:food_sugar",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Chocolate Chip Muffin
|
-- Chocolate Chip Muffin
|
||||||
|
food.module("muffin_choco", function()
|
||||||
minetest.register_craftitem("food_sweet:muffin_choco",{
|
minetest.register_craftitem("food_sweet:muffin_choco",{
|
||||||
description = S("Chocolate Chip Muffin"),
|
description = S("Chocolate Chip Muffin"),
|
||||||
inventory_image = "food_sweet_muffin_choco.png",
|
inventory_image = "food_sweet_muffin_choco.png",
|
||||||
@ -403,3 +424,5 @@ food.craft({
|
|||||||
{"","group:food_sugar",""}
|
{"","group:food_sugar",""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user