From d9a25552d8d37beedccde108563e0e67504348a1 Mon Sep 17 00:00:00 2001 From: PrairieAstronomer Date: Tue, 5 Jul 2022 11:14:48 -0600 Subject: [PATCH] Stone Cutter Adds the stonecutter block. --- mods/ITEMS/mcl_stonecutter/init.lua | 57 ++++++++++++++++++ .../ITEMS/mcl_stonecutter/locale/template.txt | 3 + mods/ITEMS/mcl_stonecutter/mod.conf | 4 ++ .../textures/mcl_stonecutter_bottom.png | Bin 0 -> 405 bytes .../textures/mcl_stonecutter_saw.png | Bin 0 -> 809 bytes .../textures/mcl_stonecutter_side.png | Bin 0 -> 452 bytes .../textures/mcl_stonecutter_top.png | Bin 0 -> 514 bytes 7 files changed, 64 insertions(+) create mode 100644 mods/ITEMS/mcl_stonecutter/init.lua create mode 100644 mods/ITEMS/mcl_stonecutter/locale/template.txt create mode 100644 mods/ITEMS/mcl_stonecutter/mod.conf create mode 100644 mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_bottom.png create mode 100644 mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_saw.png create mode 100644 mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_side.png create mode 100644 mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_top.png diff --git a/mods/ITEMS/mcl_stonecutter/init.lua b/mods/ITEMS/mcl_stonecutter/init.lua new file mode 100644 index 000000000..145bc7703 --- /dev/null +++ b/mods/ITEMS/mcl_stonecutter/init.lua @@ -0,0 +1,57 @@ +--||||||||||||||||||||||| +--||||| STONECUTTER ||||| +--||||||||||||||||||||||| + +-- TO-DO: +-- * Add GUI + +local S = minetest.get_translator(minetest.get_current_modname()) + +minetest.register_node("mcl_stonecutter:stonecutter", { + description = S("Stone Cutter"), + _tt_help = S("Used to cut stone like materials."), + _doc_items_longdesc = S("Stonecutters are used to create stairs and slabs from stone like materials. It is also the jobsite for the Stone Mason Villager."), + tiles = { + "mcl_stonecutter_top.png", + "mcl_stonecutter_bottom.png", + "mcl_stonecutter_side.png", + "mcl_stonecutter_side.png", + {name="mcl_stonecutter_saw.png", + animation={ + type="vertical_frames", + aspect_w=16, + aspect_h=16, + length=1 + }}, + {name="mcl_stonecutter_saw.png", + animation={ + type="vertical_frames", + aspect_w=16, + aspect_h=16, + length=1 + }} + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = { pickaxey=1, material_stone=1 }, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox1 + {-0.4375, 0.0625, 0, 0.4375, 0.5, 0}, -- NodeBox2 + } + }, + _mcl_blast_resistance = 3.5, + _mcl_hardness = 3.5, + sounds = mcl_sounds.node_sound_stone_defaults(), +}) + +minetest.register_craft({ + output = "mcl_stonecutter:stonecutter", + recipe = { + { "", "", "" }, + { "", "mcl_core:iron_ingot", "" }, + { "mcl_core:stone", "mcl_core:stone", "mcl_core:stone" }, + } +}) diff --git a/mods/ITEMS/mcl_stonecutter/locale/template.txt b/mods/ITEMS/mcl_stonecutter/locale/template.txt new file mode 100644 index 000000000..840503ec4 --- /dev/null +++ b/mods/ITEMS/mcl_stonecutter/locale/template.txt @@ -0,0 +1,3 @@ +Stone Cutter= +Used to cut stone like materials.= +Stonecutters are used to create stairs and slabs from stone like materials. It is also the jobsite for the Stone Mason Villager.= diff --git a/mods/ITEMS/mcl_stonecutter/mod.conf b/mods/ITEMS/mcl_stonecutter/mod.conf new file mode 100644 index 000000000..d9781e474 --- /dev/null +++ b/mods/ITEMS/mcl_stonecutter/mod.conf @@ -0,0 +1,4 @@ +name = mcl_stonecutter +author = PrairieWind +description = This mod adds a stonecutter, which is used to cut stone like materials, and used as the jobsite for the Stone Mason Villager. +depends = mcl_sounds diff --git a/mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_bottom.png b/mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..40d53a4f1048d317398b19ad101bcd28bd37c70f GIT binary patch literal 405 zcmV;G0c!qVbAO`Hp=;^T<=_r(No=t3*bYIe?7LQr65D!udXjElo}az}AjSY| z9q3z{wXV9CwgZ6ow^smwG8!f2$^*dZcwj$HGuE)6cOKR{bP`Pl?Qid(w81#dP}=aD zug?$k&SMP=0Mq~!thC`Q^pFw|$Z|gamY|G=(gr0bjMK~kME#mkvW^5RIRQYGk=V55 zkq3Z|l%-mG=W#k77>IynFoDJxHU?C)q+N2V#H0F4$_!eG*gMZmBy}=B3{cvzzW`Xn zf|64uTnkG7lEJP$V9Gi1Ie}8^DiN>M*mgit_QOym;x4o*(_Bb~6ioL#$|dE08MGRZ zk1=c-v=i29B9}?F+*-E*+&?^Ch}f?5U#tBCW*Dyg$79ZA00000NkvXXu0mjf{GqC% literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_saw.png b/mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_saw.png new file mode 100644 index 0000000000000000000000000000000000000000..0a2f543bf905659d485b8f3737175ea4137a7580 GIT binary patch literal 809 zcmV+^1J?YBP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKA0=`K^K~zXf?Uk`> zQ&AMg&x^KAOxo0#7%(rXAPQQ@P*H>q;_g!D<|KmP=H^nQiXi<91Q#ba!A%E2s8A~v z9RkHJ+9r7^#KhQ=q|pY9ey8ty-n_=Rbj)wax$oTfoqO(i_nt^Eo!g8$w;c6}?*KgjEm3K?(yLf3@$FKn7nb~We?vQI$jF;N&T`4(5^-+8xWy@G} zTzx4!BeBTH{OiS~dw340_YYW^s{&JOrzc$RUIxgJXaKBECj|Y(1R7WkKmmY&*4&IrgDDrtWNl;R4bB*Cp`OM z^^;_haVeCmYONbrr#rQJOM=maoIZ0-MWIMoEoe2Gl1Rj)QmLtJw0=tN<9j*stD*A& zh)wVkh=fL@T>UB=rA>Wi5IW+*ChsBz?Jk>!4JAsH~r!MFu(g$m6 zU)0(YDYe*=+CpAyfD8gmA1fnuiiuxLSUar&9+0+Kee9cJ1U;2b%UCch$@p>g0W9A2 z6;L3gjRF#8gn$590<-Y@@b>{&o_#<2`T>q8@SlCyCyyWLkv98*H^53}BLSw^1U?4w z0w7I_d5!&Irlzc?0%7yOk%fTAmdBV4Mx8ERL^czO0H0w^ z;OpBDKrb<`G<^7Dg-^HOPphApP@_@I)hPx}p(u7H{m*`YEV_zlit!Z+>+AA%@r}HC n`9gi>JQ?(ZK|eTvejxH23@zqLf7yjF00000NkvXXu0mjfD>!j? literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_side.png b/mods/ITEMS/mcl_stonecutter/textures/mcl_stonecutter_side.png new file mode 100644 index 0000000000000000000000000000000000000000..9c7c44fad742b03a059af79172b80a9a9109a271 GIT binary patch literal 452 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgf_ZUF%b$X;bMep-kJK0@wbSdQPnEoPo;wCakiRqW&XYC|J&>TGCs}AU-z8hIQ!jrUPlRq*O%se_dmZys`OW#$Lc`! z^2$1^{v_X>S})(cV@?Q{`P>-B8N}73;N;bKNwc57d`+z;!>7PC)1{V*Foe7jsC03<-yKQQZ)BQ9>RX$UXSaIhA_#DzrAIX(nbkUVBAh;7o>+g@RfX1W9I^xfunwENQn#XspKk{&~u9JYhJV0MI!2 z^l|#_>lXk`mV|cFVUYD_#a%&JxEi$ecUv zfz>oVJn;ZcVOFrVlMYvx7q!uA@TzG=t+_nU2#w{}$q#Pt#{A)|s(th1_zUxYvGI$4 zGK!7LTb^SJ^MQVAfu%Ins)AkMq}?8atgosFEG^(a=uWso-$jl7_4Q*C{U!3fuYkWu zo#o|PBURxc%d!{#gpw@(<2a$Qv%NX(m_-2IyxpKIT&;^Nm(RuV(cuh|8_hU~f|l-f zXw4%|{9_7@B??+q0Z)Y}XtDZwO_Ls;w13*iM~8aO_ba=-AS>O29RL6T07*qoM6N<$ Ef_qi#&Hw-a literal 0 HcmV?d00001