forked from mtcontrib/food
		
	Made Rubenfood into Modules
This commit is contained in:
		
							
								
								
									
										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 | -- Loads the animal mod based crafting | ||||||
| print ("RubenFood: Loading animal+farming based foods") |  | ||||||
|  |  | ||||||
| ---------------Cake Pastry----------- | ---------------Cake Pastry----------- | ||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	output = '"rubenfood:cakemix_plain" 1', | 	output = '"rubenfood:cakemix_plain" 1', | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{'"rubenfood:wheat"','"rubenfood:milk"','"rubenfood:egg"'}, | 		{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, | ||||||
| 	} | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	output = '"rubenfood:cakemix_choco" 1', | 	output = '"rubenfood:cakemix_choco" 1', | ||||||
| 	recipe = { | 	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------------------------- | --------------------------Cakes------------------------- | ||||||
| minetest.register_craftitem(":rubenfood:cakemix_plain",{ | minetest.register_craftitem(":rubenfood:cakemix_plain",{ | ||||||
| 	description = "Cake Mix", | 	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-------------------------- | --------------------------Apple Juice-------------------------- | ||||||
| minetest.register_node(":rubenfood:apple_juice", { | minetest.register_node(":rubenfood:apple_juice", { | ||||||
| 	description = "Apple Juice", | 	description = "Apple Juice", | ||||||
|   | |||||||
| @@ -1,5 +1,7 @@ | |||||||
| -- This file adds apple like fruits | -- This file adds apple like fruits | ||||||
|  |  | ||||||
|  | print ("RubenFood [Master] - Loading Fruits") | ||||||
|  |  | ||||||
| minetest.register_node(":default:orange", { | minetest.register_node(":default:orange", { | ||||||
| 	description = "Orange Fruit", | 	description = "Orange Fruit", | ||||||
| 	drawtype = "plantlike", | 	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------------------------------ | ----------------------------Cup------------------------------ | ||||||
| minetest.register_craftitem(":rubenfood:cup",{ | minetest.register_craftitem(":rubenfood:cup",{ | ||||||
|   | |||||||
| @@ -1 +1 @@ | |||||||
|  minetest.register_alias("rubenfood:wheat", "farming:wheat") |  minetest.register_alias("rubenfood:flour", "farming:flour") | ||||||
		Reference in New Issue
	
	Block a user