summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-12-17 17:31:35 +0000
committerRubenwardy <anjayward@gmail.com>2012-12-17 17:31:35 +0000
commited0f8e255f98a3112769d0320c45121ce6da081f (patch)
tree0422e72855aeb31101879df928885b516d747c25
parent0dd33165794461e5c82dcc1d7723f4a596c7401d (diff)
DocFarming support and more foods added
-rw-r--r--drinks/hot.lua2
-rw-r--r--drinks/juice.lua22
-rw-r--r--food/baking.lua6
-rw-r--r--food/sandwich.lua2
-rw-r--r--init.lua3
-rw-r--r--snacks/cakes.lua6
-rw-r--r--snacks/crumbles.lua4
-rw-r--r--snacks/tarts.lua2
-rw-r--r--support.lua41
-rw-r--r--textures/food_juice_rainbow.pngbin0 -> 396 bytes
10 files changed, 67 insertions, 21 deletions
diff --git a/drinks/hot.lua b/drinks/hot.lua
index 1f600a0..4b2dd4b 100644
--- a/drinks/hot.lua
+++ b/drinks/hot.lua
@@ -11,7 +11,7 @@
-- [craft] Hot Chocolate
-- =====================================
-print ("RubenFood [Master] - Loading Hot")
+print ("Food [Master] - Loading Hot")
-----------------------------Coffee-----------------------------
diff --git a/drinks/juice.lua b/drinks/juice.lua
index b6d93ab..9397570 100644
--- a/drinks/juice.lua
+++ b/drinks/juice.lua
@@ -11,7 +11,7 @@
-- [craft] Cactus Juice
-- =====================================
-print ("RubenFood [Master] - Loading Juices")
+print ("Food [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:apple_juice", {
@@ -47,4 +47,22 @@ minetest.register_craft({
{'""','"default:cactus"','""'},
{'""','"food:cup"','""'},
}
-}) \ No newline at end of file
+})
+
+
+
+--------------------------Apple Juice--------------------------
+minetest.register_craftitem("food:rainbow_juice", {
+ description = "Nyan Rainbow Juice",
+ inventory_image = "food_juice_rainbow.png",
+ on_use = minetest.item_eat(50)
+})
+
+minetest.register_craft({
+ output = '"food:rainbow_juice" 99',
+ recipe = {
+ {"","",""},
+ {"","default:nyancat_rainbow",""},
+ {"","food:cup",""},
+ }
+})
diff --git a/food/baking.lua b/food/baking.lua
index e3f69f7..21dbf0a 100644
--- a/food/baking.lua
+++ b/food/baking.lua
@@ -14,7 +14,7 @@
-- [craft] Bun Dough
-- =====================================
-print "RubenFood [Master] - Loading Bread"
+print "Food [Master] - Loading Bread"
-- doughs
if not minetest.get_modpath("farming") then
@@ -41,7 +41,7 @@ minetest.register_craftitem("food:bread_slice", {
-print "RubenFood [Master] - Loading Buns"
+print "Food [Master] - Loading Buns"
minetest.register_craftitem("food:bun_mix", {
description = "Bun Mix",
inventory_image = "food_bun_mix.png",
@@ -66,4 +66,4 @@ minetest.register_craft({
{"food:flour", "food:flour", "bucket:bucket_water"},
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
-}) \ No newline at end of file
+})
diff --git a/food/sandwich.lua b/food/sandwich.lua
index f5b2b9f..82dfd6d 100644
--- a/food/sandwich.lua
+++ b/food/sandwich.lua
@@ -13,7 +13,7 @@
-- [craft] Burger
-- ======================================
-print "RubenFood [Master] - Loading Sandwiches"
+print "Food [Master] - Loading Sandwiches"
minetest.register_craftitem("food:sw_meat", {
description = "Venison Sandwich",
diff --git a/init.lua b/init.lua
index d350680..8f2c437 100644
--- a/init.lua
+++ b/init.lua
@@ -14,7 +14,6 @@ print ("Food: Loading mainframe: [Master]")
----------------------Load Files-----------------------------
dofile(minetest.get_modpath("food").."/support.lua")
-dofile(minetest.get_modpath("food").."/tools/oven.lua")
dofile(minetest.get_modpath("food").."/dairy.lua")
dofile(minetest.get_modpath("food").."/food/meats.lua")
@@ -94,4 +93,4 @@ minetest.register_craft({
}
})
-print("food: Mainframe loaded")
+print("Food: Mainframe loaded")
diff --git a/snacks/cakes.lua b/snacks/cakes.lua
index 4b517dc..d5468cf 100644
--- a/snacks/cakes.lua
+++ b/snacks/cakes.lua
@@ -12,7 +12,7 @@
-- [regis-food] Carrot Cake
-- [craft] Chocolate Cake
-- =====================================
-print("RubenFood [Master] - Loading Cakes")
+print("Food [Master] - Loading Cakes")
--------------------------Cakes-------------------------
minetest.register_craftitem("food:cakemix_plain",{
@@ -89,7 +89,7 @@ minetest.register_craft({
minetest.register_craft({
output = '"food:cakemix_choco" 1',
recipe = {
- {'""','"default:dirt"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
+ {'""','"food:chocolate_milk"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
}
})
@@ -98,4 +98,4 @@ minetest.register_craft({
recipe = {
{'""','"food:carrot"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
}
-}) \ No newline at end of file
+})
diff --git a/snacks/crumbles.lua b/snacks/crumbles.lua
index f46de48..c1efd0e 100644
--- a/snacks/crumbles.lua
+++ b/snacks/crumbles.lua
@@ -8,7 +8,7 @@
-- [regis-food] Rhubarb Crumble
-- =====================================
-print "RubenFood [Master] - Loading Crumbles"
+print "Food [Master] - Loading Crumbles"
--Crumbles
minetest.register_craftitem("food:crumble_rhubarb", {
description = "Rhubarb Crumble",
@@ -34,4 +34,4 @@ minetest.register_craft({
type = "cooking",
output = "food:crumble_rhubarb",
recipe = "food:crumble_rhubarb_raw",
-}) \ No newline at end of file
+})
diff --git a/snacks/tarts.lua b/snacks/tarts.lua
index da5bd33..2af5e5d 100644
--- a/snacks/tarts.lua
+++ b/snacks/tarts.lua
@@ -8,7 +8,7 @@
-- [regis-food] Strawberry Tart
-- ======================================
-print "RubenFood [Master] - Loading Tarts"
+print "Food [Master] - Loading Tarts"
minetest.register_craftitem("food:tart_strawberry", {
description = "Strawberry Tart",
diff --git a/support.lua b/support.lua
index e359973..4295744 100644
--- a/support.lua
+++ b/support.lua
@@ -22,8 +22,10 @@ end
+print "Food [Support] - Vegetables and Fruit"
+print "Food [Support] - > Bread and Flour"
+
-print "Food [Support] - Farming Mod"
node_implement("farming","farming:flour","food:flour",function()
minetest.register_craftitem("food:flour", {
description = "Flour",
@@ -70,7 +72,7 @@ end)
-print "Food [Support] - Farming_Plus Mod"
+print "Food [Support] - > Strawberry"
node_implement("farming_plus","farming_plus:strawberry_item","food:strawberry",function()
minetest.register_craftitem("food:strawberry", {
@@ -80,14 +82,20 @@ minetest.register_craftitem("food:strawberry", {
})
end)
+print "Food [Support] - > Carrot"
+
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
+node_implement("docfarming","docfarming:carrot","food:carrot",function()
minetest.register_craftitem("food:carrot", {
description = "Carrot",
inventory_image = "farming_carrot.png",
on_use = minetest.item_eat(3),
})
end)
+end)
+
+print "Food [Support] - > Rhubarb"
node_implement("farming_plus","farming_plus:rhubarb_item","food:rhubarb",function()
minetest.register_craftitem("food:rhubarb", {
description = "Rhubarb",
@@ -95,6 +103,7 @@ minetest.register_craftitem("food:rhubarb", {
})
end)
+print "Food [Support] - > Cocoa Bean"
node_implement("farming_plus","farming_plus:cocoa_bean","food:cocoa",function()
minetest.register_craftitem("food:cocoa", {
description = "Cocoa Bean",
@@ -102,6 +111,8 @@ minetest.register_craftitem("food:cocoa", {
})
end)
+
+print "Food [Support] - > Banana"
node_implement("farming_plus","farming_plus:banana","food:banana",function()
minetest.register_node("food:banana", {
description = "Banana",
@@ -118,6 +129,7 @@ minetest.register_node("food:banana", {
})
end)
+print "Food [Support] - > Tomato"
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
minetest.register_craftitem("food:tomato", {
description = "Tomato",
@@ -126,12 +138,25 @@ minetest.register_craftitem("food:tomato", {
})
end)
+print "Food [Support] - > Potato"
+node_implement("docfarming","docfarming:potato","food:potato",function()
+minetest.register_craftitem("food:potato", {
+ description = "Potato",
+ inventory_image = "potato.png",
+})
+end)
+node_implement("docfarming","docfarming:bakedpotato","food:potato_baked",function()
+minetest.register_craftitem("food:potato_baked", {
+ description = "Baked Potato",
+ inventory_image = "baked_potato.png",
+ on_use = minetest.item_eat(6),
+})
+end)
+print "Food [Support] - Meats and Animal Produce"
-
-print "Food [Support] - Animal Mods"
-
+print "Food [Support] - > Raw Meat"
node_implement("mobs","mobs:meat_raw","food:meat_raw",function()
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
minetest.register_craftitem("food:meat_raw", {
@@ -144,6 +169,7 @@ minetest.register_craftitem("food:meat_raw", {
end)
end)
+print "Food [Support] - > Meat"
node_implement("mobs","mobs:meat","food:meat",function()
minetest.register_craftitem("food:meat", {
description = "Venison",
@@ -158,6 +184,8 @@ minetest.register_craft({
})
end)
+
+print "Food [Support] - > Egg"
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
minetest.register_craftitem("food:egg", {
description = "Egg",
@@ -166,6 +194,7 @@ node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
})
end)
+print "Food [Support] - > Milk"
node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
minetest.register_craftitem("food:milk", {
description = "Milk",
@@ -176,7 +205,7 @@ node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
})
end)
-print "Food [Support] - Vessels Mod"
+print "Food [Support] - Vessels and Cutlery"
node_implement("vessels","vessels:drinking_glass","food:cup",function()
node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
diff --git a/textures/food_juice_rainbow.png b/textures/food_juice_rainbow.png
new file mode 100644
index 0000000..7eb97cf
--- /dev/null
+++ b/textures/food_juice_rainbow.png
Binary files differ