From 4fdbff14f859ef1d884d785bf4bb7060beed3ff5 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 3 Jul 2021 14:58:36 +0100 Subject: [PATCH 1/3] add glazed terracotta --- README.md | 1 + init.lua | 37 +++++++++++++++--- license.txt | 4 ++ textures/baked_clay_terracotta_black.png | Bin 0 -> 328 bytes textures/baked_clay_terracotta_blue.png | Bin 0 -> 257 bytes textures/baked_clay_terracotta_brown.png | Bin 0 -> 718 bytes textures/baked_clay_terracotta_cyan.png | Bin 0 -> 661 bytes textures/baked_clay_terracotta_cyan2.png | Bin 0 -> 589 bytes textures/baked_clay_terracotta_dark_green.png | Bin 0 -> 714 bytes textures/baked_clay_terracotta_dark_grey.png | Bin 0 -> 328 bytes textures/baked_clay_terracotta_green.png | Bin 0 -> 575 bytes textures/baked_clay_terracotta_grey.png | Bin 0 -> 659 bytes textures/baked_clay_terracotta_magenta.png | Bin 0 -> 275 bytes textures/baked_clay_terracotta_orange.png | Bin 0 -> 606 bytes textures/baked_clay_terracotta_pink.png | Bin 0 -> 409 bytes textures/baked_clay_terracotta_red.png | Bin 0 -> 292 bytes textures/baked_clay_terracotta_violet.png | Bin 0 -> 619 bytes textures/baked_clay_terracotta_white.png | Bin 0 -> 512 bytes textures/baked_clay_terracotta_yellow.png | Bin 0 -> 676 bytes 19 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 textures/baked_clay_terracotta_black.png create mode 100644 textures/baked_clay_terracotta_blue.png create mode 100644 textures/baked_clay_terracotta_brown.png create mode 100644 textures/baked_clay_terracotta_cyan.png create mode 100644 textures/baked_clay_terracotta_cyan2.png create mode 100644 textures/baked_clay_terracotta_dark_green.png create mode 100644 textures/baked_clay_terracotta_dark_grey.png create mode 100644 textures/baked_clay_terracotta_green.png create mode 100644 textures/baked_clay_terracotta_grey.png create mode 100644 textures/baked_clay_terracotta_magenta.png create mode 100644 textures/baked_clay_terracotta_orange.png create mode 100644 textures/baked_clay_terracotta_pink.png create mode 100644 textures/baked_clay_terracotta_red.png create mode 100644 textures/baked_clay_terracotta_violet.png create mode 100644 textures/baked_clay_terracotta_white.png create mode 100644 textures/baked_clay_terracotta_yellow.png diff --git a/README.md b/README.md index e740e03..70f9159 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ https://forum.minetest.net/viewtopic.php?id=8890 Changelog: +- 1.0 - Added glazed terracotta blocks when you cook baked clay in furnace (thanks D3monPixel) - 0.9 - Baked clay now works in the technic cnc machine - 0.8 - Cooking clay block in furnace gives natural baked clay which you can dye - 0.7 - Added support for stairsplus so that stairs are registered properly diff --git a/init.lua b/init.lua index 133d199..9ded40e 100644 --- a/init.lua +++ b/init.lua @@ -92,6 +92,37 @@ for _, clay in pairs(clay) do end end +-- Terracotta blocks (textures by D3monPixel, thanks for use :) +for _, clay in pairs(clay) do + + if clay[1] ~= "natural" then + + local texture = "baked_clay_terracotta_" .. clay[1] ..".png" + + minetest.register_node("bakedclay:terracotta_" .. clay[1], { + description = clay[2] .. " Glazed Terracotta", + tiles = { + texture .. "", + texture .. "", + texture .. "^[transformR180", + texture .. "", + texture .. "^[transformR270", + texture .. "^[transformR90", + }, + paramtype2 = "facedir", + groups = {cracky = 3, terracotta = 1}, + sounds = default.node_sound_stone_defaults(), + on_place = minetest.rotate_node + }) + + minetest.register_craft({ + type = "cooking", + output = "bakedclay:terracotta_" .. clay[1], + recipe = "bakedclay:" .. clay[1] + }) + end +end + -- cook clay block into white baked clay minetest.register_craft({ @@ -123,12 +154,6 @@ minetest.register_craft( { recipe = {"default:cactus"} }) -minetest.register_craft( { - type = "shapeless", - output = "dye:black 4", - recipe = {"default:coal_lump"} -}) - minetest.register_craft( { type = "shapeless", output = "dye:brown 4", diff --git a/license.txt b/license.txt index fec6f6a..da710ed 100644 --- a/license.txt +++ b/license.txt @@ -19,3 +19,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Textures by D3monPixel (https://mcpedl.com/better-glazed-terracotta-pack) + baked_clay_terracotta*.png diff --git a/textures/baked_clay_terracotta_black.png b/textures/baked_clay_terracotta_black.png new file mode 100644 index 0000000000000000000000000000000000000000..1011a685dd43380fc51baacbb801ddbdcd70a041 GIT binary patch literal 328 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPt3y+98N8)NP7NF2oPZ!4!jq|mECj}21a2%1Gw}TV*a_16Bvd%A7+6r#ABQE5B9Te0Twqw56zMWxr5r0-{WQS|sPQ+?T&_-`y8adUEi T2;bTQ^dN($tDnm{r-UW|JkNW+ literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_blue.png b/textures/baked_clay_terracotta_blue.png new file mode 100644 index 0000000000000000000000000000000000000000..8ced312b4021f97f50475b7ed16f7af7e7cbfd9a GIT binary patch literal 257 zcmV+c0sj7pP)B zcIV`TPkbKKA+xjpD+ocuI7bTRwF?LiwUQr=lgn*t?Ts_xtq;*O2XE3|D6)ATdzoM z(B&N%c>sLE212H)4zQk2MYaBUb*A-$#8Z4M1Ti7!E2P6W=Y;!te$N)=00000NkvXX Hu0mjf`iE{q literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_brown.png b/textures/baked_clay_terracotta_brown.png new file mode 100644 index 0000000000000000000000000000000000000000..6b1163b8a05ca7220597dc966719d650d925774f GIT binary patch literal 718 zcmV;<0x|uGP)+0;cBjl>VoMU!ruE?m2CVZTKe z)sVPk)t!lHY;8@XiWyqkNkXL;et{M>wgGmpO~ zDaXoZ>hswb`OW-J<(d+1DZ99mTelq-0C%qrM}+CAL^>`1O9EiJrR*Xl8~`%Tw^`cI zyQ8B)*L5A&Z8S8S>WY-no9C)#ZXXqAm6^Gj^wz;X$GjP1_Uz(enZ*~s|FEE;8HQ!A zZshL%0T2xjhj<@=(rNWXtxr!S!V#fatFx-o^;Y517zqrnvZt<%zJ zm2e&aj@u7Mgb)wL-&Zvjk8XY42OtU|0OZ4)*OQ4pBN83k5FXgH?7J6nRH2h_+R5*dH5u+0TKJR?Hy6HxJeb2(v)KYd4!0JZM zu%f3qZ@Iob9-5gzsNv0gMC&yOuK{3IIBmGZGlI9kbeA|43T9{>OV07*qoM6N<$f`cPJ AO8@`> literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_cyan.png b/textures/baked_clay_terracotta_cyan.png new file mode 100644 index 0000000000000000000000000000000000000000..13ebba71aa5a42f77de75f978e49ee45332595d4 GIT binary patch literal 661 zcmV;G0&4wQK_gnx;eTz=;G9+i%zai zb#wC%a1tjA4hAZv3Wd-#X_}->NzT3ZoZ}Emi@x*cg$JHT%CA-dSuC|aeFj*0M;w#M z%=CUY-o6Kl3pGIByo%Q8mv!BqoWP7KP<{TaIbHi-t3pIJ5BT9w-@2wSBLHyyes!k~ z{Hp=*NrExH*OSWH8sL96WU++zDvFvPKAz}6V=Z_BjZJ-Q6vnhRcG_C)ZFjwML92z< z#f4g@Iz7@sf(H*^Q^1>%@|%0*)B((zLTx$Bg16iSZx=8gPgG&Q@Kir8%`U zHx3$vp@>wTJOKFq)r2|)f&iP2HK2B9uk6lWFQ+b2p-U1`3X$^T`{SR;y3=~*!s z#2Zsc4h9oNR$l9IL8$-|c=6ta*6sgl4U|}XvD;OJNES=3->*_{f;ui=P-+;4lh)#29rpd^-grBer^}k-%UGM~cG_EYfH$i^<BE+YdEdT&1;7Opl?EVdBPzW=8UQQVRMCf>sC065P5_+#X!-O*D#HciE&%}G z5^4iWpHvB8lZy0V>)K~x-g@&h3}1USRtLoe12F6nU~Jp+c!?tbxJH%4JgWg3nlpO* zlo9vw1xD_MvDSyDPPaFn#WbG9MwR$`Z0-5HAnpS&G9Sh|N&=@pBIa#UK|$APH7eEPdKy7#VV?aRtAh%<&gIR>$h?V?`}ZF*+mNCpcy&DmV6(3cUhaFM(*M)YCKau}cAhr3 be>Hyqv~&McxagY400000NkvXXu0mjfo)r1o literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_dark_green.png b/textures/baked_clay_terracotta_dark_green.png new file mode 100644 index 0000000000000000000000000000000000000000..43297d38e4a8b6870f4f2f41d1cad88faddd2cd0 GIT binary patch literal 714 zcmV;*0yX`KP)6G0TlzuB4TUv_D*HCPqWVp$0$h=iDWA;!R6pTpPik-YK3L@|*olcolO zT$IKVz%G=6(%miH?(EEXG4))Xlk+>t_nmXdyZ0LaxI+MRf7}A7z9^V{yRiwN7d9y; zLEom#s+MaO0Qc!K0GX&%+REDu|Krn#?*~V_0Cb1yJ8w zH^Zfh&p4$VloJ3^sN1JsWulmA*B0D^qutpuI%jRltlXThG?`!ar2qi`CZQZrsMl6q zS}f&;{Yn4gis!~T`;ig4|Lu~cBdt(ebhLus4*+O|`TJE`S(&v9sruG>5D7!?eQw1Q zm5j4b>X{_g*Qfr~FDJZ7`vW$(8nES;_W*Rgj-kJNY?dlMfQ#dN6wvEae{kZY($?dR zB%5baB-5S9MCIoEz0WOE4o)0E{`IExQe9C_rO*Iqv6LH}jWYI)l5u(_iog{vySXtYRO~&caD~O4f0!wwZ@&=`fU#j?n6Nhmc1q#6BVM@em zyRpdt7|~LoxaeeT>-W#wp;x#I1>?xu3`i&^qaZOD>xE6jiAV!5bUab+7Rly`6ba>I zJd%mflmo!jw21V0B>juf(9d>=6qa#09?A0-qfDA3vb#Ty(!D6ul!J1_6See8Nnrsv zYq3#~XiW%Fgpi?E=-6$GGRs|jo0%a}fTsz7RBB3#Sd}XN12-sD{8ZX{y|Y1?#il<< w9$@ z&1%A65Jl&m1R)DSD4`%&+dwxKiVK%+>_QiPjx4gsyY}djYX}{NWWF!=&d;6H>#kci zD|{G+aU2Q0PG@|vY(Dni1joxSn837P^l!MoB zH_;MS>$cs#dnB-II5&dHUN&#s+6*x_#sp3!vr?TRI58kECCGPro)uYacf1>X8Vk+( zI2kKw0|mg)O#&dGQQ}5OSJrhZo@&5gxMGl{W;((#y?e|U*;NH6$HuIKMF7(KA5=QA zf#~Q|?#GF#@Els7Y45(=2~gE5antR{aTq5dw{kyPGKYJyh$>;Up2a_8ou<#N+i-VN aG{GPJU<)3H_kW@Q0000jEvm? literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_green.png b/textures/baked_clay_terracotta_green.png new file mode 100644 index 0000000000000000000000000000000000000000..20a10e361d9f3a4e5fd94cdcab58d0c204b2307b GIT binary patch literal 575 zcmV-F0>J%=P)xD;fB~y?(}!katT0v{~fAeadSx>0F9vv-oAbVKyp*X z2|u5l`MxPTj5q*V7HiP=8wYUc9ecett)uz6$SRt*EEcMOB#9O;b-pRIXsG_E6V2BE zX4C9Z^#Z{2{ht7$DDO(g8}wD2tk|{q_c?#mnN2e~1~9+Eie3K)@XeYaO%n$dV_w0Cf{oU6$jwy@P~?% z$GQ$g#Yuyvomvt_MpmZfGFreJ91)bHH)RM)esObI=31J3HqGvPFHPRE*xl_mRDmFy zDa(_K)2?&?kco{FsxZ6_q9_+#>1+!9;r-XPZIGdoo6+Km&~$g5X_W6;t{_DHF?Fuu zgvw}i7g?YbH!ct+16tfC!0dIZG)hD`1^B16;RkO-Tibs`2&3r^Vp3yWi0>z N002ovPDHLkV1kG-`~Cm` literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_grey.png b/textures/baked_clay_terracotta_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..a51e1daf2628e89a4d8ae79c4ac22955fa2f9ee3 GIT binary patch literal 659 zcmV;E0&M+>P)1cW4Xm6ke0Bw&VkM;G1u6|y?@>tSr$bR0M~U5!{D5c$74c>`Yk;_ zKLfCB+cZr8zV91`K`9kNL{X#`=A7g2`;(wTX0w^f@qOR6Z7F3KhUz5cS+CdS!YZXq zl7unl`~GAyQ40h?FdPm6FviyF_1)baA%rXziztfr`#k{1aWqYH948Dz&+`D(YPHd5 zq}^^mJUraq-hO|76GAqdO|4d|R;!PXkMsHb{{CLmG{vpaXzcg0=QnUKR-W%!9YrB+jghZQCGRHtGFEw2hwV_&gZj~GS71Wnx@^{+`PZPyRMsM znGnLVEWGN~#1 zgm+f5uovd?q%h_W`74 zAne5+0=3p{qepLj3iBI9CH1)ww0MPQdZ41*5gZUMkABV-ODRxYNkxv6o&z0%c zRfNtt0A@0rj*m}jK+=k!z|`lCMI%6HOXM84REwqT1ou|RSS&kITe$Gl$fqMPqQL+> zSf{Yc<8AqH4T#WgU1^<;05J4;kxbhOraqa44ZQ*OcV#@W*~bv34d`aB-IB|Ww4Z#? zoL*OHT(7Gd0nPqGL74XONzG2s>#7S+g@b1Hpt89oHMG}Nn_Duq5ESnpMJWrbO#P@C z`Qn{e&(A+TixRfH({q)wX!a4|&&ud^QJdB&wUg{Y1@O;~!tcLcep0~w>!d7s6J)KjEdLZ$^)_)QWoA{#xpbr*el$PYW)^O=r8{$4`>gmc9{4$E2NjA_tI#$ sR5SLnQgg}!#xvT(%ZQp2ThgEHKiK2cp%j!?R{#J207*qoM6N<$g0VLjS^xk5 literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_pink.png b/textures/baked_clay_terracotta_pink.png new file mode 100644 index 0000000000000000000000000000000000000000..8f010ac7ec859b5c13d706e9cae8f3f5b681ff4e GIT binary patch literal 409 zcmV;K0cQS*P)#BO}2LJ%}xfLZl9_ak=EVQU>!}8%% z1t6xA)Bu?1w~x@Y@?y&(NsTi1w=r$Yf(Za&PK9hosR3ZiLj6e#${c%mLmirSK}Ulr zHOO}2C-2^0J5AnY-bq%Tbe$^ne3kC1+Li@x8Tx@XNod)X9{Yhkyy!NGD4arzHST0f z^A4GJIy)Z3^G_0Pa-Unx7m;_@kF}XCy_0up%EK+q!6-H4-HPVksegJA!|MMDO?x_B zVtV-cR$WyK%C@emMO@JU6xSLL9{WMWeQqcE^TMaUp#I!`MwZH(00000NkvXXu0mjf DLJ+Es literal 0 HcmV?d00001 diff --git a/textures/baked_clay_terracotta_red.png b/textures/baked_clay_terracotta_red.png new file mode 100644 index 0000000000000000000000000000000000000000..ee46623b0ebb33b977eea6b0aa1443a5a1824d44 GIT binary patch literal 292 zcmV+<0o(qGP)e) zI|>3p5JcxD$|4#Fnj4CliIJ!A27+Md4GayvgD7|-pS-1P6?&KcR839Sw8LlJaHjx1Y+*1rMbx!pjx&L?sjpR=4nkfWdugmAtHB)0sgFF_8`>cEz9 zTQ0mFc}65HEB+9OYyu5HuOOQ9D6#{$qI3<=v7x_G(CnJk;h@Rr$AcE99e@yIAC4Y` z)2LODQ=chK16Z$+Tg8w{h|3>a9akMX?i~fox2^Z%E}T5GeAUvS1pFq*sc$Sg?s>Mz qMq&2_b9-C=IiMA+XyOH@1}3PZ$5q<^0000>tpz;Mr5@ zkf~e8`UiON&_Ic53(2dcOPK?|qMbJejCmtJR(HYzP3r zpfdt6o(<2fJ^(*nd2&L(&aFNNkjiAe42TgH$E} z4xOVgSR6V>zcqNf> zl3RUxP^&v(u%KZ`1JP&3g)WR~IF-l%uvbrdgU*Ol6_P%G|L|PCaZOtn27qZeE%6Fn zaW_M)?ocZlnre30ZvZdZTZO3{qG36yOxR^_Nhp98?|O1V4T~!p{5{e0C}>!YC{Wk5 z0U++)??W=Sa#P}!G`~${A_~jMlQZ+ei$E6B`A+_!Rb^!W;(nIoU`bSq)B&`u=8xzn z1qDD*mR@w{Ab@B4Q-!PhJXKlwuD2W4w27vT0N}}qi@q+5tD9?usav^eTTO~Ql?esB&r@9(5=%i(g=mS4Ly+hP z{1Iu8$XeD5+H(j|&}n|FFtr#|7YXD9ZhVE1#-s_j%Q1YSgcvo#T|y3E3yjF} zihaKb@881U)weTatyjY^003aE1>l^+zp~c0ZEKA2-k;BBrId3n10baoLVS;DVXb8vfYy4m*#LOGUMXH#mg6`UMX@Xk z01y!odGDubqOY2!>3BR2!$3s*^xhMZU@szizuzgkbFS+;DP>ufsj0ONA!KYMg!pv? z+O`F-+wC5Y2Y(6Y3?Xz~moZcn#dq$is^)o)F(z&2T;KP`nBM`VlrbiRz}bUFdZc=P|Ge`o+r z)AW6xIp?m|Yg#kkiPoB(6CFZel`PRkQSe#1s~BUVyRI|FR8_SiqV$Kdb~@&M(=-6? z_xtDbIUEkFVHm#CCmKMW=j-+QcDwN&_xt_x`TPN$ObDF$Bu#Mu0000AEma{9DddI>p+hDEP65|0+0+arLm_c0w|6-lyA%hB zWQ$8nhuSVyQYVMDlu}LzAr-U*HD~<~k@LLk@E?};pWgr8_ul*7dmr)4ecLpZtN{Ql z1pw}lcXTCd_~SYN5-(Y;GT%D&JO==oy-o-;@93_x2+0rRJzac*DuC501F+IX$|A%c z*ZvEyZQjv^N7gjkG(C4QNfwDeuGw8fRQ1Po5-GcFi9SbdY>uldG4ID2xSo}7B3Vb?*(I6t+Lpr=gt98 zD&7D6K0bMM@8=o0Z77r?y0g1hl-)IaXX-i&^`LRn`*0_u#QHA)OgB$fOHTTqo=2}M zl!e9p1A$Nlp%j3d?{Dt@cnN@SodQq?Rkm94NwSz2UD&26Yg%v+DR!GU6jK7QA3h_1 zd{u!IrT{35j1q?cAZ27tlQqqErb5h=MVJ&`ExCMEVN!UydGZHKQ6Az`)`oci0000< KMNUMnLSTYUG#?}Y literal 0 HcmV?d00001 From a3c96afbdab3d1b07ef51c79902f045cd60fd98b Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 5 Jul 2021 10:20:29 +0100 Subject: [PATCH 2/3] tweak and tidy code, add lucky block --- README.md | 3 +- init.lua | 130 +++++++++++++----- ...g => baked_clay_terracotta_light_blue.png} | Bin 3 files changed, 98 insertions(+), 35 deletions(-) rename textures/{baked_clay_terracotta_cyan2.png => baked_clay_terracotta_light_blue.png} (100%) diff --git a/README.md b/README.md index 70f9159..d699179 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Baked Clay This mod lets the player bake clay into hardened blocks and colour them with dye (8x baked clay and 1x dye in centre), stairs and slabs are also available. +Cooking baked clay turns it into glazed terracotta blocks. https://forum.minetest.net/viewtopic.php?id=8890 @@ -18,7 +19,7 @@ Changelog: - 0.2 - Any colour of baked clay can be re-dyed into another colour - 0.1 - Initial Release -Lucky Blocks: 9 +Lucky Blocks: 10 Note: Under settings you will find 'colored_clay_compatibility' switch that when enabled will register aliases for the older colored clay mod and it's stairplus stairs. diff --git a/init.lua b/init.lua index 9ded40e..af3916c 100644 --- a/init.lua +++ b/init.lua @@ -17,7 +17,7 @@ local clay = { {"brown", "Brown"}, {"pink", "Pink"}, {"dark_grey", "Dark Grey"}, - {"dark_green", "Dark Green"}, + {"dark_green", "Dark Green"} } local techcnc_mod = minetest.get_modpath("technic_cnc") @@ -27,42 +27,50 @@ local stairsplus_mod = minetest.get_modpath("moreblocks") for _, clay in pairs(clay) do - -- node definition + -- node minetest.register_node("bakedclay:" .. clay[1], { description = clay[2] .. " Baked Clay", tiles = {"baked_clay_" .. clay[1] ..".png"}, groups = {cracky = 3, bakedclay = 1}, - sounds = default.node_sound_stone_defaults(), + sounds = default.node_sound_stone_defaults() }) - -- craft from dye and any baked clay + -- craft recipe + if clay[1] ~= "natural" then + minetest.register_craft({ output = "bakedclay:" .. clay[1] .. " 8", recipe = { {"group:bakedclay", "group:bakedclay", "group:bakedclay"}, {"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"}, {"group:bakedclay", "group:bakedclay", "group:bakedclay"} - }, + } }) end - -- register stairsplus stairs if found + -- stairs plus if stairsplus_mod then - stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1], "bakedclay:" .. clay[1], { + stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1], + "bakedclay:" .. clay[1], { description = clay[2] .. " Baked Clay", tiles = {"baked_clay_" .. clay[1] .. ".png"}, groups = {cracky = 3}, - sounds = default.node_sound_stone_defaults(), + sounds = default.node_sound_stone_defaults() }) - stairsplus:register_alias_all("bakedclay", clay[1], "bakedclay", "baked_clay_" .. clay[1]) - minetest.register_alias("stairs:slab_bakedclay_".. clay[1], "bakedclay:slab_baked_clay_" .. clay[1]) - minetest.register_alias("stairs:stair_bakedclay_".. clay[1], "bakedclay:stair_baked_clay_" .. clay[1]) + stairsplus:register_alias_all("bakedclay", clay[1], + "bakedclay", "baked_clay_" .. clay[1]) - -- register all stair types for stairs redo + minetest.register_alias("stairs:slab_bakedclay_".. clay[1], + "bakedclay:slab_baked_clay_" .. clay[1]) + + minetest.register_alias("stairs:stair_bakedclay_".. clay[1], + "bakedclay:stair_baked_clay_" .. clay[1]) + + -- stairs redo elseif stairs_mod and stairs.mod then stairs.register_all("bakedclay_" .. clay[1], "bakedclay:" .. clay[1], @@ -71,7 +79,7 @@ for _, clay in pairs(clay) do clay[2] .. " Baked Clay", default.node_sound_stone_defaults()) - -- register stair and slab using default stairs + -- default stairs elseif stairs_mod then stairs.register_stair_and_slab("bakedclay_".. clay[1], "bakedclay:".. clay[1], @@ -123,6 +131,25 @@ for _, clay in pairs(clay) do end end +-- special light blue glazed terracotta block +local texture = "baked_clay_terracotta_light_blue.png" + +minetest.register_node("bakedclay:terracotta_light_blue", { + description = "Light Blue Glazed Terracotta", + tiles = { + texture .. "", + texture .. "", + texture .. "^[transformR180", + texture .. "", + texture .. "^[transformR270", + texture .. "^[transformR90", + }, + paramtype2 = "facedir", + groups = {cracky = 3, terracotta = 1}, + sounds = default.node_sound_stone_defaults(), + on_place = minetest.rotate_node +}) + -- cook clay block into white baked clay minetest.register_craft({ @@ -139,15 +166,6 @@ minetest.register_craft( { recipe = {"dye:black", "dye:black", "dye:white"} }) --- only add light grey recipe if unifieddye mod isnt present (conflict) -if not minetest.get_modpath("unifieddyes") then -minetest.register_craft( { - type = "shapeless", - output = "dye:grey 3", - recipe = {"dye:black", "dye:white", "dye:white"} -}) -end - minetest.register_craft( { type = "shapeless", output = "dye:green 4", @@ -160,7 +178,17 @@ minetest.register_craft( { recipe = {"default:dry_shrub"} }) --- 2x2 red bakedclay makes 16x clay brick +-- only add light grey recipe if unifieddye mod isnt present (conflict) +if not minetest.get_modpath("unifieddyes") then + + minetest.register_craft( { + type = "shapeless", + output = "dye:grey 3", + recipe = {"dye:black", "dye:white", "dye:white"} + }) +end + +-- 2x2 red baked clay makes 16x clay brick minetest.register_craft( { output = "default:clay_brick 16", recipe = { @@ -201,10 +229,17 @@ local function add_simple_flower(name, desc, box, f_groups) end local flowers = { - {"delphinium", "Blue Delphinium", {-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_cyan = 1}}, - {"thistle", "Thistle", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_magenta = 1}}, - {"lazarus", "Lazarus Bell", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_pink = 1}}, - {"mannagrass", "Reed Mannagrass", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_dark_green = 1}}, + {"delphinium", "Blue Delphinium", + {-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_cyan = 1}}, + + {"thistle", "Thistle", + {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_magenta = 1}}, + + {"lazarus", "Lazarus Bell", + {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_pink = 1}}, + + {"mannagrass", "Reed Mannagrass", + {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_dark_green = 1}} } for _,item in pairs(flowers) do @@ -227,7 +262,7 @@ minetest.register_decoration({ }, y_min = 10, y_max = 90, - decoration = "bakedclay:delphinium", + decoration = "bakedclay:delphinium" }) minetest.register_decoration({ @@ -244,7 +279,7 @@ minetest.register_decoration({ }, y_min = 15, y_max = 90, - decoration = "bakedclay:thistle", + decoration = "bakedclay:thistle" }) minetest.register_decoration({ @@ -263,7 +298,7 @@ minetest.register_decoration({ y_max = 90, decoration = "bakedclay:lazarus", spawn_by = "default:jungletree", - num_spawn_by = 1, + num_spawn_by = 1 }) minetest.register_decoration({ @@ -282,13 +317,15 @@ minetest.register_decoration({ y_max = 15, decoration = "bakedclay:mannagrass", spawn_by = "group:water", - num_spawn_by = 1, + num_spawn_by = 1 }) --- add lucky blocks +-- lucky blocks if minetest.get_modpath("lucky_block") then + local p = "bakedclay:" + lucky_block:add_blocks({ {"dro", {"bakedclay:"}, 10, true}, {"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green", @@ -320,13 +357,38 @@ lucky_block:add_blocks({ {name = p.."red", max = 30}, {name = p.."violet", max = 30}, {name = p.."white", max = 30}, - {name = p.."yellow", max = 30}, + {name = p.."yellow", max = 30} }}, }) + +lucky_block:purge_block_list() + +p = "bakedclay:terracotta_" + +lucky_block:add_blocks({ + {"nod", "default:chest", 0, { + {name = p.."light_blue", max = 20}, + {name = p.."black", max = 20}, + {name = p.."blue", max = 20}, + {name = p.."brown", max = 20}, + {name = p.."cyan", max = 20}, + {name = p.."dark_green", max = 20}, + {name = p.."dark_grey", max = 20}, + {name = p.."green", max = 20}, + {name = p.."grey", max = 20}, + {name = p.."magenta", max = 20}, + {name = p.."orange", max = 20}, + {name = p.."pink", max = 20}, + {name = p.."red", max = 20}, + {name = p.."violet", max = 20}, + {name = p.."white", max = 20}, + {name = p.."yellow", max = 20} + }} +}) end - -- colored clay compatibility + if minetest.settings:get_bool("colored_clay_compatibility") == true then local cc = { diff --git a/textures/baked_clay_terracotta_cyan2.png b/textures/baked_clay_terracotta_light_blue.png similarity index 100% rename from textures/baked_clay_terracotta_cyan2.png rename to textures/baked_clay_terracotta_light_blue.png From f3e0b60827adea11ce7b31065e8652d7a0fbde3c Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 5 Jul 2021 13:08:01 +0100 Subject: [PATCH 3/3] remove purge test --- init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/init.lua b/init.lua index af3916c..61fc73b 100644 --- a/init.lua +++ b/init.lua @@ -361,8 +361,6 @@ lucky_block:add_blocks({ }}, }) -lucky_block:purge_block_list() - p = "bakedclay:terracotta_" lucky_block:add_blocks({