From 59487a424d3b608199c1dc258306a1c995f3dbb0 Mon Sep 17 00:00:00 2001 From: mruncreative Date: Sun, 14 Apr 2024 21:01:08 +0200 Subject: [PATCH] Reduced the amount of textures needed for pistons with texture modifiers. Will continue to work fine with all existing texturepacks. No change in graphics. --- mesecons_pistons/init.lua | 36 +++++++++--------- .../textures/mesecons_piston_bottom.png | Bin 738 -> 0 bytes .../textures/mesecons_piston_left.png | Bin 740 -> 0 bytes .../mesecons_piston_pusher_bottom.png | Bin 720 -> 0 bytes .../textures/mesecons_piston_pusher_left.png | Bin 733 -> 0 bytes .../textures/mesecons_piston_pusher_right.png | Bin 751 -> 0 bytes .../textures/mesecons_piston_right.png | Bin 733 -> 0 bytes 7 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 mesecons_pistons/textures/mesecons_piston_bottom.png delete mode 100644 mesecons_pistons/textures/mesecons_piston_left.png delete mode 100644 mesecons_pistons/textures/mesecons_piston_pusher_bottom.png delete mode 100644 mesecons_pistons/textures/mesecons_piston_pusher_left.png delete mode 100644 mesecons_pistons/textures/mesecons_piston_pusher_right.png delete mode 100644 mesecons_pistons/textures/mesecons_piston_right.png diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 3d75b353..274258ee 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -270,9 +270,9 @@ minetest.register_node("mesecons_pistons:piston_normal_off", { description = S("Piston"), tiles = { "mesecons_piston_top.png", - "mesecons_piston_bottom.png", - "mesecons_piston_left.png", - "mesecons_piston_right.png", + "mesecons_piston_top.png^[transform2", + "mesecons_piston_top.png^[transform3", + "mesecons_piston_top.png^[transform1", "mesecons_piston_back.png", "mesecons_piston_pusher_front.png" }, @@ -296,9 +296,9 @@ minetest.register_node("mesecons_pistons:piston_normal_on", { drawtype = "nodebox", tiles = { "mesecons_piston_top.png", - "mesecons_piston_bottom.png", - "mesecons_piston_left.png", - "mesecons_piston_right.png", + "mesecons_piston_top.png^[transform2", + "mesecons_piston_top.png^[transform3", + "mesecons_piston_top.png^[transform1", "mesecons_piston_back.png", "mesecons_piston_on_front.png" }, @@ -325,9 +325,9 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", { drawtype = "nodebox", tiles = { "mesecons_piston_pusher_top.png", - "mesecons_piston_pusher_bottom.png", - "mesecons_piston_pusher_left.png", - "mesecons_piston_pusher_right.png", + "mesecons_piston_pusher_top.png^[transform2", + "mesecons_piston_pusher_top.png^[transform3", + "mesecons_piston_pusher_top.png^[transform1", "mesecons_piston_pusher_back.png", "mesecons_piston_pusher_front.png" }, @@ -349,9 +349,9 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", { description = S("Sticky Piston"), tiles = { "mesecons_piston_top.png", - "mesecons_piston_bottom.png", - "mesecons_piston_left.png", - "mesecons_piston_right.png", + "mesecons_piston_top.png^[transform2", + "mesecons_piston_top.png^[transform3", + "mesecons_piston_top.png^[transform1", "mesecons_piston_back.png", "mesecons_piston_pusher_front_sticky.png" }, @@ -375,9 +375,9 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", { drawtype = "nodebox", tiles = { "mesecons_piston_top.png", - "mesecons_piston_bottom.png", - "mesecons_piston_left.png", - "mesecons_piston_right.png", + "mesecons_piston_top.png^[transform2", + "mesecons_piston_top.png^[transform3", + "mesecons_piston_top.png^[transform1", "mesecons_piston_back.png", "mesecons_piston_on_front.png" }, @@ -404,9 +404,9 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", { drawtype = "nodebox", tiles = { "mesecons_piston_pusher_top.png", - "mesecons_piston_pusher_bottom.png", - "mesecons_piston_pusher_left.png", - "mesecons_piston_pusher_right.png", + "mesecons_piston_pusher_top.png^[transform2", + "mesecons_piston_pusher_top.png^[transform3", + "mesecons_piston_pusher_top.png^[transform1", "mesecons_piston_pusher_back.png", "mesecons_piston_pusher_front_sticky.png" }, diff --git a/mesecons_pistons/textures/mesecons_piston_bottom.png b/mesecons_pistons/textures/mesecons_piston_bottom.png deleted file mode 100644 index d4b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C)23k7z+Vpw!E7)FDh z7v#~K*RLJd>vX#or7!_Xwz09fzrSxgwx7?ZX-X+QIXM+VY&AB&e*N+vt-p9$-6>0h P00000NkvXXu0mjf*85iq diff --git a/mesecons_pistons/textures/mesecons_piston_pusher_right.png b/mesecons_pistons/textures/mesecons_piston_pusher_right.png deleted file mode 100644 index af86c0f13c12c6465e5fbe240f721db560c31ae8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 751 zcmV0gb z%Wl&^6b4|=#dZ?MO>8%5t_`J4X)7eu6`PhdyZ}o!6-&1CHQ2F2V#yOAAt5A?xGX9m z7W9%{Xp%MwiR0Lg?TPIfn_>Hn^lQ%f4>&kD*x!G2);Wg|w%Z$o5LuRIw(WcV?(Xiz z#W}_z#wZ}9QLlThgPuPweR=m9&$|j6BLBSH-s^sPRodM9@%Hfc*N4f;NBiRQ_TEzn z!M8Uro;-Vr9m~!risc5k!_#)Vh1aK(;TVl4MO{rnB4;uQOU>!jahzOMxg8Af)n%{M zY5)l{Ciru|R;&FaUL40uMKuf-f{P@5CC^Z{EU7L(2 zJKK4vu3{j^5G0I21UUi#y_=z?>A0j)pQKU1NaRS8 z#5x^kI9|ICyWM`mXp$tdEcweF9$}6~p6A1O5hOIi2&IBRNWdQ~b7olJ1Dsni$*p zTrOM$^SO^KE2GGx(J1r+A_O4`vpDAQX_}M`qu1}j-`~GdVn@CedgFy-*6Ot^NC5!4 zrmwf|$S9TJf+H6!MqwC238#)1xgI4H%}Ltt^-eBF)oQhKJ-9LLu{Hl|&Ny;OK*rDw zOet$^G?IunDmt!7MKO-xU@%y%=HqxKqVVqeDiB33Gzzc&TwwrMp`eFhgn*P^DiEX8 zXw{buW3mXaBvxuwh;XJ{QuC@~l=;rU;o;%Et*!BR!taOoKb=mMoWe(RU6*f$PtSkv h2SF~Im4_H82#5$F z&h5nacG7v+9nDJfoB#Y59UUDp#)iY8Wm)(4_nh-m$+GQECYz0;cr;qo<2bf$`}N-5 zx8q|nnM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