summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-08-31 18:43:10 +0100
committerRubenwardy <anjayward@gmail.com>2012-08-31 18:43:10 +0100
commite488cf549cdd02fa794053aa027324271e8d47ab (patch)
tree225a41e912939c4e4c738d4d04bc8423c7ce08bf
parent23b2a9a747b43abcf6633425008ff06752f6696c (diff)
More Stuff
-rw-r--r--README.md29
-rw-r--r--baking.lua39
-rw-r--r--init.lua1
-rw-r--r--sandwich.lua29
-rw-r--r--textures/food_crumble_rhubarb.pngbin0 -> 523 bytes
-rw-r--r--textures/food_crumble_rhubarb_raw.pngbin0 -> 500 bytes
6 files changed, 69 insertions, 29 deletions
diff --git a/README.md b/README.md
deleted file mode 100644
index b7abf5e..0000000
--- a/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-Rubenwardy's Food Mod.
-======================
-
-This mod adds food for minetest and is an ideal companion for the Farming (by PilzAdam) and the Animal (by Sapier) Mods.
-
-License
-=======
-Copyright (c) 2012, Andrew "Rubenwardy" Ward
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-3. This source code/software modified/unmodified must not be used for commercial use .
-4. The copyright owner has the right to change these conditions at anytime with/without notice.
-5. The copyright owner can issue an exception to these conditions by giving specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file
diff --git a/baking.lua b/baking.lua
index 3e12f92..d0c6aea 100644
--- a/baking.lua
+++ b/baking.lua
@@ -8,8 +8,47 @@
-- [regis-food] Bread
-- =====================================
+print "RubenFood [Master] - Loading Crumbles"
+--Crumbles
+minetest.register_craftitem("food:crumble_rhubarb", {
+ description = "Rhubarb Crumble",
+ inventory_image = "food_crumble_rhubarb.png",
+ on_use = minetest.item_eat(30),
+})
+
+minetest.register_craftitem("food:crumble_rhubarb_raw", {
+ description = "Raw Rhubarb Crumble",
+ inventory_image = "food_crumble_rhubarb_raw.png",
+})
+
+minetest.register_craft({
+ output = '"food:crumble_rhubarb_raw" 1',
+ recipe = {
+ {'"food:flour"','"food:rhubarb"','"food:butter"'}
+ }
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "food:crumble_rhubarb",
+ recipe = "food:crumble_rhubarb_raw",
+})
+
+minetest.register_craft({
+ output = '"food:bread_slice" 10',
+ recipe = {
+ {'"food:bread"'},
+ }
+})
+
+minetest.register_craftitem("food:bread_slice", {
+ description = "Bread Slice",
+ inventory_image = "food_bread_slice.png",
+ on_use = minetest.item_eat(2),
+})
+print "RubenFood [Master] - Loading Dough"
-- doughs
if not minetest.get_modpath("farming") then
diff --git a/init.lua b/init.lua
index 8753fea..a01a7e0 100644
--- a/init.lua
+++ b/init.lua
@@ -15,6 +15,7 @@ print ("food: Loading mainframe: [Master]")
----------------------Load Files-----------------------------
dofile(minetest.get_modpath("food").."/support.lua")
dofile(minetest.get_modpath("food").."/dairy.lua")
+dofile(minetest.get_modpath("food").."/sandwich.lua")
dofile(minetest.get_modpath("food").."/baking.lua")
dofile(minetest.get_modpath("food").."/cakes.lua")
diff --git a/sandwich.lua b/sandwich.lua
new file mode 100644
index 0000000..08c4213
--- /dev/null
+++ b/sandwich.lua
@@ -0,0 +1,29 @@
+-- RUBENFOOD MOD
+-- A mod written by rubenwardy that adds
+-- food to the minetest game
+-- ======================================
+-- >> rubenfood/sandwich.lua
+-- adds sandwich
+-- ======================================
+-- [regis-food] Cheese
+-- [craft] Cheese
+-- [regis-item] Butter
+-- [craft] Butter
+-- ======================================
+
+print "RubenFood [Master] - Loading Sandwiches"
+
+minetest.register_craftitem("food:sw_meat", {
+ description = "Venison Sandwich",
+ inventory_image = "food_sw_meat.png",
+ on_use = minetest.item_eat(10),
+})
+
+minetest.register_craft({
+ output = '"food:sw_meat" 1',
+ recipe = {
+ {"",'"food:bread_slice"',""},
+ {"food:butter","",'"food:butter"'},
+ {"",'"food:bread_slice"',""},
+ }
+})
diff --git a/textures/food_crumble_rhubarb.png b/textures/food_crumble_rhubarb.png
new file mode 100644
index 0000000..4b8811e
--- /dev/null
+++ b/textures/food_crumble_rhubarb.png
Binary files differ
diff --git a/textures/food_crumble_rhubarb_raw.png b/textures/food_crumble_rhubarb_raw.png
new file mode 100644
index 0000000..5c1689e
--- /dev/null
+++ b/textures/food_crumble_rhubarb_raw.png
Binary files differ