From 6de5cde3e8a40f08d9133c8b701c2f0caec5396c Mon Sep 17 00:00:00 2001 From: runs Date: Sun, 24 May 2020 16:34:23 +0200 Subject: [PATCH] fixes --- init.lua | 81 ++++++++++++++++++++++- locale/jonez.es.tr | 9 ++- textures/jonez_diamond_pavement.png | Bin 0 -> 963 bytes textures/jonez_marble_brick_polished.png | Bin 0 -> 1343 bytes textures/jonez_marble_polished.png | Bin 1397 -> 1394 bytes textures/jonez_mosaic_pavement.png | Bin 0 -> 1009 bytes textures/jonez_pebbled_pavement.png | Bin 0 -> 3115 bytes 7 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 textures/jonez_diamond_pavement.png create mode 100644 textures/jonez_marble_brick_polished.png create mode 100644 textures/jonez_mosaic_pavement.png create mode 100644 textures/jonez_pebbled_pavement.png diff --git a/init.lua b/init.lua index 3f009bd..2206500 100644 --- a/init.lua +++ b/init.lua @@ -8,12 +8,32 @@ function firstToUpper(str) return (str:gsub("^%l", string.upper)) end +local function on_punch_marble(pos, player, replace_item) + local wielded_item = player:get_wielded_item() + local wielded_item_name = wielded_item:get_name() + if wielded_item_name == "jonez:chisel" then + minetest.set_node(pos, {name= replace_item}) + minetest.sound_play("jonez_carve", {pos = pos, gain = 0.7, max_hear_distance = 5}) + end +end + minetest.register_node("jonez:marble", { description = S("Ancient Marble"), tiles = {"jonez_marble.png"}, is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), + on_punch = function(pos, node, player, pointed_thing) + on_punch_marble(pos, player, "jonez:marble_polished") + end, +}) + +minetest.register_node("jonez:marble_polished", { + description = S("Ancient Polished Marble"), + tiles = {"jonez_marble_polished.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), }) stairs.register_stair_and_slab( @@ -41,16 +61,54 @@ minetest.register_node("jonez:marble_brick", { is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), + on_punch = function(pos, node, player, pointed_thing) + on_punch_marble(pos, player, "jonez:marble_brick_polished") + end, }) +minetest.register_node("jonez:marble_brick_polished", { + description = S("Ancient Marble Polished Brick"), + tiles = {"jonez_marble_brick_polished.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), +}) + +stairs.register_stair_and_slab( + "marble_polished", + "jonez:marble_polished", + {choppy = 2, stone = 1}, + {"jonez_marble_polished.png"}, + S("Ancient Polished Marble Stair"), + S("Ancient Polished Marble Slab"), + default.node_sound_stone_defaults() +) +stairs.register_stair_and_slab( + "marble_brick_polished", + "jonez:marble_brick_polished", + {choppy = 2, stone = 1}, + {"jonez_marble_brick_polished.png"}, + S("Ancient Polished Marble Brick Stair"), + S("Ancient Polished Marble Brick Slab"), + default.node_sound_stone_defaults() +) + minetest.register_craft({ - output = 'jonez:marble_bricks', + output = 'jonez:marble_brick', recipe = { {'jonez:marble', 'jonez:marble'}, {'jonez:marble', 'jonez:marble'}, } }) +minetest.register_craft({ + output = 'jonez:marble_brick_polished', + recipe = { + {'jonez:marble_polished', 'jonez:marble_polished'}, + {'jonez:marble_polished', 'jonez:marble_polished'}, + } +}) + minetest.register_ore({ ore_type = "scatter", ore = "jonez:marble", @@ -243,6 +301,27 @@ local pavements= { {'stairs:slab_marble_brick', 'stairs:slab_marble_brick', ''}, } }, + {name= "jonez:mosaic_pavement", description= "Ancient Mosaic Pavement", texture= "jonez_mosaic_pavement.png", + recipe = { + {'stairs:slab_marble_brick', 'stairs:slab_marble_brick', 'stairs:slab_marble_brick'}, + {'stairs:slab_marble_brick', 'stairs:slab_marble_brick', 'stairs:slab_marble_brick'}, + {'stairs:slab_marble_brick', 'stairs:slab_marble_brick', 'stairs:slab_marble_brick'}, + } + }, + {name= "jonez:diamond_pavement", description= "Ancient Diamond Pavement", texture= "jonez_diamond_pavement.png", + recipe = { + {'', 'stairs:slab_marble', ''}, + {'stairs:slab_marble', '', 'stairs:slab_marble'}, + {'', 'stairs:slab_marble', ''}, + } + }, + {name= "jonez:pebbled_pavement", description= "Ancient Pebbled Pavement", texture= "jonez_pebbled_pavement.png", + recipe = { + {'', 'stairs:slab_marble_brick_polished', ''}, + {'stairs:slab_marble_brick_polished', 'stairs:slab_marble_brick_polished', 'stairs:slab_marble_brick_polished'}, + {'', 'stairs:slab_marble_brick_polished', ''}, + } + }, } for i = 1, #pavements do diff --git a/locale/jonez.es.tr b/locale/jonez.es.tr index 92f3eb9..364f03b 100644 --- a/locale/jonez.es.tr +++ b/locale/jonez.es.tr @@ -25,4 +25,11 @@ Mosaic Glass Panel=Panel de mosaico Blossom Glass Panel=Panel mosaico florido Ancient Blossom Pavement=Pavimento antiguo floreado Ancient Tiled Pavement=Pavimento de baldosas antiguas - +Ancient Mosaic Pavement=Pavimento de mosaico antiguo +Ancient Diamond Pavement=Pavimento de rombos antiguo +Ancient Pebbled Pavement=Pavimento de guijarros antiguo +Ancient Polished Marble=Marmol pulido antiguo +Ancient Polished Marble Stair=Escalera de mármol pulido antiguo +Ancient Polished Marble Slab=Losa de mármol pulido antiguo +Ancient Polished Marble Brick Stair=Escalera de ladrillo de mármol pulido antiguo +Ancient Polished Marble Brick Slab=Losa de ladrillo de mármol pulido antiguo diff --git a/textures/jonez_diamond_pavement.png b/textures/jonez_diamond_pavement.png new file mode 100644 index 0000000000000000000000000000000000000000..a25cd7acec2f93c6a82e5b7e53bd2c34e5074344 GIT binary patch literal 963 zcmV;!13dhRP)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00S#YL_t(o!|m2hZyQA%$MLUc zXLi@Se%LsPLs3gpB1BbTq6SiW0U^YpNL3LWD$yHngHz8vBHln>LEi<6ij)Y2G$dA( zIN@<^CyLi=d-jn-lzjtx#B-e4&q#l1eyd;Q)yo&TFeT%0NUi2_)*o;_9I}4*{bFxC z4slG2S(eZ}>CtrSEG;wva7>FbUI4|1T5HaSLt2ZAXsvNft2moPn(NhGZV^N=j%iWW zi|Z-0*7&1_%XKYP*bwFw2T+Rlw^j$9|df7)`{W_ zLmF&$);a4BP*M^mDY9yF`<+!TMj`LrS;O@j2x(B(8}~j~eV$2!^?MzZQdDgdDJ5B! z;du)joE)>#Ugq}Ox5%@cx?3e2Pw<)^m!nJe4!e}`0$}L(ab24%NdQRG1lzVq)0p4) zy8sxVC~-+lAt^Jb%t5)}@5J>FVwlW5KE!9MLqoto=1olHs7lyDkiE1RRU z6O!qS<%WkKr;M+>dif%sL>i?emSq(=?!3E3oTmU-mPMjtl04@o)X6iah#x}L`g+7jqnE-NGYjU>gw{6UYz;^;v`|J zBm7ao_s^acIaW#%L@@w5jTi(0PoF#~B37%pl=b39%VRta`NQ{lcz>gKp`Sk3#2*FR zXn6nxlPM22KgRPKxHX4|_cu7}4=C#^KmGVaem)%X=<_eIswPpKQMFCN@q{Ez*m<)D zz(<`Av79Pdl0ueY+ZN$?!Y{kOQpStxf47hZQJhgBXExKtBmgVzC0Z?yB#O!Nyx9M% z|2Jj5Si5+rq90gpzcRkC=rM%6g%c zL~BjEQD_cRZKkk-Go@002ovPDHLkV1kHbvF88) literal 0 HcmV?d00001 diff --git a/textures/jonez_marble_brick_polished.png b/textures/jonez_marble_brick_polished.png new file mode 100644 index 0000000000000000000000000000000000000000..293a15cabda55a070d4e3c9ca841aa153ce6efe3 GIT binary patch literal 1343 zcmV-F1;F}=P)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00gH=L_t(o!|j(}Xj@er$3JOG zJJYmHcbhe7%Us#2orNM3#fK_%OganOgN{9HQ&8|h5Pa}Km`?T}zR4K)A_E0sK8#IJ zp|%iOSnC|^+Cb_}v$b)ZTasIoo7}pj|6P0t=WtGz>6`-v{k{Bd&iVbj=l;IG^Ns7+ zKua;X-h(PL6JyxFu4`*XLk$4^y^RcyFUjXhBKFl7M+W>P*L!HKiDSJp1GEY7IETPd69(#Nb*RD>}MRvtB`wWKJlmN9;i!q7DUfn(tfWQCu?a^_Y17}^NXoGRaI7pr zpCN5UY_$ksE7q$-1Ew6Clw-@lYLIZ$lxsnsAp@oyTQ;1!CW;WhRqa?=El1VN#2DQ@ zJ7wUMV-si%07xD58QR+kyT#d%mV7NYEo~etOX%W+)Rl??N}oVfs8VxlXriaIu=ENn%kw`jNza&^)-yo56SXr@|yz(QiY8Th8&g1da(9#m*kPk$;|7qd6J_pnWF(YxzNL(IUIkp9^%}88>T=}dR9$&&2*m~D&F(Yy8OrcbO8HsBU zEbmlxE{Ndje#)_BLIGK!`+FO4tgM_JD!e5ML`RBF6$xi!bJ~nh=Y!~Eb+D*2Am}p) zM@@MGDiTybcc9HUS--_YCX;0~zXHH!HPUb}6ywph03Ge^%-y_!V`bT_hSmHE&Ptx3 z&*0WVg3W5Q`Z}OJN)p-Pp9{!*SCZ8Vh(_9En8&(x4V{b)TFV_$K1^u zxHj&TV3z<=Ct&t>UfsVkIry?ppG<^W<;mOO5K^ z#`XD|{~R9>aqr0o#J3mvLHR&9YD)c=_`umuKa%=?KJcJ?;D_(W7#$hY_`spV`)Tre zG(O<^?(5S<75C-%fAy7jId$p-37v9$S9(@u=)!4@50uBhFFs&2*U8RR=Yp_PpUdaT zL*)bNKv6ls-{J$p@qYM#`UmBq@qv!cz<-+${0=S;3{nC_RDu8i002ovPDHLkV1lMX BmZbmy literal 0 HcmV?d00001 diff --git a/textures/jonez_marble_polished.png b/textures/jonez_marble_polished.png index 6cb0db942fc894a80c49340fd9e9edcafe291f68..c18f1c40ec41f96eb77203e7e36b9a47dc5e21c0 100644 GIT binary patch delta 1332 zcmV-41$4_$!TM3vp6LeEjBDr zMhhEs>&14lpRoV1yY27vqW_>Pw7W?luz_QcgWA;}tB@Tc*LI`OjO{{u-@NC@gI(-^ zk#ux)p7(v8_v84ZPq#Mz+9+E9fc5n?oS(k~jrH|4zL)cI(3*eq^LNU6eU9$sK4+s4 z836d{hwt%!jwer_;k$1i{-?DW`S4~K0025&AB%a6T;9N99s>a1%PWAT>vDMmZ-xOn zT^~-_!f+JA`G@7H0W4I)PKR&}dZPlr7})1{#e@3Y<1Un);#4Hw4Mo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xA`m zHi87)xOpzi9qJp}ONCwNB*d{-w1GA<5M-5-_yh(b4UvCM)&#+tQU_f^8{eNT!qa@> z>(^II`qljPy+@Xwc^t|+X~V2X?m`;6fTEQkzTf(`3{*3ZyZtZD8t^=7gA>osoC#VD zYlR@bLpxwo&36b7Q|hYUERjHxh?S|O+CskITK!)>xdZjU3_)@E=JBnj8$f(;=* z>|c5SWyXJk4qo@P)}7o$yO`n)nkvOsA@2_p$@Yl%Xr0$ANIR?=Zm{m^!z7(J-zQe=twTBWKpr2z;nYxV zs1JYlGl%_`-bH~|zHvbW$sA&3`VA75^B2w{r%LywPtbfdL#IZYo2mO+85 z4cX-Ta(c(d4t?9E*wSe#rH($}S+sn97D$TebJH+5kF_hv;VzC_n#kyKtrcSE6zq2C z*7nGyqN*PT5ASzi@OD1(`tY=-XT9M4?p}WhttvqRp|yseRupb31(<6O#;M^(J9Znv zi3pMct!&5^hpN$9qm;{fQyX8p4IR;)C}7&5S)Lb z)P<(Tb(5YkCX|LVyKA79Pi{tYy$}wE10nPw;>ImNHQ1-Fjd|1W^Ja)Or&uc=gxMsp zT#tx@yh?zl!vx-;!#?78-aixOvM{yjK5|_~w}~-)aHh9*IAB#%R2xMbaa&kiz{x}k zV4LRCFs8KUI`{JKEV4`c-#~;ZCPaIL7}qX$tN2Yf2#n_&QmTd!NZ!b8#X5z^!=Nth z<1b^W4mzC{&es!RzMMF}{TEz6H0?Zs$5@>&Di{#NQ*ypj5JDuxi1%>(c^rX3(}K9b tJoh%e-zP#8LP&)1|HtY4oxi{T;Q!%Ld;M;?;?e*B002ovPDHLkV1hCmm39CC diff --git a/textures/jonez_mosaic_pavement.png b/textures/jonez_mosaic_pavement.png new file mode 100644 index 0000000000000000000000000000000000000000..9630905b7c3eae7830b34761c055f152ea87dc8f GIT binary patch literal 1009 zcmVe zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00UV`L_t(o!|m3~ZX87bK+)UP zRn?E_nejYqLjp(`B8(Kl2KKOltPm1QK7ciUkY8hgKoLYliV;>4C$SyHcH;3o`cd80 zUB!k!=mncuU!DC8e*Wp6Kltd7Bu!}Q8t)w5J9HEiD#hc!{^a1}L#DGitL1_;%jmie ztuKX!;ic^KjV7w7AYmse^Kig?>wJ<{v~CRv%i0vBuVfDbggAL z8dDZ!FE34zbNc**kB*wtI^-$*7E>ua}$ElF4L75Qa!8X}gZv<|q}TwI-B`G#fG=&5%;FGoE3ZlGa+J zQuOuVdvkSPD#_mdyV$1Y`tmilwm8>eOvTf`A0xCvDuobWnu@w^xOjbrF(rTe{u_O~ zOp=Ii?tRC}$uk_69NztcNNd6{WIUN+>zc2>`j)e^Q*M@T&?-R$0n^DY!z|;$ufO#2 z^7aQGa&>jd$+IJ*(%7b^EDOAIBuUEhX2I#p=RA3Oga`t(ju;F_s4(Ki=>>hg6ap5D zYXH(TBZ^~^binFnfo)sLvS7VlF&t08dD3*qCSTG>%P5=B*UL0X5kjEjn5rt!QG_uy zQc6OlP)gDHmPl))&@7j4Fts5`Ggi$teZ3H2KxH;$*_h#I2j?8~=^oi=huRo|ARvh| zyoV@?>6~LW-$R6wvdHQ0h31|8_c2vLzFE=OhUNMiYa4VF5sHA>bWRdybj~rI?BSe8 z$&hR`rmvUQ)+nW^O$C5=5v>P+!C*)zHC<-`k83-$jwtJbP)M|n>FdK!@67M#n>C@7 z)W%TdIc2`4wU)|MoIE+EEK9t1TwI)EnhH}@IM-sTlH-4l=;OCPu>FDU4{U#6`vcn_ f*#5x({saF41ze{98=r=`00000NkvXXu0mjfV1CwE literal 0 HcmV?d00001 diff --git a/textures/jonez_pebbled_pavement.png b/textures/jonez_pebbled_pavement.png new file mode 100644 index 0000000000000000000000000000000000000000..31225c9baae38428f5a29e4d75faf4e5318e94f8 GIT binary patch literal 3115 zcmV+`4Ak?9P)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{01J~zL_t(o!&R4Qa8>7h#((eG z&%NhfT`dSO0t^^~gw19fFlI9hZt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