forked from mtcontrib/food
DocFarming support and more foods added
This commit is contained in:
parent
0dd3316579
commit
ed0f8e255f
|
@ -11,7 +11,7 @@
|
||||||
-- [craft] Hot Chocolate
|
-- [craft] Hot Chocolate
|
||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
print ("RubenFood [Master] - Loading Hot")
|
print ("Food [Master] - Loading Hot")
|
||||||
|
|
||||||
-----------------------------Coffee-----------------------------
|
-----------------------------Coffee-----------------------------
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
-- [craft] Cactus Juice
|
-- [craft] Cactus Juice
|
||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
print ("RubenFood [Master] - Loading Juices")
|
print ("Food [Master] - Loading Juices")
|
||||||
|
|
||||||
--------------------------Apple Juice--------------------------
|
--------------------------Apple Juice--------------------------
|
||||||
minetest.register_craftitem("food:apple_juice", {
|
minetest.register_craftitem("food:apple_juice", {
|
||||||
|
@ -48,3 +48,21 @@ minetest.register_craft({
|
||||||
{'""','"food:cup"','""'},
|
{'""','"food:cup"','""'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------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",""},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
-- [craft] Bun Dough
|
-- [craft] Bun Dough
|
||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
print "RubenFood [Master] - Loading Bread"
|
print "Food [Master] - Loading Bread"
|
||||||
-- doughs
|
-- doughs
|
||||||
if not minetest.get_modpath("farming") then
|
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", {
|
minetest.register_craftitem("food:bun_mix", {
|
||||||
description = "Bun Mix",
|
description = "Bun Mix",
|
||||||
inventory_image = "food_bun_mix.png",
|
inventory_image = "food_bun_mix.png",
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
-- [craft] Burger
|
-- [craft] Burger
|
||||||
-- ======================================
|
-- ======================================
|
||||||
|
|
||||||
print "RubenFood [Master] - Loading Sandwiches"
|
print "Food [Master] - Loading Sandwiches"
|
||||||
|
|
||||||
minetest.register_craftitem("food:sw_meat", {
|
minetest.register_craftitem("food:sw_meat", {
|
||||||
description = "Venison Sandwich",
|
description = "Venison Sandwich",
|
||||||
|
|
3
init.lua
3
init.lua
|
@ -14,7 +14,6 @@ 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").."/tools/oven.lua")
|
|
||||||
|
|
||||||
dofile(minetest.get_modpath("food").."/dairy.lua")
|
dofile(minetest.get_modpath("food").."/dairy.lua")
|
||||||
dofile(minetest.get_modpath("food").."/food/meats.lua")
|
dofile(minetest.get_modpath("food").."/food/meats.lua")
|
||||||
|
@ -94,4 +93,4 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
print("food: Mainframe loaded")
|
print("Food: Mainframe loaded")
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
-- [regis-food] Carrot Cake
|
-- [regis-food] Carrot Cake
|
||||||
-- [craft] Chocolate Cake
|
-- [craft] Chocolate Cake
|
||||||
-- =====================================
|
-- =====================================
|
||||||
print("RubenFood [Master] - Loading Cakes")
|
print("Food [Master] - Loading Cakes")
|
||||||
|
|
||||||
--------------------------Cakes-------------------------
|
--------------------------Cakes-------------------------
|
||||||
minetest.register_craftitem("food:cakemix_plain",{
|
minetest.register_craftitem("food:cakemix_plain",{
|
||||||
|
@ -89,7 +89,7 @@ minetest.register_craft({
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"food:cakemix_choco" 1',
|
output = '"food:cakemix_choco" 1',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'""','"default:dirt"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
|
{'""','"food:chocolate_milk"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
-- [regis-food] Rhubarb Crumble
|
-- [regis-food] Rhubarb Crumble
|
||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
print "RubenFood [Master] - Loading Crumbles"
|
print "Food [Master] - Loading Crumbles"
|
||||||
--Crumbles
|
--Crumbles
|
||||||
minetest.register_craftitem("food:crumble_rhubarb", {
|
minetest.register_craftitem("food:crumble_rhubarb", {
|
||||||
description = "Rhubarb Crumble",
|
description = "Rhubarb Crumble",
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
-- [regis-food] Strawberry Tart
|
-- [regis-food] Strawberry Tart
|
||||||
-- ======================================
|
-- ======================================
|
||||||
|
|
||||||
print "RubenFood [Master] - Loading Tarts"
|
print "Food [Master] - Loading Tarts"
|
||||||
|
|
||||||
minetest.register_craftitem("food:tart_strawberry", {
|
minetest.register_craftitem("food:tart_strawberry", {
|
||||||
description = "Strawberry Tart",
|
description = "Strawberry Tart",
|
||||||
|
|
41
support.lua
41
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()
|
node_implement("farming","farming:flour","food:flour",function()
|
||||||
minetest.register_craftitem("food:flour", {
|
minetest.register_craftitem("food:flour", {
|
||||||
description = "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()
|
node_implement("farming_plus","farming_plus:strawberry_item","food:strawberry",function()
|
||||||
minetest.register_craftitem("food:strawberry", {
|
minetest.register_craftitem("food:strawberry", {
|
||||||
|
@ -80,14 +82,20 @@ minetest.register_craftitem("food:strawberry", {
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print "Food [Support] - > Carrot"
|
||||||
|
|
||||||
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
|
node_implement("farming_plus","farming_plus:carrot_item","food:carrot",function()
|
||||||
|
node_implement("docfarming","docfarming:carrot","food:carrot",function()
|
||||||
minetest.register_craftitem("food:carrot", {
|
minetest.register_craftitem("food:carrot", {
|
||||||
description = "Carrot",
|
description = "Carrot",
|
||||||
inventory_image = "farming_carrot.png",
|
inventory_image = "farming_carrot.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
print "Food [Support] - > Rhubarb"
|
||||||
node_implement("farming_plus","farming_plus:rhubarb_item","food:rhubarb",function()
|
node_implement("farming_plus","farming_plus:rhubarb_item","food:rhubarb",function()
|
||||||
minetest.register_craftitem("food:rhubarb", {
|
minetest.register_craftitem("food:rhubarb", {
|
||||||
description = "Rhubarb",
|
description = "Rhubarb",
|
||||||
|
@ -95,6 +103,7 @@ minetest.register_craftitem("food:rhubarb", {
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print "Food [Support] - > Cocoa Bean"
|
||||||
node_implement("farming_plus","farming_plus:cocoa_bean","food:cocoa",function()
|
node_implement("farming_plus","farming_plus:cocoa_bean","food:cocoa",function()
|
||||||
minetest.register_craftitem("food:cocoa", {
|
minetest.register_craftitem("food:cocoa", {
|
||||||
description = "Cocoa Bean",
|
description = "Cocoa Bean",
|
||||||
|
@ -102,6 +111,8 @@ minetest.register_craftitem("food:cocoa", {
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
print "Food [Support] - > Banana"
|
||||||
node_implement("farming_plus","farming_plus:banana","food:banana",function()
|
node_implement("farming_plus","farming_plus:banana","food:banana",function()
|
||||||
minetest.register_node("food:banana", {
|
minetest.register_node("food:banana", {
|
||||||
description = "Banana",
|
description = "Banana",
|
||||||
|
@ -118,6 +129,7 @@ minetest.register_node("food:banana", {
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print "Food [Support] - > Tomato"
|
||||||
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
|
node_implement("farming_plus","farming_plus:tomato_item","food:tomato",function()
|
||||||
minetest.register_craftitem("food:tomato", {
|
minetest.register_craftitem("food:tomato", {
|
||||||
description = "Tomato",
|
description = "Tomato",
|
||||||
|
@ -126,12 +138,25 @@ minetest.register_craftitem("food:tomato", {
|
||||||
})
|
})
|
||||||
end)
|
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] - > Raw Meat"
|
||||||
print "Food [Support] - Animal Mods"
|
|
||||||
|
|
||||||
node_implement("mobs","mobs:meat_raw","food:meat_raw",function()
|
node_implement("mobs","mobs:meat_raw","food:meat_raw",function()
|
||||||
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
|
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
|
||||||
minetest.register_craftitem("food:meat_raw", {
|
minetest.register_craftitem("food:meat_raw", {
|
||||||
|
@ -144,6 +169,7 @@ minetest.register_craftitem("food:meat_raw", {
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print "Food [Support] - > Meat"
|
||||||
node_implement("mobs","mobs:meat","food:meat",function()
|
node_implement("mobs","mobs:meat","food:meat",function()
|
||||||
minetest.register_craftitem("food:meat", {
|
minetest.register_craftitem("food:meat", {
|
||||||
description = "Venison",
|
description = "Venison",
|
||||||
|
@ -158,6 +184,8 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
print "Food [Support] - > Egg"
|
||||||
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
||||||
minetest.register_craftitem("food:egg", {
|
minetest.register_craftitem("food:egg", {
|
||||||
description = "Egg",
|
description = "Egg",
|
||||||
|
@ -166,6 +194,7 @@ node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print "Food [Support] - > Milk"
|
||||||
node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
|
node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
|
||||||
minetest.register_craftitem("food:milk", {
|
minetest.register_craftitem("food:milk", {
|
||||||
description = "Milk",
|
description = "Milk",
|
||||||
|
@ -176,7 +205,7 @@ node_implement("animalmaterials","animalmaterials:milk","food:milk",function()
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print "Food [Support] - Vessels Mod"
|
print "Food [Support] - Vessels and Cutlery"
|
||||||
|
|
||||||
node_implement("vessels","vessels:drinking_glass","food:cup",function()
|
node_implement("vessels","vessels:drinking_glass","food:cup",function()
|
||||||
node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
|
node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
|
||||||
|
|
BIN
textures/food_juice_rainbow.png
Normal file
BIN
textures/food_juice_rainbow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 396 B |
Loading…
Reference in New Issue
Block a user