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", {
description = "Dark Chocolate",
@ -47,10 +53,15 @@ minetest.register_craftitem("food:chocolate_dark", {
minetest.register_craftitem("food:chocolate_milk", {
description = "Milk Chocolate",
inventory_image = "food_choco_dark.png",
inventory_image = "food_choco_milk.png",
on_use = minetest.item_eat(3),
})
minetest.register_craftitem("food:chocolate_powder", {
description = "Chocolate Powder",
inventory_image = "food_choco_powder.png",
})
minetest.register_craft({
output = '"food:chocolate_dark" 1',
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({
output = '"food:chocolate_milk" 1',
recipe = {
{"",'"food:milk"',""},
{'"food:cocoa"','"food:cocoa"','"food:cocoa"'},
{"","food:milk",""},
{"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
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks.lua
-- adds drinks
-- >> rubenfood/drinks/hot.lua
-- adds hot drinks
-- =====================================
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
-- [regis-food] Coffee
-- [craft] Coffe
-- [regis-food] Hot Chocolate
-- [craft] Hot Chocolate
-- =====================================
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_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"','""'},
}
})
print ("RubenFood [Master] - Loading Hot")
-----------------------------Coffee-----------------------------
@ -72,7 +27,7 @@ minetest.register_craftitem("food:coffeebean_cooked",{
inventory_image = "food_coffee_cooked.png",
})
minetest.register_node("food:coffee", {
minetest.register_craftitem("food:coffee", {
description = "Coffee",
inventory_image = "food_coffee_cup.png",
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
-- food to the minetest game
-- =====================================
-- >> rubenfood/baking.lua
-- >> rubenfood/food/baking.lua
-- adds bread and pies
-- =====================================
-- [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"

View File

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

View File

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

View File

@ -14,18 +14,20 @@ print ("food: Loading mainframe: [Master]")
----------------------Load Files-----------------------------
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").."/meats.lua")
dofile(minetest.get_modpath("food").."/sandwich.lua")
dofile(minetest.get_modpath("food").."/baking.lua")
dofile(minetest.get_modpath("food").."/food/meats.lua")
dofile(minetest.get_modpath("food").."/food/sandwich.lua")
dofile(minetest.get_modpath("food").."/food/baking.lua")
dofile(minetest.get_modpath("food").."/crumbles.lua")
dofile(minetest.get_modpath("food").."/cakes.lua")
dofile(minetest.get_modpath("food").."/tarts.lua")
dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
dofile(minetest.get_modpath("food").."/snacks/cakes.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",
})
minetest.register_craftitem("food:clay_mug",{
description = "Clay Mug",
inventory_image = "food_clay_mug.png",
})
minetest.register_craft({
output = '"food:cup" 4',
output = '"food:clay_mug" 1',
recipe = {
{"default:glass"},
{"default:glass"},
{"default:clay_lump","","default:clay_lump"},
{"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------------------------------
minetest.register_craftitem("food:sugar", {
description = "Sugar",
@ -58,7 +73,7 @@ minetest.register_craft({
})
----------------------------Cigerete----------------------------
minetest.register_node("food:cigarette", {
minetest.register_craftitem("food:cigarette", {
description = "Cigarette",
inventory_image = "food_cigar.png",
on_use = minetest.item_eat(-4),

View File

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

View File

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

View File

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

View File

@ -55,18 +55,9 @@ minetest.register_craftitem("food:rhubarb", {
end)
node_implement("farming","farming:cocoa_bean","food:cocoa",function()
minetest.register_node("food:cocoa", {
description = "Cocoa",
tiles = {"farming_cocoa.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(),
minetest.register_craftitem("food:cocoa", {
description = "Cocoa Bean",
inventory_image = "farming_cocoa_bean.png",
})
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
-- food to the minetest game
-- ======================================
-- >> rubenfood/diary.lua
-- >> rubenfood/tools/oven.lua
-- adds diary products
-- ======================================
-- [regis-furnace] Rings
-- todo [regis-furnace] Rings
-- [regis-furnace] Oven
-- ======================================
@ -172,7 +172,7 @@ minetest.register_abm({
end
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")
meta:set_string("formspec", oven_inactive_formspec)
return