diff options
author | Rubenwardy <anjayward@gmail.com> | 2012-08-31 14:56:59 +0100 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2012-08-31 14:56:59 +0100 |
commit | 6bd71003a2fbd3a1820eb3e37ffb7c5db7b12325 (patch) | |
tree | 1cfcb4e5c2396138ead1d803b3113f9d644b2bd3 | |
parent | ba2dbaf4665a88d4c58b73a79bd774ed423fe318 (diff) |
Added Textures and Tarts
-rw-r--r-- | cakes.lua | 24 | ||||
-rw-r--r-- | dairy.lua | 27 | ||||
-rw-r--r-- | drinks.lua | 6 | ||||
-rw-r--r-- | init.lua | 4 | ||||
-rw-r--r-- | support.lua | 1 | ||||
-rw-r--r-- | tarts.lua | 52 | ||||
-rw-r--r-- | textures/ruben_butter.png | bin | 0 -> 506 bytes | |||
-rw-r--r-- | textures/ruben_cheese.png | bin | 0 -> 518 bytes | |||
-rw-r--r-- | textures/ruben_juice_cactuz.png | bin | 0 -> 867 bytes | |||
-rw-r--r-- | textures/ruben_tart_base.png | bin | 0 -> 521 bytes | |||
-rw-r--r-- | textures/ruben_tart_base_raw.png | bin | 0 -> 521 bytes | |||
-rw-r--r-- | textures/ruben_tart_strawberry.png | bin | 0 -> 548 bytes |
12 files changed, 87 insertions, 27 deletions
@@ -35,32 +35,16 @@ minetest.register_craft({ recipe = "rubenfood:cakemix_choco",
})
-minetest.register_node("rubenfood:cake", {
+minetest.register_craftitem("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", {
+minetest.register_craftitem("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(),
})
@@ -73,13 +57,13 @@ minetest.register_node("rubenfood:cake_chocolate", { minetest.register_craft({
output = '"rubenfood:cakemix_plain" 1',
recipe = {
- {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
+ {'"rubenfood:flour"',"",'"rubenfood:egg"'},
}
})
minetest.register_craft({
output = '"rubenfood:cakemix_choco" 1',
recipe = {
- {'""','"default:dirt"','""'}, {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
+ {'""','"default:dirt"','""'}, {'"rubenfood:flour"',"",'"rubenfood:egg"'},
}
})
\ No newline at end of file @@ -2,7 +2,7 @@ -- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
--- >> rubenfood/support.lua
+-- >> rubenfood/diary.lua
-- adds diary products
-- ======================================
-- [regis-food] Cheese
@@ -11,6 +11,31 @@ -- [craft] Butter
-- ======================================
+minetest.register_craftitem("rubenfood:butter", {
+ description = "Butter",
+ inventory_image = "ruben_butter.png",
+})
+
+minetest.register_craftitem("rubenfood:cheese", {
+ description = "Cheese",
+ inventory_image = "ruben_cheese.png",
+ on_use = minetest.item_eat(4),
+})
+
+minetest.register_craft({
+ output = '"rubenfood:butter" 1',
+ recipe = {
+ {'"rubenfood:milk"','"rubenfood:milk"'},
+ }
+})
+
+minetest.register_craft({
+ output = '"rubenfood:cheese" 1',
+ recipe = {
+ {'"rubenfood:butter"','"rubenfood:butter"'},
+ }
+})
+
@@ -16,7 +16,7 @@ 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",
@@ -44,7 +44,7 @@ minetest.register_craft({ ----------------------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",
@@ -90,7 +90,7 @@ minetest.register_craftitem(":rubenfood:coffeebean_cooked",{ minetest.register_node(":rubenfood:coffee", {
description = "Coffee",
- drawtype = "plantlike",
+
visual_scale = 1.0,
tiles = {"ruben_coffee_cup.png"},
inventory_image = "ruben_coffee_cup.png",
@@ -18,9 +18,10 @@ 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").."/tarts.lua")
dofile(minetest.get_modpath("rubenfood").."/drinks.lua")
-dofile(minetest.get_modpath("rubenfood").."/fruits.lua")
+--dofile(minetest.get_modpath("rubenfood").."/fruits.lua")
@@ -44,7 +45,6 @@ minetest.register_craft({ ----------------------------Cigerete----------------------------
minetest.register_node(":rubenfood:cigarette", {
description = "Cigarette",
- drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"ruben_cigar.png"},
inventory_image = "ruben_cigar.png",
diff --git a/support.lua b/support.lua index 41d23fe..fe6022f 100644 --- a/support.lua +++ b/support.lua @@ -4,7 +4,6 @@ -- ======================================
-- >> rubenfood/support.lua
-- adds support for other mods
--- adds items and aliases that are needed
-- ======================================
-- [support]
-- ======================================
diff --git a/tarts.lua b/tarts.lua new file mode 100644 index 0000000..14662cc --- /dev/null +++ b/tarts.lua @@ -0,0 +1,52 @@ +-- RUBENFOOD MOD
+-- A mod written by rubenwardy that adds
+-- food to the minetest game
+-- ======================================
+-- >> rubenfood/tarts.lua
+-- adds diary products
+-- ======================================
+-- [regis-food] Strawberry Tart
+-- ======================================
+
+print "RubenFood [Master] - Loading Tarts"
+
+minetest.register_craftitem("rubenfood:tart_strawberry", {
+ description = "Strawberry Tart",
+ inventory_image = "ruben_tart_strawberry.png",
+ on_use = minetest.item_eat(30),
+})
+
+minetest.register_craftitem("rubenfood:tart_base", {
+ description = "Tart Base",
+ inventory_image = "ruben_tart_base.png",
+})
+
+minetest.register_craftitem("rubenfood:tart_base_raw", {
+ description = "Raw Tart Base",
+ inventory_image = "ruben_tart_base_raw.png",
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "rubenfood:tart_base",
+ recipe = "rubenfood:tart_base_raw",
+})
+
+minetest.register_craft({
+ output = '"rubenfood:tart_strawberry" 1',
+ recipe = {
+ {'"rubenfood:strawberry"'},{'"rubenfood:tart_base"'},
+ }
+})
+
+minetest.register_craft({
+ output = '"rubenfood:tart_base_raw" 1',
+ recipe = {
+ {'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
+ }
+})
+
+
+
+
+
diff --git a/textures/ruben_butter.png b/textures/ruben_butter.png Binary files differnew file mode 100644 index 0000000..97ea805 --- /dev/null +++ b/textures/ruben_butter.png diff --git a/textures/ruben_cheese.png b/textures/ruben_cheese.png Binary files differnew file mode 100644 index 0000000..aef8b59 --- /dev/null +++ b/textures/ruben_cheese.png diff --git a/textures/ruben_juice_cactuz.png b/textures/ruben_juice_cactuz.png Binary files differnew file mode 100644 index 0000000..6180eed --- /dev/null +++ b/textures/ruben_juice_cactuz.png diff --git a/textures/ruben_tart_base.png b/textures/ruben_tart_base.png Binary files differnew file mode 100644 index 0000000..43e056d --- /dev/null +++ b/textures/ruben_tart_base.png diff --git a/textures/ruben_tart_base_raw.png b/textures/ruben_tart_base_raw.png Binary files differnew file mode 100644 index 0000000..e6d1ac4 --- /dev/null +++ b/textures/ruben_tart_base_raw.png diff --git a/textures/ruben_tart_strawberry.png b/textures/ruben_tart_strawberry.png Binary files differnew file mode 100644 index 0000000..6fcfa99 --- /dev/null +++ b/textures/ruben_tart_strawberry.png |