From 1519de18b86dcea98b655fb2610cdddd40cdccd3 Mon Sep 17 00:00:00 2001
From: rubenwardy <rubenwardy@gmail.com>
Date: Wed, 5 Aug 2015 20:08:47 +0100
Subject: [PATCH] Initial Commit

---
 .gitignore                          |   2 +
 README.md                           |  14 ++++++
 depends.txt                         |   2 +
 description.txt                     |   2 +
 init.lua                            |  68 ++++++++++++++++++++++++++++
 textures/food_english_breakfast.png | Bin 0 -> 433 bytes
 textures/food_english_pasty.png     | Bin 0 -> 353 bytes
 7 files changed, 88 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 depends.txt
 create mode 100644 description.txt
 create mode 100644 init.lua
 create mode 100644 textures/food_english_breakfast.png
 create mode 100644 textures/food_english_pasty.png

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..96728cd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*~*
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b25a3b6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,14 @@
+English Foods
+=============
+
+An expansion pack for the food mod, written by rubenwardy.
+
+Version 0.1
+
+* English Breakfast
+* Pasty
+
+License for code: WTFPL
+License for textures: CC-BY-SA
+
+Have I missed out credit? Please tell me.
diff --git a/depends.txt b/depends.txt
new file mode 100644
index 0000000..be2045c
--- /dev/null
+++ b/depends.txt
@@ -0,0 +1,2 @@
+food
+food_basic
diff --git a/description.txt b/description.txt
new file mode 100644
index 0000000..015b4b1
--- /dev/null
+++ b/description.txt
@@ -0,0 +1,2 @@
+Expansion pack for the food mod. Adds hamburgers and pizzas.
+
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..ae11995
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,68 @@
+-- ENGLISH FOODS
+-- A mod written by rubenwardy that adds
+-- english food to the minetest game
+-- =====================================
+-- >> food_english/init.lua
+-- Adds pizzas, hamburgers, soda, etc
+-- =====================================
+
+print("English Foods - Version 0.1")
+
+if not food or not food.version or food.version < 2.3 then
+	error("You need to update your version of the Food mod - it is too old")
+end
+
+-- 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.module("english_breakfast", function()
+	local k = 7/8
+	minetest.register_node("food_english:breakfast", {
+		description = S("English Breakfast"),
+		drawtype = "nodebox",
+		inventory_image = "food_english_breakfast.png",
+		wield_image = "food_english_breakfast.png",
+		tiles = {
+			"food_english_breakfast.png",
+			"food_english_breakfast.png"
+		},
+		paramtype = "light",
+		walkable = true,
+		groups = {snappy = 3, food = 1},
+		paramtype2 = "facedir",
+		node_box = {
+			type = "fixed",
+			fixed = {
+				{ -0.25*k,   -0.5, -0.5*k,    0.25*k,   -0.48, 0.5*k    },
+				{ -0.375*k,  -0.5, -0.4375*k, 0.375*k,  -0.48, 0.4375*k },
+				{ -0.5*k,    -0.5, -0.25*k,   0.5*k,    -0.48, 0.25*k   },
+				{ -0.4375*k, -0.5, -0.375*k,  0.4375*k, -0.48, 0.375*k  },
+				{ -0.25*k,   -0.5, -0.5*k,    0.25*k,   -0.48, 0.5*k    }
+			}
+		},
+		--selection_box = {
+		--	type = "fixed",
+		--	fixed = { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 },
+		--},
+		on_use = food.item_eat(10),
+		on_place = minetest.rotate_node
+	})
+	minetest.register_craft({
+		output = "food_english:breakfast",
+		type = "shapeless",
+		recipe = {
+			"group:food_bread",
+			"group:food_bread",
+			"group:food_meat",
+			"group:food_meat",
+			"group:food_potato",
+			"group:food_egg",
+		}
+	})
+end)
diff --git a/textures/food_english_breakfast.png b/textures/food_english_breakfast.png
new file mode 100644
index 0000000000000000000000000000000000000000..de609ac09bb0434a6b72c625cf7637a26651cbbe
GIT binary patch
literal 433
zcmV;i0Z#sjP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV00006VoOIv00000
z008+zyMF)x010qNS#tmY4#WTe4#WYKD-Ig~000McNliru-v|W~GzSv?uHygz0X|7Y
zK~y-)rIRsB13?glzdch32SFQQL<?<<jo_93070-#Z=;>9Vi&YBt*wQHD8U~f+S;#>
zN)Qq-#i1ZM0!OS|i)4@6y-Pry>TZ_z_Pv?6${53cssdn)0rQOtX0ijVwZj}mkt!ol
zz5)vr5vL!=aVb&YgGB@pq1C861h(%htN37mR-;b1xDLSk^My;ad5G59SS1zTlLhY{
zoFXC&x+~e)FzFU%5ae(7!Jt^%+Ao0eR-74FFhJ*Q4=}`WjJ!TgT%$6^IQ{{KmnVEa
zT(fl7BYZrDmwV6&>D8OFl_-i-;4{vCblk?x?KlW?r3wPOTf65%S)fivYI3)iZsBWT
zHTxd4n}oHU(N7K1?epnL%+F%bZj$zUg!9W(H;xM43qi70vZRf{X}?ExN|e>4*ZAkh
b^xOIY*f^MhFHZ=*00000NkvXXu0mjfv9Yvo

literal 0
HcmV?d00001

diff --git a/textures/food_english_pasty.png b/textures/food_english_pasty.png
new file mode 100644
index 0000000000000000000000000000000000000000..86ca4521a66e7d7788e01ae21d13ecc13c977ac6
GIT binary patch
literal 353
zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=DinK$vl=HlH+5kiEpy*OmP~2dj|06nlq#Fi_~7r;B5V#p&cf|Nq-Ft2T5tIvsH8
zSrp6t`5*VEV#5xuk473dLXCxT53Fmg{4XgXA#p|Is3OxHE{QCOi-#ZleR`7z1eTwV
z{l|ZugZT~@&!3$860D`c8`~M<&PH5Gta$kNceq4X{@wbM44>@}UuWl$-|uvU^&)S_
zRe|OUQw1w>*Za;saR3N5{BScp#Jy1}iKl7J84zYkW?9CUrYL-5OE}N_`v0jF|9|T{
zGAFzeyI;{N$$f-HY5xKVWo97IQPc42lz92z;KHzo7mL-DRBXA*uI}Jfm?Cv?vXSz}
loq}l-qW`FT;yJ*|5HUTK{fyNQUZBqzJYD@<);T3K0RYf5gqHvS

literal 0
HcmV?d00001