From 00587ac8db1fad2a05952c822ac498cd20c70bf6 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sun, 5 Jun 2016 19:55:53 +0200 Subject: [PATCH] Add a pylon. Improvements are welcome. --- depends.txt | 1 + streets_roadwork/init.lua | 30 ++++++++++++++++++++++++ textures/streets_roadwork_pylon.png | Bin 0 -> 563 bytes textures/streets_roadwork_pylon_top.png | Bin 0 -> 196 bytes 4 files changed, 31 insertions(+) create mode 100644 textures/streets_roadwork_pylon.png create mode 100644 textures/streets_roadwork_pylon_top.png diff --git a/depends.txt b/depends.txt index e903c90..328c64d 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,5 @@ default +dye stairs xpanes stairsplus? diff --git a/streets_roadwork/init.lua b/streets_roadwork/init.lua index 7cc76db..1c5545d 100644 --- a/streets_roadwork/init.lua +++ b/streets_roadwork/init.lua @@ -67,6 +67,36 @@ minetest.register_craft({ }) +-- Pylon + + +minetest.register_node("streets:roadwork_pylon", { + description = "Pylon", + paramtype = "light", + drawtype = "nodebox", + tiles = {"streets_roadwork_pylon_top.png", "streets_roadwork_pylon_top.png", "streets_roadwork_pylon.png"}, + sunlight_propagates = true, + groups = {cracky = 1}, + node_box = { + type = "fixed", + fixed = { + {-0.375, -0.5, -0.125, 0.375, -0.4375, 0.125}, + {-0.125, -0.5, -0.375, 0.125, -0.4375, 0.375}, + {-0.25, -0.5, 0, 0.25, 0.0625, 0}, + {0, -0.5, -0.25, 0, 0.0625, 0.25}, + } + } +}) + +minetest.register_craft({ + output = "streets:roadwork_pylon 3", + recipe = { + {"dye:orange", "", "dye:orange"}, + {"dye:white", "default:stick", "dye:white"}, + {"dye:orange", "default:steel_ingot", "dye:orange"}, + } +}) + -- Blinking Light minetest.register_node("streets:roadwork_blinking_light_off", { diff --git a/textures/streets_roadwork_pylon.png b/textures/streets_roadwork_pylon.png new file mode 100644 index 0000000000000000000000000000000000000000..83fd0efe15fe1135eff86598dae9f545b52ccdad GIT binary patch literal 563 zcmV-30?hr1P)JY z0A>feN^JlD010qNS#tmY3ljhU3ljkVnw%H_000McNliru;06T|E-Xeh7&rg`02y>e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00EmxL_t(I%XN~!ZreZ%#($(v zvLm2EJqR5Wbn}ZTbJ3xLJN6L@6tc(kozl^}0T&QpS$|H)4oagqmI)BVk;jkZM~W?% zc!_a!#f6A~rkHkkRpPc~FoVfU#7pag6%B$_^_=^fq%)NCH0Ih`(-5?xnv z5~1&%gAV{aef|yk+5oc+bX}MQxdMpX8`t3(@-+ZSqS$cRu1gFz*S>Aw@7JSMRYjI% zR8?i=?m-?81zp>dEMfqBC-VRRZ<5KfY`iTOUGwnXQRZ97*LJ^qfPBqr8pD3Be#zru zTxWQhUxI^Hm1R4O2;T+3$k!7GlNElv@Q@_n9M}gimg9wO;CMXRe!sU{);5fP(*$#% z{YmLQ`kS-QaWT%Ic<+#ou@m`rv+a5N<&Ok2{sBpu^b1RFeTx79002ovPDHLkV1gtM B>LUOE literal 0 HcmV?d00001 diff --git a/textures/streets_roadwork_pylon_top.png b/textures/streets_roadwork_pylon_top.png new file mode 100644 index 0000000000000000000000000000000000000000..03165ce2f55f594141d52a0a403f2a892fb1a5b1 GIT binary patch literal 196 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE(~cP$iB-f7bwD6;1OBO zz`!jG!i)^F=12eq*-JcqUD+S7u?iaStdwHc2MS4+xJHyX=jZ08=9Mrw7o{eaq^2m8 zXO?6rxO@5rgg5eu0~P6bx;TbdoKF5@@A%pN@axw+Jd0-WJh|XAB_mDXYD&T)m(MG> h-C_-1F=_2$V94Cdv_dxSX&z7?gQu&X%Q~loCIHK9HGlvB literal 0 HcmV?d00001