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:
parent
46abeee794
commit
51ebdbe5c6
1
rubenfood/baking.lua
Normal file
1
rubenfood/baking.lua
Normal file
@ -0,0 +1 @@
|
||||
--This file loads baked stuff
|
@ -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"'},
|
||||
}
|
||||
})
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",{
|
||||
|
@ -1 +1 @@
|
||||
minetest.register_alias("rubenfood:wheat", "farming:wheat")
|
||||
minetest.register_alias("rubenfood:flour", "farming:flour")
|
Loading…
Reference in New Issue
Block a user