1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-11-16 15:20:33 +01:00

Merge pull request #1 from Zaraki98/milkshakes-and-more

Milkshakes and more
This commit is contained in:
Zaraki98 2013-09-03 12:43:34 -07:00
commit 541fe3fafc
13 changed files with 173 additions and 12 deletions

View File

@ -11,12 +11,18 @@
-- [craft] Hot Chocolate -- [craft] Hot Chocolate
-- ===================================== -- =====================================
print ("Food [Master] - Loading Hot") print ("RubenFood [Master] - Loading Hot")
-----------------------------Coffee----------------------------- -----------------------------Coffee-----------------------------
minetest.register_craftitem("food:coffeebean",{
description = "Raw Coffee Bean",
tiles = {"food_coffee.png"},
inventory_image = "food_coffee.png",
})
minetest.register_craftitem("food:coffeebean_cooked",{ minetest.register_craftitem("food:coffeebean_cooked",{
description = "Roasted Coffee Beans", description = "Cooked Coffee Bean",
tiles = {"food_coffee_cooked.png"}, tiles = {"food_coffee_cooked.png"},
inventory_image = "food_coffee_cooked.png", inventory_image = "food_coffee_cooked.png",
}) })
@ -25,15 +31,14 @@ 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({
output = '"food:coffee" 1', output = '"food:coffeebean" 1',
recipe = { recipe = {
{'""','"food:coffeebean_cooked"','""'}, {'""','"default:dry_shrub"','""'},
{'""','"food:coffeebean_cooked"','""'}, {'""','"default:dry_shrub"','""'},
{'""','"food:cup"','""'}, {'""','"default:dry_shrub"','""'},
} }
}) })
@ -50,5 +55,24 @@ minetest.register_craft({
type = "cooking", type = "cooking",
output = "food:coffeebean_cooked", output = "food:coffeebean_cooked",
recipe = "food:coffeebean", recipe = "food:coffeebean",
cooktime = 5, })
-------------------------Hot Chocolate--------------------------
minetest.register_craftitem("food:hotchoco", {
description = "Hot Chocolate",
inventory_image = "food_hotchoco.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
output = '"food:hotchoco" 1 ',
recipe = {
{"food:chocolate_powder"},
{"food:milk"},
{"food:mug"},
},
}) })

53
drinks/milkshakes.lua Normal file
View File

@ -0,0 +1,53 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/milkshakes.lua
-- adds drinks
-- =====================================
--
-- =====================================
print ("Food [Master] - Loading Milk Shakes")
minetest.register_craftitem("food:ms_chocolate", {
description = "Chocolate Milkshake",
inventory_image = "food_ms_chocolate.png",
on_use = minetest.item_eat(4)
})
minetest.register_craft({
output = "food:ms_chocolate",
recipe = {
{"food:chocolate_milk"},
{"food:cup"},
},
})
minetest.register_craftitem("food:ms_strawberry", {
description = "Strawberry Milkshake",
inventory_image = "food_ms_strawberry.png",
on_use = minetest.item_eat(4)
})
minetest.register_craft({
output = "food:ms_strawberry",
recipe = {
{"farming_plus:strawberry_item"},
{"food:cup"},
},
})
minetest.register_craftitem("food:ms_banana", {
description = "Banana Milkshake",
inventory_image = "food_ms_banana.png",
on_use = minetest.item_eat(4)
})
minetest.register_craft({
output = "food:ms_banana",
recipe = {
{"farming_plus:banana"},
{"food:cup"},
},
})

View File

@ -37,7 +37,7 @@ minetest.register_craft({
{"bucket:bucket_water", "food:tomato", "bucket:bucket_water"}, {"bucket:bucket_water", "food:tomato", "bucket:bucket_water"},
{"", "food:bowl", ""}, {"", "food:bowl", ""},
}, },
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} replacements = {{"bucket:bucket_water", "bucket:bucket_empty"},{"bucket:bucket_water", "bucket:bucket_empty"}}
}) })
@ -68,5 +68,5 @@ minetest.register_craft({
{"bucket:bucket_water", "food:meat", "bucket:bucket_water"}, {"bucket:bucket_water", "food:meat", "bucket:bucket_water"},
{"", "food:bowl", ""}, {"", "food:bowl", ""},
}, },
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} replacements = {{"bucket:bucket_water", "bucket:bucket_empty"},{"bucket:bucket_water", "bucket:bucket_empty"}}
}) })

