From 9382558d822d9398626b39706fde385507e790c5 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 10 Mar 2017 22:30:36 -0500 Subject: [PATCH] add insulated cable clip/mount (purely decorative, uses colorwallmounted mode) --- extranodes/depends.txt | 1 + extranodes/init.lua | 14 ++++++++++++++ extranodes/textures/technic_insulator_clip.png | Bin 0 -> 226 bytes 3 files changed, 15 insertions(+) create mode 100644 extranodes/textures/technic_insulator_clip.png diff --git a/extranodes/depends.txt b/extranodes/depends.txt index 6335bfd..3f123b0 100644 --- a/extranodes/depends.txt +++ b/extranodes/depends.txt @@ -1,5 +1,6 @@ default technic_worldgen concrete +unifieddyes intllib? moreblocks? diff --git a/extranodes/init.lua b/extranodes/init.lua index 22a1d9f..4359c8b 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -101,3 +101,17 @@ if minetest.get_modpath("moreblocks") then register_technic_stairs_alias("stairsplus", "marble_bricks", "technic", "marble_bricks") end + +minetest.register_node(":technic:insulator_clip", { + description = "Insulator/cable clip", + drawtype = "mesh", + mesh = "technic_insulator_clip.obj", + tiles = {"technic_insulator_clip.png"}, + is_ground_content = false, + groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, ud_param2_colorable = 1}, + sounds = default.node_sound_stone_defaults(), + paramtype2 = "colorwallmounted", + palette = "unifieddyes_palette_colorwallmounted.png", + after_place_node = unifieddyes.fix_rotation, + after_dig_node = unifieddyes.after_dig_node, +}) diff --git a/extranodes/textures/technic_insulator_clip.png b/extranodes/textures/technic_insulator_clip.png new file mode 100644 index 0000000000000000000000000000000000000000..44cdc6ae4ea8e7f0a8b1a092cd7913e0e6a25283 GIT binary patch literal 226 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx*Bp9q_EZ7UAR(iTPhDcmyJs6nfY{+wWWpf6TX`dflcok~vm#{c{*7XI=2Y8bT ZuiIN?6y!KDb-e^R-qY33Wt~$(69Bn)Sb_im literal 0 HcmV?d00001