From e18011bb43344eb44ada72000414db9782987038 Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Thu, 30 Aug 2012 17:19:00 +0100 Subject: Added Comments and Bread --- rubenfood/baking.lua | 41 ++++++++++++++++++++++++++++++++++- rubenfood/cakemix.lua | 26 ++++++++++------------ rubenfood/cakes.lua | 32 ++++++++++++++++++++++++++- rubenfood/drinks.lua | 10 ++++++--- rubenfood/fruits.lua | 10 ++++++++- rubenfood/init.lua | 3 ++- rubenfood/textures/farming_bread.png | Bin 918 -> 0 bytes rubenfood/textures/ruben_bread.png | Bin 0 -> 918 bytes 8 files changed, 101 insertions(+), 21 deletions(-) delete mode 100644 rubenfood/textures/farming_bread.png create mode 100644 rubenfood/textures/ruben_bread.png (limited to 'rubenfood') diff --git a/rubenfood/baking.lua b/rubenfood/baking.lua index a83cd2b..bf0bd87 100644 --- a/rubenfood/baking.lua +++ b/rubenfood/baking.lua @@ -1 +1,40 @@ ---This file loads baked stuff \ No newline at end of file +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/baking.lua +-- adds bread and pies +-- ===================================== +-- [regis-food] Bread +-- ===================================== + + + +-- doughs +minetest.register_craftitem("rubenfood:dough", { + description = "Dough", + inventory_image = "farming_cake_mix.png", +}) + +minetest.register_craft({ + output = "rubenfood:dough", + type = "shapeless", + recipe = {"rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "bucket:bucket_water"}, + replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} +}) + + +--plain bread +minetest.register_craft({ + type = "cooking", + output = "rubenfood:bread", + recipe = "rubenfood:dough", + cooktime = 10 +}) + +minetest.register_craftitem("rubenfood:bread", { + description = "Bread", + inventory_image = "ruben_bread.png", + stack_max = 1, + on_use = minetest.item_eat(10) +}) \ No newline at end of file diff --git a/rubenfood/cakemix.lua b/rubenfood/cakemix.lua index 690f5d4..2120843 100644 --- a/rubenfood/cakemix.lua +++ b/rubenfood/cakemix.lua @@ -1,17 +1,15 @@ --- Loads the animal mod based crafting +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/cakemix.lua +-- adds cake mix +-- ===================================== +-- [regis-food] Apple Juice +-- [craft] Cactus Juice +-- [regis-food] Cactus Juice +-- [craft] Cactus Juice +-- ===================================== ---------------Cake Pastry----------- -minetest.register_craft({ - output = '"rubenfood:cakemix_plain" 1', - recipe = { - {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, - } -}) - -minetest.register_craft({ - output = '"rubenfood:cakemix_choco" 1', - recipe = { - {'""','"default:dirt"','""'}, {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, - } -}) \ No newline at end of file diff --git a/rubenfood/cakes.lua b/rubenfood/cakes.lua index 1970e0b..8b1b90d 100644 --- a/rubenfood/cakes.lua +++ b/rubenfood/cakes.lua @@ -1,6 +1,15 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/cakes.lua +-- adds cakes +-- ===================================== +-- [regis-food] Plain Cake +-- [regis-food] Chocolate Cake +-- ===================================== print("RubenFood [Master] - Loading Cakes") -dofile(minetest.get_modpath("rubenfood").."/cakemix.lua") --------------------------Cakes------------------------- minetest.register_craftitem(":rubenfood:cakemix_plain",{ description = "Cake Mix", @@ -52,4 +61,25 @@ minetest.register_node(":rubenfood:cake_chocolate", { groups = {fleshy=3,dig_immediate=3,flammable=2}, on_use = minetest.item_eat(40), sounds = default.node_sound_defaults(), +}) + + + + + + +----------------------------- Cake Pastry ---------------------------- + +minetest.register_craft({ + output = '"rubenfood:cakemix_plain" 1', + recipe = { + {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, + } +}) + +minetest.register_craft({ + output = '"rubenfood:cakemix_choco" 1', + recipe = { + {'""','"default:dirt"','""'}, {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'}, + } }) \ No newline at end of file diff --git a/rubenfood/drinks.lua b/rubenfood/drinks.lua index 726a00a..04d0ba5 100644 --- a/rubenfood/drinks.lua +++ b/rubenfood/drinks.lua @@ -2,9 +2,13 @@ -- A mod written by rubenwardy that adds -- food to the minetest game -- ===================================== --- rubenfood/init.lua +-- >> rubenfood/drinks.lua +-- adds drinks -- ===================================== --- +-- [regis-food] Apple Juice +-- [craft] Cactus Juice +-- [regis-food] Cactus Juice +-- [craft] Cactus Juice -- ===================================== print ("RubenFood [Master] - Loading Juices") @@ -37,7 +41,7 @@ minetest.register_craft({ -----------------------cactuz juice---------------------------- +----------------------cactus juice---------------------------- minetest.register_node(":rubenfood:cactus_juice", { description = "Cactuz Juice", drawtype = "plantlike", diff --git a/rubenfood/fruits.lua b/rubenfood/fruits.lua index 5e54f64..ff7a2b0 100644 --- a/rubenfood/fruits.lua +++ b/rubenfood/fruits.lua @@ -1,4 +1,12 @@ --- This file adds apple like fruits +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/fruits.lua +-- adds fruits +-- ===================================== +-- [regis-food] Oranges +-- ===================================== print ("RubenFood [Master] - Loading Fruits") diff --git a/rubenfood/init.lua b/rubenfood/init.lua index ab5f014..5196cc5 100644 --- a/rubenfood/init.lua +++ b/rubenfood/init.lua @@ -2,7 +2,8 @@ -- A mod written by rubenwardy that adds -- food to the minetest game -- ===================================== --- rubenfood/init.lua +-- >> rubenfood/init.lua +-- inits the mod -- ===================================== -- [regis-item] Cup -- [craft] Cup diff --git a/rubenfood/textures/farming_bread.png b/rubenfood/textures/farming_bread.png deleted file mode 100644 index 6dca983..0000000 Binary files a/rubenfood/textures/farming_bread.png and /dev/null differ diff --git a/rubenfood/textures/ruben_bread.png b/rubenfood/textures/ruben_bread.png new file mode 100644 index 0000000..6dca983 Binary files /dev/null and b/rubenfood/textures/ruben_bread.png differ -- cgit v1.2.3