From e74f54c3424c4ad2762284372263492aa1d0d51e Mon Sep 17 00:00:00 2001 From: addi Date: Sat, 23 Jul 2016 06:35:59 +0200 Subject: [PATCH] Add Steel sign --- development/arrow_signs_steel.xcf | Bin 0 -> 5788 bytes init.lua | 2 ++ steel.lua | 44 ++++++++++++++++++++++++++ textures/arrow_signs_steel.png | Bin 0 -> 220 bytes textures/arrow_signs_steel_border.png | Bin 0 -> 151 bytes 5 files changed, 46 insertions(+) create mode 100644 development/arrow_signs_steel.xcf create mode 100644 steel.lua create mode 100644 textures/arrow_signs_steel.png create mode 100644 textures/arrow_signs_steel_border.png diff --git a/development/arrow_signs_steel.xcf b/development/arrow_signs_steel.xcf new file mode 100644 index 0000000000000000000000000000000000000000..7e29bd41138316e7ca2cda3efe1e04cc89a5a5fb GIT binary patch literal 5788 zcmeI0cU)A*_Q2=fZS1m3+XVqBi*#^l(h=!RFd!lbQDNC#mKCqM!rw;(_61-Cd91cq& z6;Her2UU@n#0W%U6gD9g$))iT!OR88DNND;Kmi#Lfhz!Pj!ZIVUU&k02Z#y_ValKp z#^VLH@$3q~S^^hYk#S7sxc>io)8$B{ayX_q=rDuJlW`zdLC(&TOECQ~WJY=x#wa#E zh7@)XvLVL&F`hnZGsb}!bA=)46PO%@G#BHsZ3hql1!%)v$OxDLOJE0Bzzui-KM)AQz-$l;5=896*jD zr;+o>kH{V50rETY3dNyRl!2O}HmEb|jRv97Xac$j<)b-h0a}GFN7tiG=x($FJ&K+| zFQbF#Lv#cOaGE#+oCS`B^TvhXVsRK5xd!ZRX~Xh5_jdJ!Xu$;2hZLgF&wX5t=V5Ai(lE^&lJA{mh!N&ci*5}PC^ z)sQxjc9V{fE|7*uFElhY%r)FJ!ZlJfL>d(u4H_zq!x|Sf?rFRx>yWL*Tl0aEPDW|Nbv{8;zZc?6VYHCi?^wFHFDbOs_T(9|!<|)lP znlGt(R0nDZbs<$jT~6Ia?V)QRjfpRhyTJN^iT~F}=HV9Nm&0Lg&yc={xAh=|c=6!A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aP;g4k7+kQQ z%QD3hW>iQBbJ8IWdnEu`0r2QBIjz=#N=&dk&VVhIit|!o<|dM*%H%v=wv$A}hZXR2 zH<^}#l;eJaYb{iL<11i6o6Ax0iwqKBbxZEMmGx6f7vKf)5TIQPdc$*pqK|Nf3|O6`v1>; vW1=sxS-J<-I4qO)4SLj=YC=a(#-2ZZG#@{jk6S1F_0Un%;12Mgi;nsqz&_}H literal 0 HcmV?d00001 diff --git a/init.lua b/init.lua index 5c20e8e..c8622ee 100644 --- a/init.lua +++ b/init.lua @@ -162,6 +162,8 @@ local MODPATH = minetest.get_modpath("arrow_signs") -- Wooden Sign dofile(MODPATH.."/wood.lua") +-- Steel Sign +dofile(MODPATH.."/steel.lua") --Shared Locked sign if minetest.get_modpath("locks") then diff --git a/steel.lua b/steel.lua new file mode 100644 index 0000000..c2972d3 --- /dev/null +++ b/steel.lua @@ -0,0 +1,44 @@ +--[[ + Steel Arrow Sign + + This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. + To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. +]] + +minetest.register_node("arrow_signs:steel", { + description = "Steel Arrow Sign", + drawtype = "nodebox", + node_box = arrow_signs.nodebox, + selection_box = arrow_signs.selection_box, + tiles = {"arrow_signs_steel.png^arrow_signs_steel_border.png"}, + inventory_image = "arrow_signs_steel.png", + wield_image = "arrow_signs_steel.png", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + walkable = false, + groups = {cracky = 2}, + sounds = default.node_sound_defaults(), + on_place = arrow_signs.on_place, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", arrow_signs.formspec) + meta:set_string("infotext", [[""]]) + end, + on_receive_fields = arrow_signs.savetext, +}) + +--Recipe +minetest.register_craft({ + type = "shapeless", + output = "arrow_signs:steel", + recipe = {"default:sign_wall_steel", "group:stick"}, +}) + +--Recycling +minetest.register_craft({ + output = "default:sign_wall_steel", + recipe = { + {"arrow_signs:steel"}, + } +}) diff --git a/textures/arrow_signs_steel.png b/textures/arrow_signs_steel.png new file mode 100644 index 0000000000000000000000000000000000000000..56cd20169e43870237060a429f3d8dd92c8ebff6 GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFP2=EDU1=6cmuP!SqtFErzwryKu zV`E!eTVY}0v17*$95^sx!h~tlrY&B)c=qhsyLa#I?(UwFRL2L@!&nmJ7tG-B>_!@p z6XogR7{YNqIU#|=R6jh4p;5rmF_6PKkmJw>3k_wSL<==1iK^Hpr-ZhLXIc*lw7nMr z%06LhS*Y>iC0m+^7T4BB$*`uT`v-ZJ^#-x>Buv=b$;fm=NMZs5L#`~p&@}eMSfDKo Mp00i_>zopr0E`n%eE