commit 13fb8b63a8dc4e751c2eb52d90e61bb6014f81b4 Author: PHILIP ROBINSON Date: Mon Jan 20 14:56:42 2014 -0800 The First commits All of the files for the latest mtfoods. diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9d6bd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,215 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +build/ +[Bb]in/ +[Oo]bj/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.scc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml +*.pubxml + +# NuGet Packages Directory +## TODO: If you have NuGet Package Restore enabled, uncomment the next line +#packages/ + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml +*.pfx +*.publishsettings + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +############# +## Windows detritus +############# + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac crap +.DS_Store + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist/ +build/ +eggs/ +parts/ +var/ +sdist/ +develop-eggs/ +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..69a74a2 --- /dev/null +++ b/README.txt @@ -0,0 +1,18 @@ +=-=-=-=-=-=-= + + MTfoods + +by:philipbenr + +=-=-=-=-=-=-= + +This is a mod for Minetest that gives the plyer a chance to make some nice foods like chocolate cakes, a MLT, which is a minetest burger, healing medicine, or a simple apple pie. + +=-=-=-=-=-=-= + +Code Licence: GPLv3.0+ +http://www.gnu.org/copyleft/gpl.html + +Textures License: CC-BY-SA + +=-=-=-=-=-=-= diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..03af5e1 --- /dev/null +++ b/depends.txt @@ -0,0 +1,6 @@ +default +mobs? +farming +farming_plus? +vessels +flowers? diff --git a/desserts.lua b/desserts.lua new file mode 100644 index 0000000..d80250d --- /dev/null +++ b/desserts.lua @@ -0,0 +1,420 @@ +-- Desserts -- + +minetest.register_craftitem("mtfoods:dandelion_milk", { + description = "Dandelion Milk", + inventory_image = "mtfoods_milk.png", + on_use = minetest.item_eat(1), +}) + +minetest.register_craftitem("mtfoods:sugar", { + description = "Sugar", + inventory_image = "mtfoods_sugar.png", + on_use = minetest.item_eat(1), +}) + +minetest.register_craftitem("mtfoods:short_bread", { + description = "Short Bread", + inventory_image = "mtfoods_short_bread.png", + on_use = minetest.item_eat(3.5), +}) + +minetest.register_craftitem("mtfoods:pie_crust", { + description = "Pie Crust", + inventory_image = "mtfoods_pie_crust.png", + on_use = minetest.item_eat(3.5), +}) + +minetest.register_craftitem("mtfoods:cream", { + description = "Cream", + inventory_image = "mtfoods_cream.png", + on_use = minetest.item_eat(1.5), +}) + +minetest.register_craftitem("mtfoods:chocolate", { + description = "Chocolate Bits", + inventory_image = "mtfoods_chocolate_bit.png", + on_use = minetest.item_eat(2.5), +}) + +minetest.register_craftitem("mtfoods:cupcake", { + description = "Cup-Cake", + inventory_image = "mtfoods_cupcake.png", + on_use = minetest.item_eat(3.5), +}) + +minetest.register_craftitem("mtfoods:strawberry_shortcake", { + description = "Strawberry Short-Cake", + inventory_image = "mtfoods_berry_shortcake.png", + on_use = minetest.item_eat(3.5), +}) + +--minetest.register_craftitem("mtfoods:cake", { +-- description = "Cake", +-- inventory_image = "mtfoods_simple_cake.png", +-- on_use = minetest.item_eat(3), +--}) +-- +--minetest.register_craftitem("mtfoods:chocolate_cake", { +-- description = "Chocolate Cake", +-- inventory_image = "mtfoods_chocolate_cake.png", +-- on_use = minetest.item_eat(5), +--}) +-- +--minetest.register_craftitem("mtfoods:carrot_cake", { +-- description = "Carrot Cake", +-- inventory_image = "mtfoods_carrot_cake.png", +-- on_use = minetest.item_eat(4), +--}) + +--minetest.register_craftitem("mtfoods:apple_pie", { +-- description = "Apple Pie", +-- inventory_image = "mtfoods_apple_pie.png", +-- on_use = minetest.item_eat(5), +--}) + +--minetest.register_craftitem("mtfoods:rhubarb_pie", { +-- description = "Rhubarb Pie", +-- inventory_image = "mtfoods_rhubarb_pie.png", +-- on_use = minetest.item_eat(5), +--}) + +--minetest.register_craftitem("mtfoods:banana_pie", { +-- description = "Banana Cream Pie", +-- inventory_image = "mtfoods_banana_pie.png", +-- on_use = minetest.item_eat(5), +--}) + +--minetest.register_craftitem("mtfoods:pumpkin_pie", { +-- description = "Pumpkin Pie", +-- inventory_image = "mtfoods_pumpkin_pie.png", +-- on_use = minetest.item_eat(5), +--}) + +--minetest.register_craftitem("mtfoods:cookies", { +-- description = "Cookies", +-- inventory_image = "mtfoods_cookies.png", +-- on_use = minetest.item_eat(3), +--}) + +-- Crafting -- + +minetest.register_craft({ + output = "mtfoods:dandelion_milk 2", + recipe = { + {'','flowers:dandelion_yellow', ''}, + {'mtfoods:sugar', 'flowers:dandelion_yellow', 'mtfoods:sugar'}, + {'', 'vessels:drinking_glass', ''}, + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "mtfoods:sugar 3", + recipe = {'default:papyrus'} +}) + +minetest.register_craft({ + output = "mtfoods:short_bread", + recipe = { + {'mtfoods:dandelion_milk'}, + {'farming:bread'}, + {'mtfoods:sugar'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:cream", + recipe = { + {'mtfoods:dandelion_milk'}, + {'mtfoods:sugar'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:chocolate 5", + recipe = { + {'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'}, + {'farming_plus:cocoa_bean', 'farming_plus:cocoa_bean', 'farming_plus:cocoa_bean'}, + {'mtfoods:sugar', 'mtfoods:dandelion_milk', 'mtfoods:sugar'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:cupcake", + recipe = { + {'mtfoods:cream'}, + {'mtfoods:short_bread'}, + {'default:paper'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:strawberry_shortcake", + recipe = { + {'mtfoods:cream', 'farming_plus:strawberry_item', 'mtfoods:cream'}, + {'farming_plus:strawberry_item', 'mtfoods:short_bread', 'farming_plus:strawberry_item'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:cake", + recipe = { + {'', 'mtfoods:sugar', ''}, + {'mtfoods:dandelion_milk', 'farming:bread', 'mtfoods:dandelion_milk'}, + {'', 'mtfoods:sugar', ''}, + } +}) + +minetest.register_craft({ + output = "mtfoods:chocolate_cake", + recipe = { + {'mtfoods:chocolate'}, + {'mtfoods:cake'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:carrot_cake", + recipe = { + {'', 'farming_plus:carrot_item', ''}, + {'farming_plus:cocoa_bean', 'mtfoods:cake', 'farming_plus:cocoa_bean'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:pie_crust", + recipe = { + {'farming:bread', 'farming:flour'}, + {'farming:flour', 'mtfoods:sugar'}, + } +}) + +minetest.register_craft({ + output = "mtfoods:apple_pie", + recipe = { + {'default:apple', 'default:apple', 'default:apple'}, + {'', 'mtfoods:pie_crust', ''}, + } +}) + +minetest.register_craft({ + output = "mtfoods:rhubarb_pie", + recipe = { + {'farming_plus:rhubarb_item', 'farming_plus:rhubarb_item', 'farming_plus:rhubarb_item'}, + {'', 'mtfoods:pie_crust', ''}, + } +}) + +minetest.register_craft({ + output = "mtfoods:banana_pie", + recipe = { + {'farming_plus:banana', 'mtfoods:cream', 'farming_plus:banana'}, + {'', 'mtfoods:pie_crust', ''}, + } +}) + +minetest.register_craft({ + output = "mtfoods:pumpkin_pie", + recipe = { + {'mtfoods:cream', 'farming:pumpkin', 'mtfoods:cream'}, + {'', 'mtfoods:pie_crust', ''}, + } +}) + + +minetest.register_craft({ + output = "mtfoods:cookies", + recipe = { + {'', 'mtfoods:chocolate', ''}, + {'mtfoods:chocolate', 'mtfoods:cream', 'mtfoods:chocolate'}, + {'', 'mtfoods:chocolate', ''}, + } +}) + +-- The 3d nodeboxes -- + +minetest.register_node("mtfoods:cake",{ + drawtype="nodebox", + paramtype = "light", + description = "Cake", + on_use = minetest.item_eat(3), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_cake_top.png","mtfoods_cake_bottom.png","mtfoods_cake_side.png","mtfoods_cake_side.png","mtfoods_cake_side.png","mtfoods_cake_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, --NodeBox 1 + {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + } + } +}) + +minetest.register_node("mtfoods:chocolate_cake",{ + drawtype="nodebox", + description = "Chocolate Cake", + paramtype = "light", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_cake_ctop.png","mtfoods_cake_cbottom.png","mtfoods_cake_cside.png","mtfoods_cake_cside.png","mtfoods_cake_cside.png","mtfoods_cake_cside.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, --NodeBox 1 + {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + } + } +}) + +minetest.register_node("mtfoods:carrot_cake",{ + drawtype = "nodebox", + description = "Carrot Cake", + on_use = minetest.item_eat(4), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_cake_atop.png","mtfoods_cake_bottom.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png","mtfoods_cake_aside.png"}, + paramtype = "light", + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, --NodeBox 1 + {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + } + } +}) + +minetest.register_node("mtfoods:apple_pie",{ + drawtype = "nodebox", + paramtype = "light", + description = "Apple Pie", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_apie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1 + {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3 + } + } +}) + +minetest.register_node("mtfoods:rhubarb_pie",{ + drawtype="nodebox", + paramtype = "light", + description = "Rhubarb Pie", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_rpie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1 + {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3 + } + } +}) + +minetest.register_node("mtfoods:banana_pie",{ + drawtype="nodebox", + paramtype = "light", + description = "Banana Pie", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_bpie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1 + {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3 + } + } +}) + +minetest.register_node("mtfoods:pumpkin_pie",{ + drawtype="nodebox", + paramtype = "light", + description = "Pumpkin Pie", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_ppie_top.png","mtfoods_pie_bottom.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png","mtfoods_pie_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1 + {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3 + } + } +}) + +minetest.register_node("mtfoods:boston_cream",{ + drawtype="nodebox", + paramtype = "light", + description = "Boston Cream Pie", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_cake_cbottom.png","mtfoods_pie_bottom.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png","mtfoods_bcpie_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.312500,-0.375000,0.375000,-0.125000,0.375000}, --NodeBox 1 + {-0.312500,-0.437500,-0.312500,0.312500,-0.062500,0.312500}, --NodeBox 2 + {-0.250000,-0.500000,-0.250000,0.250000,-0.125000,0.250000}, --NodeBox 3 + } + } +}) + + +minetest.register_node("mtfoods:cookies",{ + drawtype = "nodebox", + paramtype = "light", + description = "Cookies", + on_use = minetest.item_eat(3), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png","mtfoods_cookies.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.125000,-0.500000,-0.250000,0.250000,-0.312500,0.125000}, --NodeBox 1 + {-0.187500,-0.312500,-0.187500,0.187500,-0.125000,0.187500}, --NodeBox 2 + {-0.250000,-0.125000,-0.125000,0.125000,0.062500,0.250000}, --NodeBox 3 + } + } +}) + +minetest.register_node("mtfoods:chocolate",{ + drawtype = "nodebox", + paramtype = "light", + description = "Chocolate Bars", + on_use = minetest.item_eat(2), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png","mtfoods_chocolate.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.312500,-0.500000,-0.187500,0.312500,-0.375000,0.187500}, --NodeBox 1 + {-0.250000,-0.500000,-0.125000,0.250000,-0.312500,0.125000}, --NodeBox 2 + } + } +}) + +minetest.register_node("mtfoods:cupcake",{ + drawtype = "nodebox", + paramtype = "light", + description = "Cupcakes", + on_use = minetest.item_eat(3.5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_cupcake_top.png","mtfoods_cake_bottom.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png","mtfoods_cupcake_side.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.187500,-0.500000,-0.187500,0.187500,0.125000,0.187500}, + {-0.312500,-0.375000,-0.312500,0.312500,0.000000,0.312500}, + + } + } +}) + +-- Finis -- diff --git a/drinks.lua b/drinks.lua new file mode 100644 index 0000000..4509015 --- /dev/null +++ b/drinks.lua @@ -0,0 +1,88 @@ +-- Flute Glass -- +minetest.register_craftitem("mtfoods:glass_flute", { + description = "Glass Flute", + inventory_image = "mtfoods_flute.png", +}) + +minetest.register_craft({ + output = "mtfoods:glass_flute", + recipe = { + {'default:glass', '', 'default:glass'}, + {'', 'default:glass', ''}, + {'default:glass', 'default:glass', 'default:glass'}, + } +}) + +-- The Juices -- + +--orange-- +minetest.register_craftitem("mtfoods:orange_juice", { + description = "Orange Juice", + inventory_image = "mtfoods_orange_juice.png", + on_use = minetest.item_eat(0.5), +}) + +minetest.register_craft({ + type = "shapeless", + output = "mtfoods:orange_juice", + recipe = {'mtfoods:glass_flute', 'farming_plus:orange'} +}) + +--apple-- + +minetest.register_craftitem("mtfoods:apple_juice", { + description = "Apple Juice", + inventory_image = "mtfoods_apple_juice.png", + on_use = minetest.item_eat(0.5), +}) + +minetest.register_craft({ + type = "shapeless", + output = "mtfoods:apple_juice", + recipe = {'mtfoods:glass_flute', 'default:apple'} +}) + +--Apple Cider-- + +minetest.register_node("mtfoods:apple_cider", { + drawtype = 'plantlike', + paramtype = 'light', + tiles = {"mtfoods_apple_cider.png"}, + description = "Apple Cider in Bottle", + inventory_image = "mtfoods_apple_cider.png", + wield_image = "mtfoods_apple_cider.png", + on_use = minetest.item_eat(1), + groups = {oddly_breakable_by_hand=4, cracky=3}, + on_rightclick = function(pos, node, player, itemstack) + drop = "mtfoods:apple_juice 3" + end +}) + +minetest.register_craft({ + output = "mtfoods:apple_cider", + recipe = { + {'', 'default:steel_ingot', ''}, + {'default:glass', 'mtfoods:apple_juice', 'default:glass'}, + {'default:glass', 'mtfoods:apple_juice', 'default:glass'}, + } +}) + +minetest.register_node("mtfoods:cider_rack", { + drawtype = 'normal', + paramtype = 'light', + paramtype2 = "facedir", + tiles = {"mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack_other_sides.png", "mtfoods_ciderrack.png",}, + description = "A Cider Rack", + inventory_image = "mtfoods_ciderrack.png", + wield_image = "mtfoods_ciderrack.png", + groups = {oddly_breakable_by_hand=3, choppy=3}, + drop = "mtfoods:apple_cider 2", +}) + +minetest.register_craft({ + output = "mtfoods:cider_rack", + recipe = { + {'default:wood','mtfoods:apple_cider','default:wood'}, + {'default:wood','mtfoods:apple_cider','default:wood'}, + } +}) diff --git a/foods.lua b/foods.lua new file mode 100644 index 0000000..143c7db --- /dev/null +++ b/foods.lua @@ -0,0 +1,90 @@ +-- Foods -- + +--MLT-- + +minetest.register_craftitem( "mtfoods:mlt_burger", { + description = "MLT (Mutton, Lettuce, Tomato)", + inventory_image = "mtfoods_mlt.png", + wield_image = "mtfoods_mlt.png", + on_use = minetest.item_eat(6.5), +}) + +minetest.register_craft({ + output = "mtfoods:mlt_burger", + recipe = { + {'farming:bread', 'mobs:meat', ''}, + {'', 'default:junglegrass', ''}, + {'', 'farming_plus:tomato_item', 'farming:bread'}, + } +}) + +--Potato uses-- + +minetest.register_craftitem( "mtfoods:potato_slices", { + description = "Sliced Potato", + inventory_image = "mtfoods_potato_slices.png", + wield_image = "mtfoods_potato_slices.png", + on_use = minetest.item_eat(2), +}) + +minetest.register_craft({ + output = "mtfoods:potato_slices", + recipe = { + {'farming_plus:potatoe_item'}, + } +}) + +minetest.register_craftitem( "mtfoods:potato_chips", { + description = "Potato Chips", + inventory_image = "mtfoods_potato_chips.png", + wield_image = "mtfoods_potato_chips.png", + on_use = minetest.item_eat(3), +}) + +minetest.register_craft({ + type = "cooking", + output = "mtfoods:potato_chips", + recipe = "mtfoods:potato_slices", +}) + +-- Medicine -- + +minetest.register_craftitem( "mtfoods:medicine", { + description = "Medicine", + inventory_image = "mtfoods_medicine.png", + wield_image = "mtfoods_medicine.png", + on_use = minetest.item_eat(8), +}) + +minetest.register_craft({ + output = "mtfoods:medicine", + recipe = { + {'', 'farming:wheat', ''}, + {'mtfoods:dandelion_milk', 'default:junglegrass', 'mtfoods:chocolate'}, + {'', 'vessels:glass_bottle', ''}, + } +}) + +minetest.register_node( "mtfoods:casserole",{ + drawtype = "nodebox", + description = "Casserole", + paramtype = "light", + on_use = minetest.item_eat(5), + groups = {cracky=1,choppy=1,crumbly=1,oddly_breakable_by_hand=1}, + tiles = {"mtfoods_casserole.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png","mtfoods_cake_bottom.png"}, + node_box = { + type = "fixed", + fixed = { + {-0.375000,-0.500000,-0.375000,0.375000,-0.187500,0.375000}, + {-0.312500,-0.500000,-0.312500,0.312500,-0.062500,0.312500}, + } + } +}) + +minetest.register_craft({ + output = "mtfoods:casserole", + recipe = { + {'farming_plus:carrot_item', 'farming_plus:potatoe_item', 'farming_plus:tomato_item'}, + {'', 'farming:bread', ''}, + } +}) diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..11b896e --- /dev/null +++ b/init.lua @@ -0,0 +1,7 @@ +--MTFoods-- +--By: Philipbenr-- +--Licence: GPLv3-- + +dofile(minetest.get_modpath("mtfoods").."/desserts.lua") +dofile(minetest.get_modpath("mtfoods").."/foods.lua") +dofile(minetest.get_modpath("mtfoods").."/drinks.lua") diff --git a/textures/mtfoods_apie_top.png b/textures/mtfoods_apie_top.png new file mode 100644 index 0000000..9cfe744 Binary files /dev/null and b/textures/mtfoods_apie_top.png differ diff --git a/textures/mtfoods_apple_cider.png b/textures/mtfoods_apple_cider.png new file mode 100644 index 0000000..a60bf56 Binary files /dev/null and b/textures/mtfoods_apple_cider.png differ diff --git a/textures/mtfoods_apple_juice.png b/textures/mtfoods_apple_juice.png new file mode 100644 index 0000000..d24f216 Binary files /dev/null and b/textures/mtfoods_apple_juice.png differ diff --git a/textures/mtfoods_apple_pie.png b/textures/mtfoods_apple_pie.png new file mode 100644 index 0000000..1511974 Binary files /dev/null and b/textures/mtfoods_apple_pie.png differ diff --git a/textures/mtfoods_banana_pie.png b/textures/mtfoods_banana_pie.png new file mode 100644 index 0000000..5ef8159 Binary files /dev/null and b/textures/mtfoods_banana_pie.png differ diff --git a/textures/mtfoods_bcpie_side.png b/textures/mtfoods_bcpie_side.png new file mode 100644 index 0000000..421c46a Binary files /dev/null and b/textures/mtfoods_bcpie_side.png differ diff --git a/textures/mtfoods_berry_shortcake.png b/textures/mtfoods_berry_shortcake.png new file mode 100644 index 0000000..24e29be Binary files /dev/null and b/textures/mtfoods_berry_shortcake.png differ diff --git a/textures/mtfoods_bpie_top.png b/textures/mtfoods_bpie_top.png new file mode 100644 index 0000000..eab7015 Binary files /dev/null and b/textures/mtfoods_bpie_top.png differ diff --git a/textures/mtfoods_cake.png b/textures/mtfoods_cake.png new file mode 100644 index 0000000..5f0e4ee Binary files /dev/null and b/textures/mtfoods_cake.png differ diff --git a/textures/mtfoods_cake_aside.png b/textures/mtfoods_cake_aside.png new file mode 100644 index 0000000..f2395e3 Binary files /dev/null and b/textures/mtfoods_cake_aside.png differ diff --git a/textures/mtfoods_cake_atop.png b/textures/mtfoods_cake_atop.png new file mode 100644 index 0000000..7220bf4 Binary files /dev/null and b/textures/mtfoods_cake_atop.png differ diff --git a/textures/mtfoods_cake_bottom.png b/textures/mtfoods_cake_bottom.png new file mode 100644 index 0000000..a4ed5d1 Binary files /dev/null and b/textures/mtfoods_cake_bottom.png differ diff --git a/textures/mtfoods_cake_cbottom.png b/textures/mtfoods_cake_cbottom.png new file mode 100644 index 0000000..28fd8a0 Binary files /dev/null and b/textures/mtfoods_cake_cbottom.png differ diff --git a/textures/mtfoods_cake_cside.png b/textures/mtfoods_cake_cside.png new file mode 100644 index 0000000..5ffda36 Binary files /dev/null and b/textures/mtfoods_cake_cside.png differ diff --git a/textures/mtfoods_cake_ctop.png b/textures/mtfoods_cake_ctop.png new file mode 100644 index 0000000..a3fcef7 Binary files /dev/null and b/textures/mtfoods_cake_ctop.png differ diff --git a/textures/mtfoods_cake_side.png b/textures/mtfoods_cake_side.png new file mode 100644 index 0000000..c8f0f5e Binary files /dev/null and b/textures/mtfoods_cake_side.png differ diff --git a/textures/mtfoods_cake_top.png b/textures/mtfoods_cake_top.png new file mode 100644 index 0000000..dc44501 Binary files /dev/null and b/textures/mtfoods_cake_top.png differ diff --git a/textures/mtfoods_carrot_cake.png b/textures/mtfoods_carrot_cake.png new file mode 100644 index 0000000..63b97b1 Binary files /dev/null and b/textures/mtfoods_carrot_cake.png differ diff --git a/textures/mtfoods_casserole.png b/textures/mtfoods_casserole.png new file mode 100644 index 0000000..81388aa Binary files /dev/null and b/textures/mtfoods_casserole.png differ diff --git a/textures/mtfoods_chocolate.png b/textures/mtfoods_chocolate.png new file mode 100644 index 0000000..99729d9 Binary files /dev/null and b/textures/mtfoods_chocolate.png differ diff --git a/textures/mtfoods_chocolate_bit.png b/textures/mtfoods_chocolate_bit.png new file mode 100644 index 0000000..8f21774 Binary files /dev/null and b/textures/mtfoods_chocolate_bit.png differ diff --git a/textures/mtfoods_chocolate_cake.png b/textures/mtfoods_chocolate_cake.png new file mode 100644 index 0000000..376b44b Binary files /dev/null and b/textures/mtfoods_chocolate_cake.png differ diff --git a/textures/mtfoods_cider_bottom.png b/textures/mtfoods_cider_bottom.png new file mode 100644 index 0000000..92e62b8 Binary files /dev/null and b/textures/mtfoods_cider_bottom.png differ diff --git a/textures/mtfoods_cider_side.png b/textures/mtfoods_cider_side.png new file mode 100644 index 0000000..c5a07e0 Binary files /dev/null and b/textures/mtfoods_cider_side.png differ diff --git a/textures/mtfoods_cider_sidea.png b/textures/mtfoods_cider_sidea.png new file mode 100644 index 0000000..2b3f1ce Binary files /dev/null and b/textures/mtfoods_cider_sidea.png differ diff --git a/textures/mtfoods_cider_top.png b/textures/mtfoods_cider_top.png new file mode 100644 index 0000000..ac82353 Binary files /dev/null and b/textures/mtfoods_cider_top.png differ diff --git a/textures/mtfoods_ciderrack.png b/textures/mtfoods_ciderrack.png new file mode 100644 index 0000000..96cd860 Binary files /dev/null and b/textures/mtfoods_ciderrack.png differ diff --git a/textures/mtfoods_ciderrack_other_sides.png b/textures/mtfoods_ciderrack_other_sides.png new file mode 100644 index 0000000..9eff744 Binary files /dev/null and b/textures/mtfoods_ciderrack_other_sides.png differ diff --git a/textures/mtfoods_ciderrack_sidea.png b/textures/mtfoods_ciderrack_sidea.png new file mode 100644 index 0000000..0d7a928 Binary files /dev/null and b/textures/mtfoods_ciderrack_sidea.png differ diff --git a/textures/mtfoods_ciderrack_sideb.png b/textures/mtfoods_ciderrack_sideb.png new file mode 100644 index 0000000..9cf487a Binary files /dev/null and b/textures/mtfoods_ciderrack_sideb.png differ diff --git a/textures/mtfoods_ciderrack_yaxis.png b/textures/mtfoods_ciderrack_yaxis.png new file mode 100644 index 0000000..518911a Binary files /dev/null and b/textures/mtfoods_ciderrack_yaxis.png differ diff --git a/textures/mtfoods_cookies.png b/textures/mtfoods_cookies.png new file mode 100644 index 0000000..63b28ba Binary files /dev/null and b/textures/mtfoods_cookies.png differ diff --git a/textures/mtfoods_cream.png b/textures/mtfoods_cream.png new file mode 100644 index 0000000..5f50c2d Binary files /dev/null and b/textures/mtfoods_cream.png differ diff --git a/textures/mtfoods_cupcake.png b/textures/mtfoods_cupcake.png new file mode 100644 index 0000000..736c2bf Binary files /dev/null and b/textures/mtfoods_cupcake.png differ diff --git a/textures/mtfoods_cupcake_side.png b/textures/mtfoods_cupcake_side.png new file mode 100644 index 0000000..b84ff9d Binary files /dev/null and b/textures/mtfoods_cupcake_side.png differ diff --git a/textures/mtfoods_cupcake_top.png b/textures/mtfoods_cupcake_top.png new file mode 100644 index 0000000..0e9aab4 Binary files /dev/null and b/textures/mtfoods_cupcake_top.png differ diff --git a/textures/mtfoods_flute.png b/textures/mtfoods_flute.png new file mode 100644 index 0000000..a17fe2d Binary files /dev/null and b/textures/mtfoods_flute.png differ diff --git a/textures/mtfoods_medicine.png b/textures/mtfoods_medicine.png new file mode 100644 index 0000000..c40c364 Binary files /dev/null and b/textures/mtfoods_medicine.png differ diff --git a/textures/mtfoods_milk.png b/textures/mtfoods_milk.png new file mode 100644 index 0000000..f0bb50a Binary files /dev/null and b/textures/mtfoods_milk.png differ diff --git a/textures/mtfoods_mlt.png b/textures/mtfoods_mlt.png new file mode 100644 index 0000000..29c89aa Binary files /dev/null and b/textures/mtfoods_mlt.png differ diff --git a/textures/mtfoods_orange_juice.png b/textures/mtfoods_orange_juice.png new file mode 100644 index 0000000..89e7d6b Binary files /dev/null and b/textures/mtfoods_orange_juice.png differ diff --git a/textures/mtfoods_pie_bottom.png b/textures/mtfoods_pie_bottom.png new file mode 100644 index 0000000..784b12b Binary files /dev/null and b/textures/mtfoods_pie_bottom.png differ diff --git a/textures/mtfoods_pie_crust.png b/textures/mtfoods_pie_crust.png new file mode 100644 index 0000000..3d8d1c1 Binary files /dev/null and b/textures/mtfoods_pie_crust.png differ diff --git a/textures/mtfoods_pie_side.png b/textures/mtfoods_pie_side.png new file mode 100644 index 0000000..adabe04 Binary files /dev/null and b/textures/mtfoods_pie_side.png differ diff --git a/textures/mtfoods_potato_chips.png b/textures/mtfoods_potato_chips.png new file mode 100644 index 0000000..c18c0c9 Binary files /dev/null and b/textures/mtfoods_potato_chips.png differ diff --git a/textures/mtfoods_potato_slices.png b/textures/mtfoods_potato_slices.png new file mode 100644 index 0000000..e7f79b3 Binary files /dev/null and b/textures/mtfoods_potato_slices.png differ diff --git a/textures/mtfoods_ppie_top.png b/textures/mtfoods_ppie_top.png new file mode 100644 index 0000000..d5be87e Binary files /dev/null and b/textures/mtfoods_ppie_top.png differ diff --git a/textures/mtfoods_pumpkin_pie.png b/textures/mtfoods_pumpkin_pie.png new file mode 100644 index 0000000..e168b37 Binary files /dev/null and b/textures/mtfoods_pumpkin_pie.png differ diff --git a/textures/mtfoods_rhubarb_pie.png b/textures/mtfoods_rhubarb_pie.png new file mode 100644 index 0000000..4e8cb93 Binary files /dev/null and b/textures/mtfoods_rhubarb_pie.png differ diff --git a/textures/mtfoods_rpie_top.png b/textures/mtfoods_rpie_top.png new file mode 100644 index 0000000..4459cc6 Binary files /dev/null and b/textures/mtfoods_rpie_top.png differ diff --git a/textures/mtfoods_short_bread.png b/textures/mtfoods_short_bread.png new file mode 100644 index 0000000..b70ae60 Binary files /dev/null and b/textures/mtfoods_short_bread.png differ diff --git a/textures/mtfoods_simple_cake.png b/textures/mtfoods_simple_cake.png new file mode 100644 index 0000000..c2f2b58 Binary files /dev/null and b/textures/mtfoods_simple_cake.png differ diff --git a/textures/mtfoods_smoothie.png b/textures/mtfoods_smoothie.png new file mode 100644 index 0000000..a78aab9 Binary files /dev/null and b/textures/mtfoods_smoothie.png differ diff --git a/textures/mtfoods_strawberry_shortcake.png b/textures/mtfoods_strawberry_shortcake.png new file mode 100644 index 0000000..fccf3cd Binary files /dev/null and b/textures/mtfoods_strawberry_shortcake.png differ diff --git a/textures/mtfoods_sugar.png b/textures/mtfoods_sugar.png new file mode 100644 index 0000000..8c1d9e4 Binary files /dev/null and b/textures/mtfoods_sugar.png differ