View File

@ -1,5 +1,6 @@
-- RUBENFOOD MOD -- RUBENFOOD MOD
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy and helped
-- by Zaraki98 that adds
-- food to the minetest game -- food to the minetest game
-- ===================================== -- =====================================
-- >> rubenfood/init.lua -- >> rubenfood/init.lua
@ -24,10 +25,11 @@ dofile(minetest.get_modpath("food").."/food/soup.lua")
dofile(minetest.get_modpath("food").."/snacks/crumbles.lua") dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
dofile(minetest.get_modpath("food").."/snacks/cakes.lua") dofile(minetest.get_modpath("food").."/snacks/cakes.lua")
dofile(minetest.get_modpath("food").."/snacks/tarts.lua") dofile(minetest.get_modpath("food").."/snacks/tarts.lua")
dofile(minetest.get_modpath("food").."/snacks/misc.lua")
dofile(minetest.get_modpath("food").."/drinks/juice.lua") dofile(minetest.get_modpath("food").."/drinks/juice.lua")
dofile(minetest.get_modpath("food").."/drinks/hot.lua") dofile(minetest.get_modpath("food").."/drinks/hot.lua")
dofile(minetest.get_modpath("food").."/drinks/milkshakes.lua")
----------------------------Cup------------------------------ ----------------------------Cup------------------------------
@ -64,6 +66,14 @@ minetest.register_craftitem("food:bowl",{
inventory_image = "food_bowl.png", inventory_image = "food_bowl.png",
}) })
minetest.register_craft({
output = "food:bowl",
recipe = {
{"default:stone","","default:stone"},
{"","default:stone",""},
}
})
-----------------------------Sugar------------------------------ -----------------------------Sugar------------------------------
minetest.register_craftitem("food:sugar", { minetest.register_craftitem("food:sugar", {
@ -92,4 +102,20 @@ minetest.register_craft({
} }
}) })
----------------------------Cigarete----------------------------
minetest.register_craftitem("food:cigarette", {
description = "Cigarette",
inventory_image = "food_cigar.png",
on_use = minetest.item_eat(-4),
})
minetest.register_craft({
output = "food:cigarette",
recipe = {
{'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'},
}
})
print("Food: Mainframe loaded") print("Food: Mainframe loaded")

58
snacks/misc.lua Normal file
View File

@ -0,0 +1,58 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/snacks/crumbles.lua
-- adds crumbles
-- =====================================
-- [regis-food] Rhubarb Crumble
-- =====================================
print "Food [Master] - Loading Splits"
-- Banana Split
minetest.register_craftitem("food:banana_split_raw", {
description = "Banana Split Raw",
inventory_image = "food_banana_split_raw.png",
})
minetest.register_craftitem("food:banana_split", {
description = "Banana Split",
inventory_image = "food_banana_split.png",
groups={food=1},
on_use = minetest.item_eat(3),
})
minetest.register_craftitem("food:popcorn", {
description = "Popcorn",
inventory_image = "food_popcorn.png",
groups={food=1},
on_use = minetest.item_eat(1),
})
minetest.register_craftitem("food:corn_seed", {
description = "Corn Pips",
inventory_image = "food_corn_pip.png",
})
minetest.register_craft({
type = "cooking",
output = "food:popcorn",
recipe = "food:corn_seed",
})
minetest.register_craft({
output = "food:corn_seed",
recipe = {{"farming:seed_wheat"}},
})
minetest.register_craft({
output = "food:banana_split_raw",
recipe = {{"food:chocolate_milk"},{"farming_plus:banana"}},
})
minetest.register_craft({
type = "cooking",
output = "food:banana_split",
recipe = "food:banana_split_raw",
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

BIN
textures/food_cigar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

BIN
textures/food_hotchoco.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

BIN
textures/food_ms_banana.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

BIN
textures/food_popcorn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B