Initial Commit

This commit is contained in:
rubenwardy 2014-04-10 19:06:00 +01:00
commit 674ce00011
24 changed files with 518 additions and 0 deletions

22
.gitattributes vendored Normal file
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
.gitignore vendored Normal file
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

15
README.md Normal file
View File

@ -0,0 +1,15 @@
Sweet Food
==========
An expansion pack for the food mod, written by rubenwardy.
* Strawberry cheese cake
* Blueberry cheese cake
* Triple chocolate cheese cake
* Coffee and walnut cheese cake
* Rhubarb crumble
* Wedding cake
License for code: GPL 3.0 or later.
License for textures: CC-BY-SA

1
depends.txt Normal file
View File

@ -0,0 +1 @@
food

248
init.lua Normal file
View File

@ -0,0 +1,248 @@
-- SWEET FOOD MOD
-- A mod written by rubenwardy that adds
-- sweet food to the minetest game
-- =====================================
-- >> food_sweet/init.lua
-- Adds cakes, pies, waffles, and sweet
-- things
-- =====================================
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
food.support("strawberry","farming_plus","farming_plus:strawberry_item")
food.support("strawberry","plantlib","plantlib:strawberry")
food.support("rhubarb","farming_plus","farming_plus:rhubarb_item")
food.asupport("walnut",function()
minetest.register_craftitem("food_sweet:walnut", {
description = S("Walnut"),
inventory_image = "food_sweet_walnut.png",
groups = {food_walnut = 1, food_nut = 1}
})
food.craft({
output = "food_sweet:walnut 4",
recipe = {
{"","default:sand",""},
{"default:sand","","default:sand"},
{"","default:sand",""}
}
})
end)
food.asupport("strawberry",function()
minetest.register_alias("food:strawberry", "food_sweet:strawberry")
minetest.register_craftitem("food_sweet:strawberry", {
description = S("Strawberry"),
inventory_image = "food_strawberry.png",
on_use = food.item_eat(2),
groups = {food_strawberry=1}
})
food.craft({
output = "food_sweet:strawberry",
recipe = {
{"default:apple"},
}
})
end)
food.asupport("blueberry",function()
minetest.register_craftitem("food_sweet:blueberry", {
description = S("Blueberry"),
inventory_image = "food_sweet_blueberry.png",
groups = {food_blueberry = 1}
})
food.craft({
output = "food_sweet:blueberry 4",
recipe = {
{"","wool:blue",""},
{"wool:blue","","wool:blue"},
{"","wool:blue",""}
}
})
end)
food.asupport("rhubarb",function()
minetest.register_craftitem("food_sweet:rhubarb", {
description = S("Rhubard"),
inventory_image = "farming_rhubarb.png",
groups = {food_rhubarb = 1}
})
food.craft({
output = "food_sweet:rhubarb 4",
recipe = {
{"wool:red"},
{"wool:red"},
{"wool:red"}
}
})
end)
-- Walnut and Coffee cake
food.register("food_sweet:cake_walnut_coffee",{
description = S("Walnut and Coffee Cake"),
on_use = food.item_eat(4),
groups={food=3,crumbly=3},
walkable = false,
sunlight_propagates = true,
inventory_image = "food_sweet_cake_walnut_coffee_2d.png",
tiles = {
"food_sweet_cake_walnut_coffee_3d_top.png",
"food_sweet_cake_walnut_coffee_3d_bottom.png",
"food_sweet_cake_walnut_coffee_3d.png",
"food_sweet_cake_walnut_coffee_3d.png",
"food_sweet_cake_walnut_coffee_3d.png",
"food_sweet_cake_walnut_coffee_3d.png"
},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.4375,-0.5,0.5,0,0.5}, --NodeBox1
{-0.4375,-0.5,-0.4375,0.438462,-0.4375,0.426923}, --NodeBox2
{-0.4375,0,-0.4375,0.45,0.0625,0.426923}, --NodeBox3
{-0.3125,0.0625,0.1875,-0.1875,0.1875,0.3125}, --NodeBox4
{0.1875,0.0625,-0.3125,0.3125,0.1875,-0.1875}, --NodeBox5
}
}
})
minetest.register_craftitem("food_sweet:cakemix_walnut_coffee",{
description = S("Walnut and Coffee Cake Mix"),
inventory_image = "food_sweet_cakemix_walnut_coffee.png"
})
food.craft({
type = "cooking",
output = "food_sweet:cake_walnut_coffee",
recipe = "food_sweet:cakemix_walnut_coffee",
cooktime = 10
})
food.craft({
output = "food_sweet:cakemix_walnut_coffee",
recipe = {
{"","group:food_walnut",""},
{"group:food_flour","group:food_sugar","group:food_egg"}
}
})
-- Strawberry Cheese cake
minetest.register_alias("food:cake_cheese", "food_sweet:cake_cheese")
minetest.register_alias("food:cakemix_cheese", "food_sweet:cakemix_cheese")
minetest.register_craftitem("food_sweet:cake_cheese",{
description = S("Strawberry Cheese Cake"),
inventory_image = "food_sweet_cake_cheese.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
})
minetest.register_craftitem("food_sweet:cakemix_cheese",{
description = S("Strawberry Cheese Cake Mix"),
inventory_image = "food_sweet_cakemix_cheese.png"
})
food.craft({
type = "cooking",
output = "food_sweet:cake_cheese",
recipe = "food_sweet:cakemix_cheese",
cooktime = 10
})
food.craft({
output = "food_sweet:cakemix_cheese",
recipe = {
{"group:food_cheese","group:food_strawberry",""},
{"group:food_flour","group:food_sugar","group:food_egg"}
}
})
-- Blueberry Cheese Cake
minetest.register_craftitem("food_sweet:cake_cheese_blueberry",{
description = S("Blueberry Cheese Cake"),
inventory_image = "food_sweet_cake_cheese_blueberry.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
})
minetest.register_craftitem("food_sweet:cakemix_cheese_blueberry",{
description = S("Blueberry Cheese Cake Mix"),
inventory_image = "food_sweet_cakemix_cheese_blueberry.png"
})
food.craft({
type = "cooking",
output = "food_sweet:cake_cheese_blueberry",
recipe = "food_sweet:cakemix_cheese_blueberry",
cooktime = 10
})
food.craft({
output = "food_sweet:cakemix_cheese",
recipe = {
{"group:food_cheese","group:food_blueberry",""},
{"group:food_flour","group:food_sugar","group:food_egg"}
}
})
-- Triple chocolate cake
minetest.register_craftitem("food_sweet:cake_triple_choco",{
description = S("Triple Chocolate Cake"),
inventory_image = "food_sweet_cake_triple_choco.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
})
minetest.register_craftitem("food_sweet:cakemix_triple_choco",{
description = S("Triple Chocolate Cake Mix"),
inventory_image = "food_sweet_cakemix_triple_choco.png"
})
food.craft({
type = "cooking",
output = "food_sweet:cake_triple_choco",
recipe = "food_sweet:cakemix_triple_choco",
cooktime = 10
})
food.craft({
output = "food_sweet:cakemix_triple_choco",
recipe = {
{"group:food_milk_chocolate","group:food_milk_chocolate","group:food_milk_chocolate"},
{"group:food_flour","group:food_sugar","group:food_egg"}
}
})
-- Wedding Cake
minetest.register_craftitem("food_sweet:cake_wedding",{
description = S("Wedding Cake"),
inventory_image = "food_sweet_cake_wedding.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
})
food.craft({
output = "food_sweet:cake_wedding",
recipe = {
{"food:cake"},
{"food:cake"},
{"food:cake"}
}
})
-- Rhubarb Crumble
minetest.register_craftitem("food_sweet:crumble_rhubarb",{
description = S("Rhubarb Crumble"),
inventory_image = "food_sweet_crumble_rhubarb.png",
on_use = food.item_eat(4),
groups={food=3,crumbly=3}
})
minetest.register_craftitem("food_sweet:crumble_rhubarb_raw",{
description = S("Raw Rhubarb Crumble"),
inventory_image = "food_sweet_crumble_rhubarb_raw.png"
})
food.craft({
type = "cooking",
output = "food_sweet:crumble_rhubarb",
recipe = "food_sweet:crumble_rhubarb_raw",
cooktime = 10
})
food.craft({
output = "food_sweet:crumble_rhubarb_raw",
recipe = {
{"","group:food_rhubarb",""},
{"group:food_flour","group:food_sugar","group:food_egg"}
}
})

1
locale/de.txt Normal file
View File

@ -0,0 +1 @@
Strawberry = Erdbeere

16
locale/template.txt Normal file
View File

@ -0,0 +1,16 @@
# template
Walnut =
Strawberry =
Blueberry =
Rhubarb =
Walnut and Coffee Cake =
Walnut and Coffee Cake Mix =
Strawberry Cheese Cake =
Strawberry Cheese Cake Mix =
Blueberry Cheese Cake =
Blueberry Cheese Cake Mix =
Triple Chocolate Cake =
Triple Chocolate Cake Mix =
Wedding Cake =
Rhubarb Crumble =
Raw Rhubarb Crumble =

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B