Browse Source

The First commits

All of the files for the latest mtfoods.
pull/1/head
PHILIP ROBINSON 6 years ago
commit
13fb8b63a8
63 changed files with 866 additions and 0 deletions
  1. +22
    -0
      .gitattributes
  2. +215
    -0
      .gitignore
  3. +18
    -0
      README.txt
  4. +6
    -0
      depends.txt
  5. +420
    -0
      desserts.lua
  6. +88
    -0
      drinks.lua
  7. +90
    -0
      foods.lua
  8. +7
    -0
      init.lua
  9. BIN
      textures/mtfoods_apie_top.png
  10. BIN
      textures/mtfoods_apple_cider.png
  11. BIN
      textures/mtfoods_apple_juice.png
  12. BIN
      textures/mtfoods_apple_pie.png
  13. BIN
      textures/mtfoods_banana_pie.png
  14. BIN
      textures/mtfoods_bcpie_side.png
  15. BIN
      textures/mtfoods_berry_shortcake.png
  16. BIN
      textures/mtfoods_bpie_top.png
  17. BIN
      textures/mtfoods_cake.png
  18. BIN
      textures/mtfoods_cake_aside.png
  19. BIN
      textures/mtfoods_cake_atop.png
  20. BIN
      textures/mtfoods_cake_bottom.png
  21. BIN
      textures/mtfoods_cake_cbottom.png
  22. BIN
      textures/mtfoods_cake_cside.png
  23. BIN
      textures/mtfoods_cake_ctop.png
  24. BIN
      textures/mtfoods_cake_side.png
  25. BIN
      textures/mtfoods_cake_top.png
  26. BIN
      textures/mtfoods_carrot_cake.png
  27. BIN
      textures/mtfoods_casserole.png
  28. BIN
      textures/mtfoods_chocolate.png
  29. BIN
      textures/mtfoods_chocolate_bit.png
  30. BIN
      textures/mtfoods_chocolate_cake.png
  31. BIN
      textures/mtfoods_cider_bottom.png
  32. BIN
      textures/mtfoods_cider_side.png
  33. BIN
      textures/mtfoods_cider_sidea.png
  34. BIN
      textures/mtfoods_cider_top.png
  35. BIN
      textures/mtfoods_ciderrack.png
  36. BIN
      textures/mtfoods_ciderrack_other_sides.png
  37. BIN
      textures/mtfoods_ciderrack_sidea.png
  38. BIN
      textures/mtfoods_ciderrack_sideb.png
  39. BIN
      textures/mtfoods_ciderrack_yaxis.png
  40. BIN
      textures/mtfoods_cookies.png
  41. BIN
      textures/mtfoods_cream.png
  42. BIN
      textures/mtfoods_cupcake.png
  43. BIN
      textures/mtfoods_cupcake_side.png
  44. BIN
      textures/mtfoods_cupcake_top.png
  45. BIN
      textures/mtfoods_flute.png
  46. BIN
      textures/mtfoods_medicine.png
  47. BIN
      textures/mtfoods_milk.png
  48. BIN
      textures/mtfoods_mlt.png
  49. BIN
      textures/mtfoods_orange_juice.png
  50. BIN
      textures/mtfoods_pie_bottom.png
  51. BIN
      textures/mtfoods_pie_crust.png
  52. BIN
      textures/mtfoods_pie_side.png
  53. BIN
      textures/mtfoods_potato_chips.png
  54. BIN
      textures/mtfoods_potato_slices.png
  55. BIN
      textures/mtfoods_ppie_top.png
  56. BIN
      textures/mtfoods_pumpkin_pie.png
  57. BIN
      textures/mtfoods_rhubarb_pie.png
  58. BIN
      textures/mtfoods_rpie_top.png
  59. BIN
      textures/mtfoods_short_bread.png
  60. BIN
      textures/mtfoods_simple_cake.png
  61. BIN
      textures/mtfoods_smoothie.png
  62. BIN
      textures/mtfoods_strawberry_shortcake.png
  63. BIN
      textures/mtfoods_sugar.png

+ 22
- 0
.gitattributes View File

@@ -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

+ 215
- 0
.gitignore View File

@@ -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

+ 18
- 0
README.txt View File

@@ -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

=-=-=-=-=-=-=

+ 6
- 0
depends.txt View File

@@ -0,0 +1,6 @@
default
mobs?
farming
farming_plus?
vessels
flowers?

+ 420
- 0
desserts.lua View File

@@ -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 --

+ 88
- 0
drinks.lua View File

@@ -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'},
}
})

+ 90
- 0
foods.lua View File

@@ -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', ''},
}
})

+ 7
- 0
init.lua View File

@@ -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")

BIN
textures/mtfoods_apie_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 776B

BIN
textures/mtfoods_apple_cider.png View File

Before After
Width: 16  |  Height: 16  |  Size: 439B

BIN
textures/mtfoods_apple_juice.png View File

Before After
Width: 16  |  Height: 16  |  Size: 223B

BIN
textures/mtfoods_apple_pie.png View File

Before After
Width: 16  |  Height: 16  |  Size: 386B

BIN
textures/mtfoods_banana_pie.png View File

Before After
Width: 16  |  Height: 16  |  Size: 354B

BIN
textures/mtfoods_bcpie_side.png View File

Before After
Width: 16  |  Height: 16  |  Size: 440B

