All of the files for the latest mtfoods.
This commit is contained in:
PHILIP ROBINSON 2014-01-20 14:56:42 -08:00
revize 13fb8b63a8
63 změnil soubory, kde provedl 866 přidání a 0 odebrání

22
.gitattributes vendorováno Normal file
Zobrazit soubor

@ -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
.gitignore vendorováno Normal file
Zobrazit soubor

@ -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
README.txt Normal file
Zobrazit soubor

@ -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
depends.txt Normal file
Zobrazit soubor

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

420
desserts.lua Normal file
Zobrazit soubor

@ -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
drinks.lua Normal file
Zobrazit soubor

@ -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
foods.lua Normal file
Zobrazit soubor

@ -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
init.lua Normal file
Zobrazit soubor

@ -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ární
textures/mtfoods_apie_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 776 B

binární
textures/mtfoods_apple_cider.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 439 B

binární
textures/mtfoods_apple_juice.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 223 B

binární
textures/mtfoods_apple_pie.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 386 B

binární
textures/mtfoods_banana_pie.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 354 B

binární
textures/mtfoods_bcpie_side.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 440 B

binární
textures/mtfoods_berry_shortcake.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 575 B

binární
textures/mtfoods_bpie_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 740 B

binární
textures/mtfoods_cake.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 379 B

binární
textures/mtfoods_cake_aside.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 337 B

binární
textures/mtfoods_cake_atop.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 164 B

binární
textures/mtfoods_cake_bottom.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 635 B

binární
textures/mtfoods_cake_cbottom.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 521 B

binární
textures/mtfoods_cake_cside.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 332 B

binární
textures/mtfoods_cake_ctop.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 162 B

binární
textures/mtfoods_cake_side.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 332 B

binární
textures/mtfoods_cake_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 164 B

binární
textures/mtfoods_carrot_cake.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 427 B

binární
textures/mtfoods_casserole.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 714 B

binární
textures/mtfoods_chocolate.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 442 B

binární
textures/mtfoods_chocolate_bit.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 263 B

binární
textures/mtfoods_chocolate_cake.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 356 B

binární
textures/mtfoods_cider_bottom.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 163 B

binární
textures/mtfoods_cider_side.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 185 B

binární
textures/mtfoods_cider_sidea.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 292 B

binární
textures/mtfoods_cider_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 175 B

binární
textures/mtfoods_ciderrack.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 447 B

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 513 B

binární
textures/mtfoods_ciderrack_sidea.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 434 B

binární
textures/mtfoods_ciderrack_sideb.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 681 B

binární
textures/mtfoods_ciderrack_yaxis.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 594 B

binární
textures/mtfoods_cookies.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 830 B

binární
textures/mtfoods_cream.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 293 B

binární
textures/mtfoods_cupcake.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 641 B

binární
textures/mtfoods_cupcake_side.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 534 B

binární
textures/mtfoods_cupcake_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 739 B

binární
textures/mtfoods_flute.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 204 B

binární
textures/mtfoods_medicine.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 348 B

binární
textures/mtfoods_milk.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 375 B

binární
textures/mtfoods_mlt.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 652 B

binární
textures/mtfoods_orange_juice.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 220 B

binární
textures/mtfoods_pie_bottom.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 701 B

binární
textures/mtfoods_pie_crust.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 351 B

binární
textures/mtfoods_pie_side.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 686 B

binární
textures/mtfoods_potato_chips.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 667 B

binární
textures/mtfoods_potato_slices.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 381 B

binární
textures/mtfoods_ppie_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 805 B

binární
textures/mtfoods_pumpkin_pie.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 352 B

binární
textures/mtfoods_rhubarb_pie.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 377 B

binární
textures/mtfoods_rpie_top.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 762 B

binární
textures/mtfoods_short_bread.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 597 B

binární
textures/mtfoods_simple_cake.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 379 B

binární
textures/mtfoods_smoothie.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 552 B

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 474 B

binární
textures/mtfoods_sugar.png Normal file

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 343 B