More Stuff

This commit is contained in:
Rubenwardy 2012-08-31 18:43:10 +01:00
parent 23b2a9a747
commit e488cf549c
6 changed files with 69 additions and 29 deletions

View File

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

View File

@ -8,8 +8,47 @@
-- [regis-food] Bread -- [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 -- doughs
if not minetest.get_modpath("farming") then if not minetest.get_modpath("farming") then

View File

@ -15,6 +15,7 @@ print ("food: Loading mainframe: [Master]")
----------------------Load Files----------------------------- ----------------------Load Files-----------------------------
dofile(minetest.get_modpath("food").."/support.lua") dofile(minetest.get_modpath("food").."/support.lua")
dofile(minetest.get_modpath("food").."/dairy.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").."/baking.lua")
dofile(minetest.get_modpath("food").."/cakes.lua") dofile(minetest.get_modpath("food").."/cakes.lua")

29
sandwich.lua Normal file
View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B