BIN
textures/mtfoods_berry_shortcake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 575B

BIN
textures/mtfoods_bpie_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 740B

BIN
textures/mtfoods_cake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 379B

BIN
textures/mtfoods_cake_aside.png View File

Before After
Width: 16  |  Height: 16  |  Size: 337B

BIN
textures/mtfoods_cake_atop.png View File

Before After
Width: 16  |  Height: 16  |  Size: 164B

BIN
textures/mtfoods_cake_bottom.png View File

Before After
Width: 16  |  Height: 16  |  Size: 635B

BIN
textures/mtfoods_cake_cbottom.png View File

Before After
Width: 16  |  Height: 16  |  Size: 521B

BIN
textures/mtfoods_cake_cside.png View File

Before After
Width: 16  |  Height: 16  |  Size: 332B

BIN
textures/mtfoods_cake_ctop.png View File

Before After
Width: 16  |  Height: 16  |  Size: 162B

BIN
textures/mtfoods_cake_side.png View File

Before After
Width: 16  |  Height: 16  |  Size: 332B

BIN
textures/mtfoods_cake_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 164B

BIN
textures/mtfoods_carrot_cake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 427B

BIN
textures/mtfoods_casserole.png View File

Before After
Width: 16  |  Height: 16  |  Size: 714B

BIN
textures/mtfoods_chocolate.png View File

Before After
Width: 16  |  Height: 16  |  Size: 442B

BIN
textures/mtfoods_chocolate_bit.png View File

Before After
Width: 16  |  Height: 16  |  Size: 263B

BIN
textures/mtfoods_chocolate_cake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 356B

BIN
textures/mtfoods_cider_bottom.png View File

Before After
Width: 16  |  Height: 16  |  Size: 163B

BIN
textures/mtfoods_cider_side.png View File

Before After
Width: 16  |  Height: 16  |  Size: 185B

BIN
textures/mtfoods_cider_sidea.png View File

Before After
Width: 16  |  Height: 16  |  Size: 292B

BIN
textures/mtfoods_cider_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 175B

BIN
textures/mtfoods_ciderrack.png View File

Before After
Width: 16  |  Height: 16  |  Size: 447B

BIN
textures/mtfoods_ciderrack_other_sides.png View File

Before After
Width: 16  |  Height: 16  |  Size: 513B

BIN
textures/mtfoods_ciderrack_sidea.png View File

Before After
Width: 16  |  Height: 16  |  Size: 434B

BIN
textures/mtfoods_ciderrack_sideb.png View File

Before After
Width: 16  |  Height: 16  |  Size: 681B

BIN
textures/mtfoods_ciderrack_yaxis.png View File

Before After
Width: 16  |  Height: 16  |  Size: 594B

BIN
textures/mtfoods_cookies.png View File

Before After
Width: 16  |  Height: 16  |  Size: 830B

BIN
textures/mtfoods_cream.png View File

Before After
Width: 16  |  Height: 16  |  Size: 293B

BIN
textures/mtfoods_cupcake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 641B

BIN
textures/mtfoods_cupcake_side.png View File

Before After
Width: 16  |  Height: 16  |  Size: 534B

BIN
textures/mtfoods_cupcake_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 739B

BIN
textures/mtfoods_flute.png View File

Before After
Width: 16  |  Height: 16  |  Size: 204B

BIN
textures/mtfoods_medicine.png View File

Before After
Width: 16  |  Height: 16  |  Size: 348B

BIN
textures/mtfoods_milk.png View File

Before After
Width: 16  |  Height: 16  |  Size: 375B

BIN
textures/mtfoods_mlt.png View File

Before After
Width: 16  |  Height: 16  |  Size: 652B

BIN
textures/mtfoods_orange_juice.png View File

Before After
Width: 16  |  Height: 16  |  Size: 220B

BIN
textures/mtfoods_pie_bottom.png View File

Before After
Width: 16  |  Height: 16  |  Size: 701B

BIN
textures/mtfoods_pie_crust.png View File

Before After
Width: 16  |  Height: 16  |  Size: 351B

BIN
textures/mtfoods_pie_side.png View File

Before After
Width: 16  |  Height: 16  |  Size: 686B

BIN
textures/mtfoods_potato_chips.png View File

Before After
Width: 16  |  Height: 16  |  Size: 667B

BIN
textures/mtfoods_potato_slices.png View File

Before After
Width: 16  |  Height: 16  |  Size: 381B

BIN
textures/mtfoods_ppie_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 805B

BIN
textures/mtfoods_pumpkin_pie.png View File

Before After
Width: 16  |  Height: 16  |  Size: 352B

BIN
textures/mtfoods_rhubarb_pie.png View File

Before After
Width: 16  |  Height: 16  |  Size: 377B

BIN
textures/mtfoods_rpie_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 762B

BIN
textures/mtfoods_short_bread.png View File

Before After
Width: 16  |  Height: 16  |  Size: 597B

BIN
textures/mtfoods_simple_cake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 379B

BIN
textures/mtfoods_smoothie.png View File

Before After
Width: 16  |  Height: 16  |  Size: 552B

BIN
textures/mtfoods_strawberry_shortcake.png View File

Before After
Width: 16  |  Height: 16  |  Size: 474B

BIN
textures/mtfoods_sugar.png View File

Before After
Width: 16  |  Height: 16  |  Size: 343B

Loading…
Cancel
Save