From 54708f4179115056225b32ef9e3d4cfb9efaafe3 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 25 Aug 2014 18:44:26 -0400 Subject: [PATCH] add inventory images to chains mod also some basic code style fixes: spaces/tabs, tiles/tile_images, etc. --- chains/init.lua | 78 ++++++++++++++++------------- chains/textures/Chain_top_inv.png | Bin 0 -> 319 bytes chains/textures/Chandelier_inv.png | Bin 0 -> 576 bytes 3 files changed, 43 insertions(+), 35 deletions(-) create mode 100644 chains/textures/Chain_top_inv.png create mode 100644 chains/textures/Chandelier_inv.png diff --git a/chains/init.lua b/chains/init.lua index 755019b5..40ba1114 100644 --- a/chains/init.lua +++ b/chains/init.lua @@ -1,43 +1,49 @@ print("[Chains] v1.1") minetest.register_node("chains:chain", { - description = "Chain", - walkable = false, - climbable = true, - sunlight_propagates = true, - paramtype = "light", - drops = "", - tile_images = { "Chain.png" }, - drawtype = "plantlike", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), - }) + description = "Hanging chain", + walkable = false, + climbable = true, + sunlight_propagates = true, + paramtype = "light", + drops = "", + tiles = { "Chain.png" }, + inventory_image = "Chain.png", + drawtype = "plantlike", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_node("chains:chain_top", { - description = "Chain Top", - walkable = false, - climbable = true, - sunlight_propagates = true, - paramtype = "light", - drops = "", - tile_images = { "Chain_top.png" }, - drawtype = "plantlike", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), - }) + description = "Hanging chain (ceiling mount)", + walkable = false, + climbable = true, + sunlight_propagates = true, + paramtype = "light", + drops = "", + tiles = { "Chain_top.png" }, + inventory_image = "Chain_top_inv.png", + drawtype = "plantlike", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_node("chains:chandelier", { - description = "Chandelier", - paramtype = "light", - walkable = false, - light_source = LIGHT_MAX-2, - climbable = true, - sunlight_propagates = true, - paramtype = "light", - drops = "", - tile_images = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}}, - drawtype = "plantlike", - groups = {cracky=3}, - sounds = default.node_sound_stone_defaults(), - }) + description = "Chandelier", + paramtype = "light", + walkable = false, + light_source = LIGHT_MAX-2, + climbable = true, + sunlight_propagates = true, + paramtype = "light", + drops = "", + tiles = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}}, + inventory_image = "Chandelier_inv.png", + drawtype = "plantlike", + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_craft({ output = 'chains:chain 2', recipe = { @@ -46,6 +52,7 @@ minetest.register_craft({ {'homedecor:chainlink_steel'}, } }) + minetest.register_craft({ output = 'chains:chain_top', recipe = { @@ -53,6 +60,7 @@ minetest.register_craft({ {'homedecor:chainlink_steel'}, }, }) + minetest.register_craft({ output = 'chains:chandelier', recipe = { diff --git a/chains/textures/Chain_top_inv.png b/chains/textures/Chain_top_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..5cd95379f0bea019f7881a6dbd763664e6c01bfc GIT binary patch literal 319 zcmV-F0l@x=P)G+G+8wDAN&Ag$P@5XGNXJc5f(rYpXYq&u zooZobcG>TQ50Yh>c%H{F44CH`m&*k#%OXwF)Bo)G(}HDL&@>IM*DI>3f*=T(rU|=b zSr+}xwr$f^?!0BRZHwFOMs;0-VHg~e@B5^xDt*iRY#Gnzlkz-A*L5%qgLYq!<9IEl zX}X_5S(easoj8ue`~5z~AP537P4gIo$KyeQAfWI2uP4^9WLXBwvS=6vNRqU9=oiWjZo@qE R=7<0Q002ovPDHLkV1iZ5i^Tu{ literal 0 HcmV?d00001 diff --git a/chains/textures/Chandelier_inv.png b/chains/textures/Chandelier_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..99ba69ed5bdee54f77461f567e848b8860d9ec15 GIT binary patch literal 576 zcmV-G0>Ax}tvb5v~al4gEN#Tx@tEx(sN(G%x2db*}tU!db04;R|-s&njfD@Kw z!7vPF7zV4?>jPbGZ>|&fv67)5pBtE*7uEpw(jfzZ03wkH^-t$dF6ay}$ESR2uWsDC z%T=pYSeAuvuRkO}wCWUQG8yLc`CwTVipAo;8=O7@F!snLcmTq2?n3+_1Axi-6FL~G z&T#;s-EPC<@$}eUICqQjXIAv>Pdk`6Hg}PglC$ye`}gVN;4mFp#9ZP50{}%)$hK`X z8V!h|h-@~?0HARF3fUW*IJkTmk=q-Lo4ORzCtPEg4lUx#^A`zclH2V@KA&gha+x)o z&8~yXH=nTs=Z~V*YN4`zm0Z`JnAqC-iRE8o$o_o}0NCAR+jh?y_uuSbX66*$eLeIC zkR)l(tID!W!C;V5sT9ewJdhs>D2hUgqI7dflBk~__!#|-{UJ%x9{x9`lF#Gf25>R} O0000