diff options
author | Rubenwardy <anjayward@gmail.com> | 2012-08-31 14:09:41 +0100 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2012-08-31 14:09:41 +0100 |
commit | ba2dbaf4665a88d4c58b73a79bd774ed423fe318 (patch) | |
tree | 54b8792c8e2bb4130c1f3413e7bda666ffd62c22 /cakes.lua | |
parent | 39b6184a874bbb69af88a2013eb7596770dc8bb9 (diff) |
Did support.lua - dynamic external mod support
Diffstat (limited to 'cakes.lua')
-rw-r--r-- | cakes.lua | 85 |
1 files changed, 85 insertions, 0 deletions
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 |