diff options
Diffstat (limited to 'rubenfood')
21 files changed, 377 insertions, 0 deletions
diff --git a/rubenfood/baking.lua b/rubenfood/baking.lua new file mode 100644 index 0000000..98da7ad --- /dev/null +++ b/rubenfood/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/rubenfood/cakes.lua b/rubenfood/cakes.lua new file mode 100644 index 0000000..09d1042 --- /dev/null +++ b/rubenfood/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/rubenfood/dairy.lua b/rubenfood/dairy.lua new file mode 100644 index 0000000..c0388a4 --- /dev/null +++ b/rubenfood/dairy.lua @@ -0,0 +1,21 @@ +-- 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 new file mode 100644 index 0000000..a916278 --- /dev/null +++ b/rubenfood/depends.txt @@ -0,0 +1,2 @@ +default
+bucket
\ No newline at end of file diff --git a/rubenfood/drinks.lua b/rubenfood/drinks.lua new file mode 100644 index 0000000..04d0ba5 --- /dev/null +++ b/rubenfood/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/rubenfood/fruits.lua b/rubenfood/fruits.lua new file mode 100644 index 0000000..ff7a2b0 --- /dev/null +++ b/rubenfood/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/rubenfood/init.lua b/rubenfood/init.lua new file mode 100644 index 0000000..ce0a043 --- /dev/null +++ b/rubenfood/init.lua @@ -0,0 +1,72 @@ +-- 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 Binary files differnew file mode 100644 index 0000000..50010de --- /dev/null +++ b/rubenfood/textures/animalmaterials_egg.png diff --git a/rubenfood/textures/animalmaterials_milk.png b/rubenfood/textures/animalmaterials_milk.png Binary files differnew file mode 100644 index 0000000..e535264 --- /dev/null +++ b/rubenfood/textures/animalmaterials_milk.png diff --git a/rubenfood/textures/ruben_bread.png b/rubenfood/textures/ruben_bread.png Binary files differnew file mode 100644 index 0000000..6dca983 --- /dev/null +++ b/rubenfood/textures/ruben_bread.png diff --git a/rubenfood/textures/ruben_cake.png b/rubenfood/textures/ruben_cake.png Binary files differnew file mode 100644 index 0000000..250303b --- /dev/null +++ b/rubenfood/textures/ruben_cake.png diff --git a/rubenfood/textures/ruben_cake_choco.png b/rubenfood/textures/ruben_cake_choco.png Binary files differnew file mode 100644 index 0000000..b75f8ed --- /dev/null +++ b/rubenfood/textures/ruben_cake_choco.png diff --git a/rubenfood/textures/ruben_cigar.png b/rubenfood/textures/ruben_cigar.png Binary files differnew file mode 100644 index 0000000..f2275ec --- /dev/null +++ b/rubenfood/textures/ruben_cigar.png diff --git a/rubenfood/textures/ruben_coffee.png b/rubenfood/textures/ruben_coffee.png Binary files differnew file mode 100644 index 0000000..944fd73 --- /dev/null +++ b/rubenfood/textures/ruben_coffee.png diff --git a/rubenfood/textures/ruben_coffee_cooked.png b/rubenfood/textures/ruben_coffee_cooked.png Binary files differnew file mode 100644 index 0000000..8f75897 --- /dev/null +++ b/rubenfood/textures/ruben_coffee_cooked.png diff --git a/rubenfood/textures/ruben_coffee_cup.png b/rubenfood/textures/ruben_coffee_cup.png Binary files differnew file mode 100644 index 0000000..272299a --- /dev/null +++ b/rubenfood/textures/ruben_coffee_cup.png diff --git a/rubenfood/textures/ruben_cup.png b/rubenfood/textures/ruben_cup.png Binary files differnew file mode 100644 index 0000000..9fadc0d --- /dev/null +++ b/rubenfood/textures/ruben_cup.png diff --git a/rubenfood/textures/ruben_juice_apple.png b/rubenfood/textures/ruben_juice_apple.png Binary files differnew file mode 100644 index 0000000..fc2b8ef --- /dev/null +++ b/rubenfood/textures/ruben_juice_apple.png diff --git a/rubenfood/textures/ruben_mug.png b/rubenfood/textures/ruben_mug.png Binary files differnew file mode 100644 index 0000000..f68173b --- /dev/null +++ b/rubenfood/textures/ruben_mug.png diff --git a/rubenfood/textures/ruben_pastry.png b/rubenfood/textures/ruben_pastry.png Binary files differnew file mode 100644 index 0000000..2df203b --- /dev/null +++ b/rubenfood/textures/ruben_pastry.png diff --git a/rubenfood/textures/ruben_pastry_choco.png b/rubenfood/textures/ruben_pastry_choco.png Binary files differnew file mode 100644 index 0000000..578637b --- /dev/null +++ b/rubenfood/textures/ruben_pastry_choco.png |