From 3cb1bcca7cf2c5ddc394042bf52447db1ca18cac Mon Sep 17 00:00:00 2001 From: sda97ghb Date: Mon, 29 Jul 2013 11:29:21 +0600 Subject: [PATCH] Added bowl and bowl with coals(light source) --- mods/decorations/init.lua | 72 +++++++++++++++++- .../textures/decorations_cinnabar_coals.png | Bin 738 -> 1909 bytes 2 files changed, 68 insertions(+), 4 deletions(-) diff --git a/mods/decorations/init.lua b/mods/decorations/init.lua index 9bdd65f..b9e81e7 100644 --- a/mods/decorations/init.lua +++ b/mods/decorations/init.lua @@ -281,8 +281,27 @@ for _, mineral in ipairs(decor_minerals) do sounds = default.node_sound_stone_defaults(), }) - minetest.register_node("decorations:"..mineral[1].."_vase_with_coals", { - description = mineral[2].." Vase With Coals", + minetest.register_node("decorations:"..mineral[1].."_bowl", { + description = mineral[2].." Bowl", + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.35, -0.5, -0.4, 0, 0.5}, + {-0.5, -0.35, 0.4, 0.5, 0, 0.5}, + {-0.5, -0.35, -0.5, 0.5, 0, -0.4}, + {0.4, -0.35, -0.5, 0.5, 0, 0.5}, + {-0.4, -0.5, -0.4, 0.4, -0.35, 0.4}, + }, + }, + tiles = {"decorations_"..mineral[1]..".png"}, + groups = {cracky=3, oddly_breakable_by_hand = 2}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_node("decorations:"..mineral[1].."_bowl_with_coals", { + description = mineral[2].." Bowl With Coals", drawtype = "nodebox", paramtype = "light", light_source = 14, @@ -303,8 +322,6 @@ for _, mineral in ipairs(decor_minerals) do sounds = default.node_sound_stone_defaults(), }) - - minetest.register_craft({ output = "decorations:"..mineral[1].."_casket", recipe = { @@ -385,6 +402,53 @@ for _, mineral in ipairs(decor_minerals) do {"","minerals:"..mineral[1],""}, } }) + minetest.register_craft({ + output = "decorations:"..mineral[1].."_bowl", + recipe = { + {"minerals:"..mineral[1],"","minerals:"..mineral[1]}, + {"","minerals:"..mineral[1],""}, + } + }) + + minetest.register_craft({ + output = "decorations:"..mineral[1].."_bowl_with_coals", + recipe = { + {"minerals:charcoal"}, + {"decorations:"..mineral[1].."_bowl"}, + } + }) + + minetest.register_craft({ + output = "decorations:"..mineral[1].."_bowl_with_coals", + recipe = { + {"minerals:charcoal"}, + {"decorations:"..mineral[1].."_bowl"}, + } + }) + + minetest.register_craft({ + output = "decorations:"..mineral[1].."_bowl_with_coals", + recipe = { + {"minerals:bituminous_coal"}, + {"decorations:"..mineral[1].."_bowl"}, + } + }) + + minetest.register_craft({ + output = "decorations:"..mineral[1].."_bowl_with_coals", + recipe = { + {"minerals:lignite"}, + {"decorations:"..mineral[1].."_bowl"}, + } + }) + + minetest.register_craft({ + output = "decorations:"..mineral[1].."_bowl_with_coals", + recipe = { + {"minerals:anthracite"}, + {"decorations:"..mineral[1].."_bowl"}, + } + }) end for i, tree_name in ipairs(realtest.registered_trees_list) do diff --git a/mods/decorations/textures/decorations_cinnabar_coals.png b/mods/decorations/textures/decorations_cinnabar_coals.png index f929b7dc3afbc61f636e1e77284813e47a197535..31f0e9125dbaabbac0bf8764400f8ba6a1a2339e 100644 GIT binary patch delta 1853 zcmV-D2g3N`1@#V)Dlz{6{{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G` z2i*r91p*B?Ybw`~TPJ@8-AP12R9M69*4>X>WdX$*4=xU*>w|t zdHHv&t}aj!ic4yBdR8;NZ6~v@A7JiWoAs_?`{a65!}AEn>I_bIsg$dnId%-Kt2k+d zwFLv2;%0_C93XVg)=eAeww4Kk2G;s0ugK`Fo#pPs3+(YcwAQp2PLW&7hIX4}DQS!2 z3|*IvZ_l${O8$Qu$NXaEYD{MtWz8C6m4GYCWgZy}SdL>}8w}W2sc?8|3THUPSc`C7 z?g>N2!;ogVj7x?|d#G0PG}ZA-xLhfY07o2$yeN=Ta!a?%PT*&*OIj41jv`(zl@Mu4 z9QGMdpp?|aLa=BI&-p%So^z;H{H9*#fVKEi@?fjQ`aEYE_)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