From 46abeee7946098712c965419f3b00c071ada34ae Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Wed, 29 Aug 2012 19:47:01 +0100 Subject: Made Rubenfood more compatible --- rubenfood/cakemix.lua | 18 +++ rubenfood/cakes.lua | 52 +++++++++ rubenfood/drinks.lua | 116 ++++++++++++++++++++ rubenfood/fruits.lua | 15 +++ rubenfood/init - Copy (2).lua | 111 ------------------- rubenfood/init - Copy.lua | 80 -------------- rubenfood/init.lua | 176 ------------------------------ rubenfood/textures/farming_bread.png | Bin 0 -> 918 bytes rubenfood/textures/ruben_cake.png | Bin 0 -> 908 bytes rubenfood/textures/ruben_cake_choco.png | Bin 0 -> 942 bytes rubenfood/textures/ruben_cigar.png | Bin 696 -> 696 bytes rubenfood/textures/ruben_juice_apple.png | Bin 1118 -> 1114 bytes rubenfood/textures/ruben_pastry.png | Bin 0 -> 807 bytes rubenfood/textures/ruben_pastry_choco.png | Bin 0 -> 854 bytes 14 files changed, 201 insertions(+), 367 deletions(-) create mode 100644 rubenfood/cakemix.lua create mode 100644 rubenfood/cakes.lua create mode 100644 rubenfood/drinks.lua create mode 100644 rubenfood/fruits.lua delete mode 100644 rubenfood/init - Copy (2).lua delete mode 100644 rubenfood/init - Copy.lua create mode 100644 rubenfood/textures/farming_bread.png create mode 100644 rubenfood/textures/ruben_cake.png create mode 100644 rubenfood/textures/ruben_cake_choco.png create mode 100644 rubenfood/textures/ruben_pastry.png create mode 100644 rubenfood/textures/ruben_pastry_choco.png (limited to 'rubenfood') diff --git a/rubenfood/cakemix.lua b/rubenfood/cakemix.lua new file mode 100644 index 0000000..d95524a --- /dev/null +++ b/rubenfood/cakemix.lua @@ -0,0 +1,18 @@ +-- 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"'}, + } +}) + +minetest.register_craft({ + output = '"rubenfood:cakemix_choco" 1', + recipe = { + {'""','"default:dirt"','""'}, {'"rubenfood:wheat"','"rubenfood:milk"','"rubenfood:egg"'}, + } +}) \ No newline at end of file diff --git a/rubenfood/cakes.lua b/rubenfood/cakes.lua new file mode 100644 index 0000000..f7a161d --- /dev/null +++ b/rubenfood/cakes.lua @@ -0,0 +1,52 @@ +--------------------------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(), +}) \ No newline at end of file diff --git a/rubenfood/drinks.lua b/rubenfood/drinks.lua new file mode 100644 index 0000000..c9d7bc2 --- /dev/null +++ b/rubenfood/drinks.lua @@ -0,0 +1,116 @@ +--------------------------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"','""'}, + } +}) + + + + + +----------------------cactuz 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 new file mode 100644 index 0000000..0bbdb39 --- /dev/null +++ b/rubenfood/fruits.lua @@ -0,0 +1,15 @@ +-- This file adds apple like 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 - Copy (2).lua b/rubenfood/init - Copy (2).lua deleted file mode 100644 index 6d0db96..0000000 --- a/rubenfood/init - Copy (2).lua +++ /dev/null @@ -1,111 +0,0 @@ --- This file registers all the foods - -print ("RubenFood: Loading basic foods") - - ---------------------------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"','""'}, - {'""','"bucket:bucket_water"','""'}, - } -}) - - - - - -----------------------------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"'}, - - } -}) - - - - - ------------------------------Coffee----------------------------- - -minetest.register_craftitem(":rubenfood:coffeebean",{ - description = "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"','""'}, - {'""','"bucket:bucket_water"','""'}, - } -}) - -minetest.register_craft({ - type = "cooking", - output = "rubenfood:coffeebean_cooked", - recipe = "rubenfood:coffeebean", -}) \ No newline at end of file diff --git a/rubenfood/init - Copy.lua b/rubenfood/init - Copy.lua deleted file mode 100644 index 9f02977..0000000 --- a/rubenfood/init - Copy.lua +++ /dev/null @@ -1,80 +0,0 @@ --- This file registers all the foods - --- 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"','""'}, - {'""','"bucket:bucket_water"','""'}, - } -}) - - - - - --- 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"'}, - - } -}) - - - - - ---Coffee -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:coffee" 1', - recipe = { - {'""','"default:dry_shrub"','""'}, - {'""','"default:dry_shrub"','""'}, - {'""','"bucket:bucket_water"','""'}, - } -}) \ No newline at end of file diff --git a/rubenfood/init.lua b/rubenfood/init.lua index dda01eb..e45beca 100644 --- a/rubenfood/init.lua +++ b/rubenfood/init.lua @@ -17,66 +17,6 @@ minetest.register_craft({ }) ---------------------------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"','""'}, - } -}) - - - - - - - - -----------------------cactuz 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"','""'}, - } -}) - - - - - ----------------------------Cigerete---------------------------- minetest.register_node(":rubenfood:cigarette", { description = "Cigarette", @@ -100,120 +40,4 @@ minetest.register_craft({ } }) - - - - ------------------------------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", -}) - - - - - - ---------------------------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(), -}) - - - print("Rubenfood: Mainframe loaded") \ No newline at end of file diff --git a/rubenfood/textures/farming_bread.png b/rubenfood/textures/farming_bread.png new file mode 100644 index 0000000..6dca983 Binary files /dev/null and b/rubenfood/textures/farming_bread.png differ diff --git a/rubenfood/textures/ruben_cake.png b/rubenfood/textures/ruben_cake.png new file mode 100644 index 0000000..250303b Binary files /dev/null and b/rubenfood/textures/ruben_cake.png differ diff --git a/rubenfood/textures/ruben_cake_choco.png b/rubenfood/textures/ruben_cake_choco.png new file mode 100644 index 0000000..b75f8ed Binary files /dev/null and b/rubenfood/textures/ruben_cake_choco.png differ diff --git a/rubenfood/textures/ruben_cigar.png b/rubenfood/textures/ruben_cigar.png index 519a20d..35ed4de 100644 Binary files a/rubenfood/textures/ruben_cigar.png and b/rubenfood/textures/ruben_cigar.png differ diff --git a/rubenfood/textures/ruben_juice_apple.png b/rubenfood/textures/ruben_juice_apple.png index 3734978..9a71e03 100644 Binary files a/rubenfood/textures/ruben_juice_apple.png and b/rubenfood/textures/ruben_juice_apple.png differ diff --git a/rubenfood/textures/ruben_pastry.png b/rubenfood/textures/ruben_pastry.png new file mode 100644 index 0000000..2115934 Binary files /dev/null and b/rubenfood/textures/ruben_pastry.png differ diff --git a/rubenfood/textures/ruben_pastry_choco.png b/rubenfood/textures/ruben_pastry_choco.png new file mode 100644 index 0000000..578637b Binary files /dev/null and b/rubenfood/textures/ruben_pastry_choco.png differ -- cgit v1.2.3