summaryrefslogtreecommitdiff
path: root/cakes.lua
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-08-31 14:56:59 +0100
committerRubenwardy <anjayward@gmail.com>2012-08-31 14:56:59 +0100
commit6bd71003a2fbd3a1820eb3e37ffb7c5db7b12325 (patch)
tree1cfcb4e5c2396138ead1d803b3113f9d644b2bd3 /cakes.lua
parentba2dbaf4665a88d4c58b73a79bd774ed423fe318 (diff)
Added Textures and Tarts
Diffstat (limited to 'cakes.lua')
-rw-r--r--cakes.lua24
1 files changed, 4 insertions, 20 deletions
diff --git a/cakes.lua b/cakes.lua
index 09d1042..4a4b772 100644
--- a/cakes.lua
+++ b/cakes.lua
@@ -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