1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-12-23 00:10:18 +01:00

Made Rubenfood into Modules

This commit is contained in:
Rubenwardy 2012-08-30 17:04:36 +01:00
parent 46abeee794
commit 51ebdbe5c6
7 changed files with 35 additions and 6 deletions

1
rubenfood/baking.lua Normal file
View File

@ -0,0 +1 @@
--This file loads baked stuff

View File

@ -1,18 +1,17 @@
-- Loads the animal mod based crafting
print ("RubenFood: Loading animal+farming based foods")
---------------Cake Pastry-----------
minetest.register_craft({
output = '"rubenfood:cakemix_plain" 1',
recipe = {
{'"rubenfood:wheat"','"rubenfood:milk"','"rubenfood:egg"'},
{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
}
})
minetest.register_craft({
output = '"rubenfood:cakemix_choco" 1',
recipe = {
{'""','"default:dirt"','""'}, {'"rubenfood:wheat"','"rubenfood:milk"','"rubenfood:egg"'},
{'""','"default:dirt"','""'}, {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
}
})

View File

@ -1,3 +1,6 @@
print("RubenFood [Master] - Loading Cakes")
dofile(minetest.get_modpath("rubenfood").."/cakemix.lua")
--------------------------Cakes-------------------------
minetest.register_craftitem(":rubenfood:cakemix_plain",{
description = "Cake Mix",

View File

@ -1,3 +1,14 @@
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- rubenfood/init.lua
-- =====================================
--
-- =====================================
print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice--------------------------
minetest.register_node(":rubenfood:apple_juice", {
description = "Apple Juice",

View File

@ -1,5 +1,7 @@
-- This file adds apple like fruits
print ("RubenFood [Master] - Loading Fruits")
minetest.register_node(":default:orange", {
description = "Orange Fruit",
drawtype = "plantlike",

View File

@ -1,6 +1,19 @@
-- This file registers all the foods
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- rubenfood/init.lua
-- =====================================
-- [regis-item] Cup
-- [craft] Cup
-- [regis-food] Cigerette (-4)
-- =====================================
print ("RubenFood: Loading mainframe")
print ("RubenFood: Loading mainframe: [Master]")
dofile(minetest.get_modpath("rubenfood").."/drinks.lua")
dofile(minetest.get_modpath("rubenfood").."/cakes.lua")
dofile(minetest.get_modpath("rubenfood").."/fruits.lua")
----------------------------Cup------------------------------
minetest.register_craftitem(":rubenfood:cup",{

View File

@ -1 +1 @@
minetest.register_alias("rubenfood:wheat", "farming:wheat")
minetest.register_alias("rubenfood:flour", "farming:flour")