1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-11-15 14:50:35 +01:00

Moved stuff around and added hot chocolate

This commit is contained in:
Rubenwardy 2012-09-10 20:04:10 +01:00
parent cf48b7dbad
commit b336aaa2b4
21 changed files with 183 additions and 93 deletions

View File

@ -38,6 +38,12 @@ minetest.register_craft({
}) })
--
--
-- CHOCOLATE
--
--
minetest.register_craftitem("food:chocolate_dark", { minetest.register_craftitem("food:chocolate_dark", {
description = "Dark Chocolate", description = "Dark Chocolate",
@ -47,10 +53,15 @@ minetest.register_craftitem("food:chocolate_dark", {
minetest.register_craftitem("food:chocolate_milk", { minetest.register_craftitem("food:chocolate_milk", {
description = "Milk Chocolate", description = "Milk Chocolate",
inventory_image = "food_choco_dark.png", inventory_image = "food_choco_milk.png",
on_use = minetest.item_eat(3), on_use = minetest.item_eat(3),
}) })
minetest.register_craftitem("food:chocolate_powder", {
description = "Chocolate Powder",
inventory_image = "food_choco_powder.png",
})
minetest.register_craft({ minetest.register_craft({
output = '"food:chocolate_dark" 1', output = '"food:chocolate_dark" 1',
recipe = { recipe = {
@ -58,11 +69,27 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = '"food:chocolate_powder" 1',
recipe = {
{"food:cocoa","food:cocoa","food:cocoa"},
{"food:cocoa","food:cocoa","food:cocoa"},
{"food:cocoa","food:cocoa","food:cocoa"},
}
})
minetest.register_craft({ minetest.register_craft({
output = '"food:chocolate_milk" 1', output = '"food:chocolate_milk" 1',
recipe = { recipe = {
{"",'"food:milk"',""}, {"","food:milk",""},
{'"food:cocoa"','"food:cocoa"','"food:cocoa"'}, {"food:cocoa","food:cocoa","food:cocoa"},
}
})
minetest.register_craft({
output = '"food:chocolate_milk" 1',
recipe = {
{"","food:milk","food:chocolate_dark"},
} }
}) })

View File

@ -2,61 +2,16 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ===================================== -- =====================================
-- >> rubenfood/drinks.lua -- >> rubenfood/drinks/hot.lua
-- adds drinks -- adds hot drinks
-- ===================================== -- =====================================
-- [regis-food] Apple Juice -- [regis-food] Coffee
-- [craft] Cactus Juice -- [craft] Coffe
-- [regis-food] Cactus Juice -- [regis-food] Hot Chocolate
-- [craft] Cactus Juice -- [craft] Hot Chocolate
-- ===================================== -- =====================================
print ("RubenFood [Master] - Loading Juices") print ("RubenFood [Master] - Loading Hot")
--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:apple_juice", {
description = "Apple Juice",
inventory_image = "food_juice_apple.png",
on_use = minetest.item_eat(2)
})
minetest.register_craft({
output = '"food:apple_juice" 4',
recipe = {
{"","",""},
{"","default:apple",""},
{"","food:cup",""},
}
})
----------------------cactus juice----------------------------
minetest.register_node("food:cactus_juice", {
description = "Cactuz Juice",
inventory_image = "food_juice_cactus.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:cactus_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:cactus"','""'},
{'""','"food:cup"','""'},
}
})
-----------------------------Coffee----------------------------- -----------------------------Coffee-----------------------------
@ -72,7 +27,7 @@ minetest.register_craftitem("food:coffeebean_cooked",{
inventory_image = "food_coffee_cooked.png", inventory_image = "food_coffee_cooked.png",
}) })
minetest.register_node("food:coffee", { 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),
@ -105,3 +60,21 @@ minetest.register_craft({
-------------------------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"},
},
})

50
drinks/juice.lua Normal file
View File

@ -0,0 +1,50 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/juice.lua
-- adds juices
-- =====================================
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
-- =====================================
print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:apple_juice", {
description = "Apple Juice",
inventory_image = "food_juice_apple.png",
on_use = minetest.item_eat(2)
})
minetest.register_craft({
output = '"food:apple_juice" 4',
recipe = {
{"","",""},
{"","default:apple",""},
{"","food:cup",""},
}
})
----------------------cactus juice----------------------------
minetest.register_craftitem("food:cactus_juice", {
description = "Cactuz Juice",
inventory_image = "food_juice_cactus.png",
on_use = minetest.item_eat(2),
})
minetest.register_craft({
output = '"food:cactus_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:cactus"','""'},
{'""','"food:cup"','""'},
}
})

17
drinks/milkshakes.lua Normal file
View File

@ -0,0 +1,17 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/milkshakes.lua
-- adds drinks
-- =====================================
--
-- =====================================
print ("RubenFood [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)
})

