From ba2dbaf4665a88d4c58b73a79bd774ed423fe318 Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Fri, 31 Aug 2012 14:09:41 +0100 Subject: Did support.lua - dynamic external mod support --- baking.lua | 41 +++++++++ cakes.lua | 85 ++++++++++++++++++ dairy.lua | 17 ++++ depends.txt | 2 + drinks.lua | 131 ++++++++++++++++++++++++++++ fruits.lua | 25 ++++++ init.lua | 67 ++++++++++++++ modpack.txt | 0 rubenfood/baking.lua | 41 --------- rubenfood/cakes.lua | 85 ------------------ rubenfood/dairy.lua | 21 ----- rubenfood/depends.txt | 2 - rubenfood/drinks.lua | 131 ---------------------------- rubenfood/fruits.lua | 25 ------ rubenfood/init.lua | 72 --------------- rubenfood/textures/animalmaterials_egg.png | Bin 672 -> 0 bytes rubenfood/textures/animalmaterials_milk.png | Bin 559 -> 0 bytes rubenfood/textures/ruben_bread.png | Bin 918 -> 0 bytes rubenfood/textures/ruben_cake.png | Bin 908 -> 0 bytes rubenfood/textures/ruben_cake_choco.png | Bin 942 -> 0 bytes rubenfood/textures/ruben_cigar.png | Bin 693 -> 0 bytes rubenfood/textures/ruben_coffee.png | Bin 1399 -> 0 bytes rubenfood/textures/ruben_coffee_cooked.png | Bin 895 -> 0 bytes rubenfood/textures/ruben_coffee_cup.png | Bin 873 -> 0 bytes rubenfood/textures/ruben_cup.png | Bin 564 -> 0 bytes rubenfood/textures/ruben_juice_apple.png | Bin 729 -> 0 bytes rubenfood/textures/ruben_mug.png | Bin 780 -> 0 bytes rubenfood/textures/ruben_pastry.png | Bin 842 -> 0 bytes rubenfood/textures/ruben_pastry_choco.png | Bin 854 -> 0 bytes rubenfood_animals/init.lua | 2 - rubenfood_farming/init.lua | 1 - support.lua | 81 +++++++++++++++++ textures/animalmaterials_egg.png | Bin 0 -> 672 bytes textures/animalmaterials_milk.png | Bin 0 -> 559 bytes textures/farming_cake_mix.png | Bin 0 -> 343 bytes textures/farming_flour.png | Bin 0 -> 344 bytes textures/farming_strawberry.png | Bin 0 -> 250 bytes textures/ruben_bread.png | Bin 0 -> 918 bytes textures/ruben_cake.png | Bin 0 -> 908 bytes textures/ruben_cake_choco.png | Bin 0 -> 942 bytes textures/ruben_cigar.png | Bin 0 -> 693 bytes textures/ruben_coffee.png | Bin 0 -> 1399 bytes textures/ruben_coffee_cooked.png | Bin 0 -> 895 bytes textures/ruben_coffee_cup.png | Bin 0 -> 873 bytes textures/ruben_cup.png | Bin 0 -> 564 bytes textures/ruben_juice_apple.png | Bin 0 -> 729 bytes textures/ruben_mug.png | Bin 0 -> 780 bytes textures/ruben_pastry.png | Bin 0 -> 842 bytes textures/ruben_pastry_choco.png | Bin 0 -> 854 bytes 49 files changed, 449 insertions(+), 380 deletions(-) create mode 100644 baking.lua create mode 100644 cakes.lua create mode 100644 dairy.lua create mode 100644 depends.txt create mode 100644 drinks.lua create mode 100644 fruits.lua create mode 100644 init.lua delete mode 100644 modpack.txt delete mode 100644 rubenfood/baking.lua delete mode 100644 rubenfood/cakes.lua delete mode 100644 rubenfood/dairy.lua delete mode 100644 rubenfood/depends.txt delete mode 100644 rubenfood/drinks.lua delete mode 100644 rubenfood/fruits.lua delete mode 100644 rubenfood/init.lua delete mode 100644 rubenfood/textures/animalmaterials_egg.png delete mode 100644 rubenfood/textures/animalmaterials_milk.png delete mode 100644 rubenfood/textures/ruben_bread.png delete mode 100644 rubenfood/textures/ruben_cake.png delete mode 100644 rubenfood/textures/ruben_cake_choco.png delete mode 100644 rubenfood/textures/ruben_cigar.png delete mode 100644 rubenfood/textures/ruben_coffee.png delete mode 100644 rubenfood/textures/ruben_coffee_cooked.png delete mode 100644 rubenfood/textures/ruben_coffee_cup.png delete mode 100644 rubenfood/textures/ruben_cup.png delete mode 100644 rubenfood/textures/ruben_juice_apple.png delete mode 100644 rubenfood/textures/ruben_mug.png delete mode 100644 rubenfood/textures/ruben_pastry.png delete mode 100644 rubenfood/textures/ruben_pastry_choco.png delete mode 100644 rubenfood_animals/init.lua delete mode 100644 rubenfood_farming/init.lua create mode 100644 support.lua create mode 100644 textures/animalmaterials_egg.png create mode 100644 textures/animalmaterials_milk.png create mode 100644 textures/farming_cake_mix.png create mode 100644 textures/farming_flour.png create mode 100644 textures/farming_strawberry.png create mode 100644 textures/ruben_bread.png create mode 100644 textures/ruben_cake.png create mode 100644 textures/ruben_cake_choco.png create mode 100644 textures/ruben_cigar.png create mode 100644 textures/ruben_coffee.png create mode 100644 textures/ruben_coffee_cooked.png create mode 100644 textures/ruben_coffee_cup.png create mode 100644 textures/ruben_cup.png create mode 100644 textures/ruben_juice_apple.png create mode 100644 textures/ruben_mug.png create mode 100644 textures/ruben_pastry.png create mode 100644 textures/ruben_pastry_choco.png diff --git a/baking.lua b/baking.lua new file mode 100644 index 0000000..98da7ad --- /dev/null +++ b/baking.lua @@ -0,0 +1,41 @@ +-- 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", +}) + +if add_bread_craft then +minetest.register_craft({ + output = "rubenfood:dough", + type = "shapeless", + recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"}, + replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} +}) + +minetest.register_craft({ + type = "cooking", + output = "rubenfood:bread", + recipe = "rubenfood:dough", + cooktime = 10 +}) + +end + +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/cakes.lua b/cakes.lua new file mode 100644 index 0000000..09d1042 --- /dev/null +++ b/cakes.lua @@ -0,0 +1,85 @@ +-- 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") + +--------------------------Cakes------------------------- +minetest.register_craftitem("rubenfood:cakemix_plain",{ + description = "Cake Mix", + tiles = {"ruben_pastry.png"}, + inventory_image = "ruben_pastry.png", +}) + +minetest.register_craftitem("rubenfood:cakemix_choco",{ + description = "Chocolate Cake Mix", + tiles = {"ruben_pastry_choco.png"}, + inventory_image = "ruben_pastry_choco.png", +}) + +minetest.register_craft({ + type = "cooking", + output = "rubenfood:cake", + recipe = "rubenfood:cakemix_plain", +}) + +minetest.register_craft({ + type = "cooking", + output = "rubenfood:cake_chocolate", + recipe = "rubenfood:cakemix_choco", +}) + +minetest.register_node("rubenfood:cake", { + description = "Cake", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_cake.png"}, + inventory_image = "ruben_cake.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(30), + sounds = default.node_sound_defaults(), +}) + +minetest.register_node("rubenfood:cake_chocolate", { + description = "Chocolate Cake", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_cake_choco.png"}, + inventory_image = "ruben_cake_choco.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + 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/dairy.lua b/dairy.lua new file mode 100644 index 0000000..c2ca2dd --- /dev/null +++ b/dairy.lua @@ -0,0 +1,17 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ====================================== +-- >> rubenfood/support.lua +-- adds diary products +-- ====================================== +-- [regis-food] Cheese +-- [craft] Cheese +-- [regis-item] Butter +-- [craft] Butter +-- ====================================== + + + + + diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..a916278 --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +bucket \ No newline at end of file diff --git a/drinks.lua b/drinks.lua new file mode 100644 index 0000000..04d0ba5 --- /dev/null +++ b/drinks.lua @@ -0,0 +1,131 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/drinks.lua +-- adds drinks +-- ===================================== +-- [regis-food] Apple Juice +-- [craft] Cactus Juice +-- [regis-food] Cactus Juice +-- [craft] Cactus Juice +-- ===================================== + +print ("RubenFood [Master] - Loading Juices") + +--------------------------Apple Juice-------------------------- +minetest.register_node(":rubenfood:apple_juice", { + description = "Apple Juice", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_juice_apple.png"}, + inventory_image = "ruben_juice_apple.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(2), + sounds = default.node_sound_defaults(), +}) + +minetest.register_craft({ + output = '"rubenfood:apple_juice" 4', + recipe = { + {'""','""','""'}, + {'""','"default:apple"','""'}, + {'""','"rubenfood:cup"','""'}, + } +}) + + + + + +----------------------cactus juice---------------------------- +minetest.register_node(":rubenfood:cactus_juice", { + description = "Cactuz Juice", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_juice_cactus.png"}, + inventory_image = "ruben_juice_cactus.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(2), + sounds = default.node_sound_defaults(), +}) + +minetest.register_craft({ + output = '"rubenfood:cactus_juice" 4', + recipe = { + {'""','""','""'}, + {'""','"default:cactus"','""'}, + {'""','"rubenfood:cup"','""'}, + } +}) + + + + + + + + + + +-----------------------------Coffee----------------------------- + +minetest.register_craftitem(":rubenfood:coffeebean",{ + description = "Raw Coffee Bean", + tiles = {"ruben_coffee.png"}, + inventory_image = "ruben_coffee.png", +}) + +minetest.register_craftitem(":rubenfood:coffeebean_cooked",{ + description = "Cooked Coffee Bean", + tiles = {"ruben_coffee_cooked.png"}, + inventory_image = "ruben_coffee_cooked.png", +}) + +minetest.register_node(":rubenfood:coffee", { + description = "Coffee", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_coffee_cup.png"}, + inventory_image = "ruben_coffee_cup.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(10), + sounds = default.node_sound_defaults(), +}) + +minetest.register_craft({ + output = '"rubenfood:coffeebean" 1', + recipe = { + {'""','"default:dry_shrub"','""'}, + {'""','"default:dry_shrub"','""'}, + {'""','"default:dry_shrub"','""'}, + } +}) + +minetest.register_craft({ + output = '"rubenfood:coffee" 1', + recipe = { + {'""','"rubenfood:coffeebean_cooked"','""'}, + {'""','"rubenfood:coffeebean_cooked"','""'}, + {'""','"rubenfood:cup"','""'}, + } +}) + +minetest.register_craft({ + type = "cooking", + output = "rubenfood:coffeebean_cooked", + recipe = "rubenfood:coffeebean", +}) + + + + diff --git a/fruits.lua b/fruits.lua new file mode 100644 index 0000000..ff7a2b0 --- /dev/null +++ b/fruits.lua @@ -0,0 +1,25 @@ +-- 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") + +minetest.register_node(":default:orange", { + description = "Orange Fruit", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_orange.png"}, + inventory_image = "ruben_orange.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(4), + sounds = default.node_sound_defaults(), +}) \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..a0f3b02 --- /dev/null +++ b/init.lua @@ -0,0 +1,67 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ===================================== +-- >> rubenfood/init.lua +-- inits the mod +-- ===================================== +-- [regis-item] Cup +-- [craft] Cup +-- [regis-food] Cigerette (-4) +-- ===================================== + +print ("RubenFood: Loading mainframe: [Master]") + +----------------------Load Files----------------------------- +dofile(minetest.get_modpath("rubenfood").."/support.lua") +dofile(minetest.get_modpath("rubenfood").."/dairy.lua") + +dofile(minetest.get_modpath("rubenfood").."/baking.lua") +dofile(minetest.get_modpath("rubenfood").."/cakes.lua") + +dofile(minetest.get_modpath("rubenfood").."/drinks.lua") +dofile(minetest.get_modpath("rubenfood").."/fruits.lua") + + + +----------------------------Cup------------------------------ + +minetest.register_craftitem("rubenfood:mug",{ + description = "Mug", + tiles = {"ruben_mug.png"}, + inventory_image = "ruben_mug.png", +}) + +minetest.register_craft({ + output = '"rubenfood:cup" 4', + recipe = { + {"default:glass"}, + {"default:glass"}, + } +}) + + +----------------------------Cigerete---------------------------- +minetest.register_node(":rubenfood:cigarette", { + description = "Cigarette", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"ruben_cigar.png"}, + inventory_image = "ruben_cigar.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + groups = {fleshy=3,dig_immediate=3,flammable=2}, + on_use = minetest.item_eat(-4), + sounds = default.node_sound_defaults(), +}) + +minetest.register_craft({ + output = '"rubenfood:cigarette" 1', + recipe = { + {'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'}, + + } +}) + +print("Rubenfood: Mainframe loaded") \ No newline at end of file diff --git a/modpack.txt b/modpack.txt deleted file mode 100644 index e69de29..0000000 diff --git a/rubenfood/baking.lua b/rubenfood/baking.lua deleted file mode 100644 index 98da7ad..0000000 --- a/rubenfood/baking.lua +++ /dev/null @@ -1,41 +0,0 @@ --- 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", -}) - -if add_bread_craft then -minetest.register_craft({ - output = "rubenfood:dough", - type = "shapeless", - recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"}, - replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} -}) - -minetest.register_craft({ - type = "cooking", - output = "rubenfood:bread", - recipe = "rubenfood:dough", - cooktime = 10 -}) - -end - -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/cakes.lua b/rubenfood/cakes.lua deleted file mode 100644 index 09d1042..0000000 --- a/rubenfood/cakes.lua +++ /dev/null @@ -1,85 +0,0 @@ --- 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") - ---------------------------Cakes------------------------- -minetest.register_craftitem("rubenfood:cakemix_plain",{ - description = "Cake Mix", - tiles = {"ruben_pastry.png"}, - inventory_image = "ruben_pastry.png", -}) - -minetest.register_craftitem("rubenfood:cakemix_choco",{ - description = "Chocolate Cake Mix", - tiles = {"ruben_pastry_choco.png"}, - inventory_image = "ruben_pastry_choco.png", -}) - -minetest.register_craft({ - type = "cooking", - output = "rubenfood:cake", - recipe = "rubenfood:cakemix_plain", -}) - -minetest.register_craft({ - type = "cooking", - output = "rubenfood:cake_chocolate", - recipe = "rubenfood:cakemix_choco", -}) - -minetest.register_node("rubenfood:cake", { - description = "Cake", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_cake.png"}, - inventory_image = "ruben_cake.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, - on_use = minetest.item_eat(30), - sounds = default.node_sound_defaults(), -}) - -minetest.register_node("rubenfood:cake_chocolate", { - description = "Chocolate Cake", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_cake_choco.png"}, - inventory_image = "ruben_cake_choco.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - 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/dairy.lua b/rubenfood/dairy.lua deleted file mode 100644 index c0388a4..0000000 --- a/rubenfood/dairy.lua +++ /dev/null @@ -1,21 +0,0 @@ --- RUBENFOOD MOD --- A mod written by rubenwardy that adds --- food to the minetest game --- ====================================== --- >> rubenfood/support.lua --- adds support for other mods --- adds items and aliases that are needed --- ====================================== --- [regis-item] Flour --- [regis-item] Milk --- [regis-item] Egg --- [regis-food] Cheese --- [craft] Cheese --- [regis-item] Butter --- [craft] Butter --- ====================================== - - - - - diff --git a/rubenfood/depends.txt b/rubenfood/depends.txt deleted file mode 100644 index a916278..0000000 --- a/rubenfood/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default -bucket \ No newline at end of file diff --git a/rubenfood/drinks.lua b/rubenfood/drinks.lua deleted file mode 100644 index 04d0ba5..0000000 --- a/rubenfood/drinks.lua +++ /dev/null @@ -1,131 +0,0 @@ --- RUBENFOOD MOD --- A mod written by rubenwardy that adds --- food to the minetest game --- ===================================== --- >> rubenfood/drinks.lua --- adds drinks --- ===================================== --- [regis-food] Apple Juice --- [craft] Cactus Juice --- [regis-food] Cactus Juice --- [craft] Cactus Juice --- ===================================== - -print ("RubenFood [Master] - Loading Juices") - ---------------------------Apple Juice-------------------------- -minetest.register_node(":rubenfood:apple_juice", { - description = "Apple Juice", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_juice_apple.png"}, - inventory_image = "ruben_juice_apple.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, - on_use = minetest.item_eat(2), - sounds = default.node_sound_defaults(), -}) - -minetest.register_craft({ - output = '"rubenfood:apple_juice" 4', - recipe = { - {'""','""','""'}, - {'""','"default:apple"','""'}, - {'""','"rubenfood:cup"','""'}, - } -}) - - - - - -----------------------cactus juice---------------------------- -minetest.register_node(":rubenfood:cactus_juice", { - description = "Cactuz Juice", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_juice_cactus.png"}, - inventory_image = "ruben_juice_cactus.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, - on_use = minetest.item_eat(2), - sounds = default.node_sound_defaults(), -}) - -minetest.register_craft({ - output = '"rubenfood:cactus_juice" 4', - recipe = { - {'""','""','""'}, - {'""','"default:cactus"','""'}, - {'""','"rubenfood:cup"','""'}, - } -}) - - - - - - - - - - ------------------------------Coffee----------------------------- - -minetest.register_craftitem(":rubenfood:coffeebean",{ - description = "Raw Coffee Bean", - tiles = {"ruben_coffee.png"}, - inventory_image = "ruben_coffee.png", -}) - -minetest.register_craftitem(":rubenfood:coffeebean_cooked",{ - description = "Cooked Coffee Bean", - tiles = {"ruben_coffee_cooked.png"}, - inventory_image = "ruben_coffee_cooked.png", -}) - -minetest.register_node(":rubenfood:coffee", { - description = "Coffee", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_coffee_cup.png"}, - inventory_image = "ruben_coffee_cup.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, - on_use = minetest.item_eat(10), - sounds = default.node_sound_defaults(), -}) - -minetest.register_craft({ - output = '"rubenfood:coffeebean" 1', - recipe = { - {'""','"default:dry_shrub"','""'}, - {'""','"default:dry_shrub"','""'}, - {'""','"default:dry_shrub"','""'}, - } -}) - -minetest.register_craft({ - output = '"rubenfood:coffee" 1', - recipe = { - {'""','"rubenfood:coffeebean_cooked"','""'}, - {'""','"rubenfood:coffeebean_cooked"','""'}, - {'""','"rubenfood:cup"','""'}, - } -}) - -minetest.register_craft({ - type = "cooking", - output = "rubenfood:coffeebean_cooked", - recipe = "rubenfood:coffeebean", -}) - - - - diff --git a/rubenfood/fruits.lua b/rubenfood/fruits.lua deleted file mode 100644 index ff7a2b0..0000000 --- a/rubenfood/fruits.lua +++ /dev/null @@ -1,25 +0,0 @@ --- 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") - -minetest.register_node(":default:orange", { - description = "Orange Fruit", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_orange.png"}, - inventory_image = "ruben_orange.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, - on_use = minetest.item_eat(4), - sounds = default.node_sound_defaults(), -}) \ No newline at end of file diff --git a/rubenfood/init.lua b/rubenfood/init.lua deleted file mode 100644 index ce0a043..0000000 --- a/rubenfood/init.lua +++ /dev/null @@ -1,72 +0,0 @@ --- RUBENFOOD MOD --- A mod written by rubenwardy that adds --- food to the minetest game --- ===================================== --- >> rubenfood/init.lua --- inits the mod --- ===================================== --- [regis-item] Cup --- [craft] Cup --- [regis-food] Cigerette (-4) --- ===================================== - -print ("RubenFood: Loading mainframe: [Master]") - -----------------------Load Files----------------------------- -dofile(minetest.get_modpath("rubenfood").."/dairy.lua") - -dofile(minetest.get_modpath("rubenfood").."/baking.lua") -dofile(minetest.get_modpath("rubenfood").."/cakes.lua") - -dofile(minetest.get_modpath("rubenfood").."/drinks.lua") -dofile(minetest.get_modpath("rubenfood").."/fruits.lua") - - - -----------------------------Cup------------------------------ -minetest.register_alias("rubenfood:cup","animalmaterials:glass") -minetest.register_craftitem(":animalmaterials:glass",{ - description = "Cup", - tiles = {"ruben_cup.png"}, - inventory_image = "ruben_cup.png", -}) - -minetest.register_craftitem("rubenfood:mug",{ - description = "Mug", - tiles = {"ruben_mug.png"}, - inventory_image = "ruben_mug.png", -}) - -minetest.register_craft({ - output = '"rubenfood:cup" 4', - recipe = { - {"default:glass"}, - {"default:glass"}, - } -}) - - -----------------------------Cigerete---------------------------- -minetest.register_node(":rubenfood:cigarette", { - description = "Cigarette", - drawtype = "plantlike", - visual_scale = 1.0, - tiles = {"ruben_cigar.png"}, - inventory_image = "ruben_cigar.png", - paramtype = "light", - sunlight_propagates = true, - walkable = false, - groups = {fleshy=3,dig_immediate=3,flammable=2}, - on_use = minetest.item_eat(-4), - sounds = default.node_sound_defaults(), -}) - -minetest.register_craft({ - output = '"rubenfood:cigarette" 1', - recipe = { - {'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'}, - - } -}) - -print("Rubenfood: Mainframe loaded") \ No newline at end of file diff --git a/rubenfood/textures/animalmaterials_egg.png b/rubenfood/textures/animalmaterials_egg.png deleted file mode 100644 index 50010de..0000000 Binary files a/rubenfood/textures/animalmaterials_egg.png and /dev/null differ diff --git a/rubenfood/textures/animalmaterials_milk.png b/rubenfood/textures/animalmaterials_milk.png deleted file mode 100644 index e535264..0000000 Binary files a/rubenfood/textures/animalmaterials_milk.png and /dev/null differ diff --git a/rubenfood/textures/ruben_bread.png b/rubenfood/textures/ruben_bread.png deleted file mode 100644 index 6dca983..0000000 Binary files a/rubenfood/textures/ruben_bread.png and /dev/null differ diff --git a/rubenfood/textures/ruben_cake.png b/rubenfood/textures/ruben_cake.png deleted file mode 100644 index 250303b..0000000 Binary files a/rubenfood/textures/ruben_cake.png and /dev/null differ diff --git a/rubenfood/textures/ruben_cake_choco.png b/rubenfood/textures/ruben_cake_choco.png deleted file mode 100644 index b75f8ed..0000000 Binary files a/rubenfood/textures/ruben_cake_choco.png and /dev/null differ diff --git a/rubenfood/textures/ruben_cigar.png b/rubenfood/textures/ruben_cigar.png deleted file mode 100644 index f2275ec..0000000 Binary files a/rubenfood/textures/ruben_cigar.png and /dev/null differ diff --git a/rubenfood/textures/ruben_coffee.png b/rubenfood/textures/ruben_coffee.png deleted file mode 100644 index 944fd73..0000000 Binary files a/rubenfood/textures/ruben_coffee.png and /dev/null differ diff --git a/rubenfood/textures/ruben_coffee_cooked.png b/rubenfood/textures/ruben_coffee_cooked.png deleted file mode 100644 index 8f75897..0000000 Binary files a/rubenfood/textures/ruben_coffee_cooked.png and /dev/null differ diff --git a/rubenfood/textures/ruben_coffee_cup.png b/rubenfood/textures/ruben_coffee_cup.png deleted file mode 100644 index 272299a..0000000 Binary files a/rubenfood/textures/ruben_coffee_cup.png and /dev/null differ diff --git a/rubenfood/textures/ruben_cup.png b/rubenfood/textures/ruben_cup.png deleted file mode 100644 index 9fadc0d..0000000 Binary files a/rubenfood/textures/ruben_cup.png and /dev/null differ diff --git a/rubenfood/textures/ruben_juice_apple.png b/rubenfood/textures/ruben_juice_apple.png deleted file mode 100644 index fc2b8ef..0000000 Binary files a/rubenfood/textures/ruben_juice_apple.png and /dev/null differ diff --git a/rubenfood/textures/ruben_mug.png b/rubenfood/textures/ruben_mug.png deleted file mode 100644 index f68173b..0000000 Binary files a/rubenfood/textures/ruben_mug.png and /dev/null differ diff --git a/rubenfood/textures/ruben_pastry.png b/rubenfood/textures/ruben_pastry.png deleted file mode 100644 index 2df203b..0000000 Binary files a/rubenfood/textures/ruben_pastry.png and /dev/null differ diff --git a/rubenfood/textures/ruben_pastry_choco.png b/rubenfood/textures/ruben_pastry_choco.png deleted file mode 100644 index 578637b..0000000 Binary files a/rubenfood/textures/ruben_pastry_choco.png and /dev/null differ diff --git a/rubenfood_animals/init.lua b/rubenfood_animals/init.lua deleted file mode 100644 index aa3cdf2..0000000 --- a/rubenfood_animals/init.lua +++ /dev/null @@ -1,2 +0,0 @@ -minetest.register_alias("rubenfood:milk","animalmaterials:milk") -minetest.register_alias("rubenfood:egg","animalmaterials:egg") \ No newline at end of file diff --git a/rubenfood_farming/init.lua b/rubenfood_farming/init.lua deleted file mode 100644 index ab5e489..0000000 --- a/rubenfood_farming/init.lua +++ /dev/null @@ -1 +0,0 @@ -minetest.register_alias("rubenfood:flour","farming:flour") \ No newline at end of file diff --git a/support.lua b/support.lua new file mode 100644 index 0000000..41d23fe --- /dev/null +++ b/support.lua @@ -0,0 +1,81 @@ +-- RUBENFOOD MOD +-- A mod written by rubenwardy that adds +-- food to the minetest game +-- ====================================== +-- >> rubenfood/support.lua +-- adds support for other mods +-- adds items and aliases that are needed +-- ====================================== +-- [support] +-- ====================================== + +print "RubenFood [Support] - Initialising" +function node_implement(modname,n_ext,n_int,resultfunc) + if not minetest.get_modpath(modname) then + resultfunc() + else + minetest.register_alias(n_int,n_ext) + end +end + + + + + + + +print "RubenFood [Support] - Farming Mod" +node_implement("farming","farming:flour","rubenfood:flour",function() + minetest.register_craftitem("rubenfood:flour", { + description = "Flour", + inventory_image = "farming_flour.png", +}) +end) + +node_implement("farming","farming:strawberry_item","rubenfood:strawberry",function() +minetest.register_craftitem("rubenfood:strawberry", { + description = "Strawberry", + inventory_image = "farming_strawberry.png", + on_use = minetest.item_eat(2), +}) +end) + + + + + +print "RubenFood [Support] - Animal Mod" +node_implement("animalmaterials","animalmaterials:glass","rubenfood:cup",function() + minetest.register_craftitem("rubenfood:cup",{ + description = "Glass", + tiles = {"ruben_cup.png"}, + inventory_image = "ruben_cup.png", +}) +end) + +node_implement("animalmaterials","animalmaterials:egg","rubenfood:egg",function() + minetest.register_craftitem("rubenfood:egg", { + description = "Egg", + image = "animalmaterials_egg.png", + stack_max=10 +}) +end) + +node_implement("animalmaterials","animalmaterials:milk","rubenfood:milk",function() + minetest.register_craftitem("rubenfood:milk", { + description = "Milk", + image = "animalmaterials_milk.png", + on_use = minetest.item_eat(1), + groups = { eatable=1 }, + stack_max=10 +}) +end) + + + + + + + + + diff --git a/textures/animalmaterials_egg.png b/textures/animalmaterials_egg.png new file mode 100644 index 0000000..50010de Binary files /dev/null and b/textures/animalmaterials_egg.png differ diff --git a/textures/animalmaterials_milk.png b/textures/animalmaterials_milk.png new file mode 100644 index 0000000..e535264 Binary files /dev/null and b/textures/animalmaterials_milk.png differ diff --git a/textures/farming_cake_mix.png b/textures/farming_cake_mix.png new file mode 100644 index 0000000..5c4b197 Binary files /dev/null and b/textures/farming_cake_mix.png differ diff --git a/textures/farming_flour.png b/textures/farming_flour.png new file mode 100644 index 0000000..7c302bf Binary files /dev/null and b/textures/farming_flour.png differ diff --git a/textures/farming_strawberry.png b/textures/farming_strawberry.png new file mode 100644 index 0000000..0a80f45 Binary files /dev/null and b/textures/farming_strawberry.png differ diff --git a/textures/ruben_bread.png b/textures/ruben_bread.png new file mode 100644 index 0000000..6dca983 Binary files /dev/null and b/textures/ruben_bread.png differ diff --git a/textures/ruben_cake.png b/textures/ruben_cake.png new file mode 100644 index 0000000..250303b Binary files /dev/null and b/textures/ruben_cake.png differ diff --git a/textures/ruben_cake_choco.png b/textures/ruben_cake_choco.png new file mode 100644 index 0000000..b75f8ed Binary files /dev/null and b/textures/ruben_cake_choco.png differ diff --git a/textures/ruben_cigar.png b/textures/ruben_cigar.png new file mode 100644 index 0000000..f2275ec Binary files /dev/null and b/textures/ruben_cigar.png differ diff --git a/textures/ruben_coffee.png b/textures/ruben_coffee.png new file mode 100644 index 0000000..944fd73 Binary files /dev/null and b/textures/ruben_coffee.png differ diff --git a/textures/ruben_coffee_cooked.png b/textures/ruben_coffee_cooked.png new file mode 100644 index 0000000..8f75897 Binary files /dev/null and b/textures/ruben_coffee_cooked.png differ diff --git a/textures/ruben_coffee_cup.png b/textures/ruben_coffee_cup.png new file mode 100644 index 0000000..272299a Binary files /dev/null and b/textures/ruben_coffee_cup.png differ diff --git a/textures/ruben_cup.png b/textures/ruben_cup.png new file mode 100644 index 0000000..9fadc0d Binary files /dev/null and b/textures/ruben_cup.png differ diff --git a/textures/ruben_juice_apple.png b/textures/ruben_juice_apple.png new file mode 100644 index 0000000..fc2b8ef Binary files /dev/null and b/textures/ruben_juice_apple.png differ diff --git a/textures/ruben_mug.png b/textures/ruben_mug.png new file mode 100644 index 0000000..f68173b Binary files /dev/null and b/textures/ruben_mug.png differ diff --git a/textures/ruben_pastry.png b/textures/ruben_pastry.png new file mode 100644 index 0000000..2df203b Binary files /dev/null and b/textures/ruben_pastry.png differ diff --git a/textures/ruben_pastry_choco.png b/textures/ruben_pastry_choco.png new file mode 100644 index 0000000..578637b Binary files /dev/null and b/textures/ruben_pastry_choco.png differ -- cgit v1.2.3