View File

@ -2,10 +2,16 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ===================================== -- =====================================
-- >> rubenfood/baking.lua -- >> rubenfood/food/baking.lua
-- adds bread and pies -- adds bread and pies
-- ===================================== -- =====================================
-- [regis-food] Bread -- [regis-food] Bread
-- [regis-food] Bread Slice
-- [craft] Bread Slice
-- [regis-food] Bun
-- [craft] Bun
-- [regis-item] Bun Dough
-- [craft] Bun Dough
-- ===================================== -- =====================================
print "RubenFood [Master] - Loading Bread" print "RubenFood [Master] - Loading Bread"

View File

@ -2,10 +2,11 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ====================================== -- ======================================
-- >> rubenfood/meats.lua -- >> rubenfood/food/meats.lua
-- adds meat products -- adds meat products
-- ====================================== -- ======================================
-- [regis-food] Meat -- [regis-food] Meat
-- [craft] Meat
-- ====================================== -- ======================================
minetest.register_craftitem("food:meat", { minetest.register_craftitem("food:meat", {

View File

@ -2,13 +2,15 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ====================================== -- ======================================
-- >> rubenfood/sandwich.lua -- >> rubenfood/food/sandwich.lua
-- adds sandwich -- adds sandwich
-- ====================================== -- ======================================
-- [regis-food] Cheese -- [regis-food] Cheese Sandwich
-- [craft] Cheese -- [craft] Cheese Sandwich
-- [regis-item] Butter -- [regis-food] Venison Sandwich
-- [craft] Butter -- [craft] Venison Sandwich
-- [regis-food] Burger
-- [craft] Burger
-- ====================================== -- ======================================
print "RubenFood [Master] - Loading Sandwiches" print "RubenFood [Master] - Loading Sandwiches"
@ -31,6 +33,8 @@ minetest.register_craftitem("food:burger", {
on_use = minetest.item_eat(10), on_use = minetest.item_eat(10),
}) })
minetest.register_craft({ minetest.register_craft({
output = '"food:sw_meat" 1', output = '"food:sw_meat" 1',
recipe = { recipe = {
@ -49,6 +53,8 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = '"food:burger" 1', output = '"food:burger" 1',
recipe = { recipe = {

View File

@ -14,18 +14,20 @@ print ("food: Loading mainframe: [Master]")
----------------------Load Files----------------------------- ----------------------Load Files-----------------------------
dofile(minetest.get_modpath("food").."/support.lua") dofile(minetest.get_modpath("food").."/support.lua")
dofile(minetest.get_modpath("food").."/oven.lua") dofile(minetest.get_modpath("food").."/tools/oven.lua")
dofile(minetest.get_modpath("food").."/dairy.lua") dofile(minetest.get_modpath("food").."/dairy.lua")
dofile(minetest.get_modpath("food").."/meats.lua") dofile(minetest.get_modpath("food").."/food/meats.lua")
dofile(minetest.get_modpath("food").."/sandwich.lua") dofile(minetest.get_modpath("food").."/food/sandwich.lua")
dofile(minetest.get_modpath("food").."/baking.lua") dofile(minetest.get_modpath("food").."/food/baking.lua")
dofile(minetest.get_modpath("food").."/crumbles.lua") dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
dofile(minetest.get_modpath("food").."/cakes.lua") dofile(minetest.get_modpath("food").."/snacks/cakes.lua")
dofile(minetest.get_modpath("food").."/tarts.lua") dofile(minetest.get_modpath("food").."/snacks/tarts.lua")
dofile(minetest.get_modpath("food").."/drinks.lua") dofile(minetest.get_modpath("food").."/drinks/juice.lua")
dofile(minetest.get_modpath("food").."/drinks/hot.lua")
dofile(minetest.get_modpath("food").."/drinks/milkshakes.lua")
@ -36,14 +38,27 @@ minetest.register_craftitem("food:mug",{
inventory_image = "food_mug.png", inventory_image = "food_mug.png",
}) })
minetest.register_craftitem("food:clay_mug",{
description = "Clay Mug",
inventory_image = "food_clay_mug.png",
})
minetest.register_craft({ minetest.register_craft({
output = '"food:cup" 4', output = '"food:clay_mug" 1',
recipe = { recipe = {
{"default:glass"}, {"default:clay_lump","","default:clay_lump"},
{"default:glass"}, {"default:clay_lump","","default:clay_lump"},
{"default:clay_lump","default:clay_lump","default:clay_lump"},
} }
}) })
minetest.register_craft({
type = "cooking",
output = "food:mug",
recipe = "food:clay_mug",
})
-----------------------------Sugar------------------------------ -----------------------------Sugar------------------------------
minetest.register_craftitem("food:sugar", { minetest.register_craftitem("food:sugar", {
description = "Sugar", description = "Sugar",
@ -58,7 +73,7 @@ minetest.register_craft({
}) })
----------------------------Cigerete---------------------------- ----------------------------Cigerete----------------------------
minetest.register_node("food:cigarette", { minetest.register_craftitem("food:cigarette", {
description = "Cigarette", description = "Cigarette",
inventory_image = "food_cigar.png", inventory_image = "food_cigar.png",
on_use = minetest.item_eat(-4), on_use = minetest.item_eat(-4),

View File

@ -2,11 +2,15 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ===================================== -- =====================================
-- >> rubenfood/cakes.lua -- >> rubenfood/snacks/cakes.lua
-- adds cakes -- adds cakes
-- ===================================== -- =====================================
-- [regis-food] Plain Cake -- [regis-food] Plain Cake
-- [craft] Plain Cake
-- [regis-food] Chocolate Cake -- [regis-food] Chocolate Cake
-- [craft] Chocolate Cake
-- [regis-food] Carrot Cake
-- [craft] Chocolate Cake
-- ===================================== -- =====================================
print("RubenFood [Master] - Loading Cakes") print("RubenFood [Master] - Loading Cakes")

View File

@ -2,7 +2,7 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ===================================== -- =====================================
-- >> rubenfood/crumbles.lua -- >> rubenfood/snacks/crumbles.lua
-- adds crumbles -- adds crumbles
-- ===================================== -- =====================================
-- [regis-food] Rhubarb Crumble -- [regis-food] Rhubarb Crumble

View File

@ -2,7 +2,7 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ====================================== -- ======================================
-- >> rubenfood/tarts.lua -- >> rubenfood/snacks/tarts.lua
-- adds diary products -- adds diary products
-- ====================================== -- ======================================
-- [regis-food] Strawberry Tart -- [regis-food] Strawberry Tart

View File

@ -55,18 +55,9 @@ minetest.register_craftitem("food:rhubarb", {
end) end)
node_implement("farming","farming:cocoa_bean","food:cocoa",function() node_implement("farming","farming:cocoa_bean","food:cocoa",function()
minetest.register_node("food:cocoa", { minetest.register_craftitem("food:cocoa", {
description = "Cocoa", description = "Cocoa Bean",
tiles = {"farming_cocoa.png"}, inventory_image = "farming_cocoa_bean.png",
visual_scale = 0.5,
inventory_image = "farming_cocoa.png",
wield_image = "farming_cocoa.png",
drawtype = "torchlike",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
sounds = default.node_sound_defaults(),
}) })
end) end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

BIN
textures/food_clay_mug.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 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

View File

@ -2,10 +2,10 @@
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- food to the minetest game -- food to the minetest game
-- ====================================== -- ======================================
-- >> rubenfood/diary.lua -- >> rubenfood/tools/oven.lua
-- adds diary products -- adds diary products
-- ====================================== -- ======================================
-- [regis-furnace] Rings -- todo [regis-furnace] Rings
-- [regis-furnace] Oven -- [regis-furnace] Oven
-- ====================================== -- ======================================
@ -172,7 +172,7 @@ minetest.register_abm({
end end
if fuel.time <= 0 then if fuel.time <= 0 then
meta:set_string("infotext","Furnace out of fuel") meta:set_string("infotext","Oven is out of fuel")
hacky_swap_node(pos,"food:oven") hacky_swap_node(pos,"food:oven")
meta:set_string("formspec", oven_inactive_formspec) meta:set_string("formspec", oven_inactive_formspec)
return return