From d41d8e042b0bb6568697d2ba11058cbe64d2465a Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Sat, 27 Aug 2022 16:50:15 +0200 Subject: [PATCH] Fix node sounds, remove arrows_flp texture in favour of texture modifier --- init.lua | 8 -------- nodes.lua | 13 ++++++++++--- textures/vehicles_arrows_flp.png | Bin 141 -> 0 bytes 3 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 textures/vehicles_arrows_flp.png diff --git a/init.lua b/init.lua index 0b764ef..0edd5b6 100644 --- a/init.lua +++ b/init.lua @@ -10,14 +10,6 @@ local enable_built_in = true if enable_built_in then -local stone_sound = {} -if minetest.global_exists("default") then - stone_sound = default.node_sound_stone_defaults() -elseif minetest.global_exists("sounds") then - stone_sound = sounds.node_stone() -end - - local function missile_bullet_hit_check(self, obj, pos) local pos = self.object:getpos() do diff --git a/nodes.lua b/nodes.lua index e8b647b..37f0454 100644 --- a/nodes.lua +++ b/nodes.lua @@ -3,6 +3,13 @@ local S = minetest.get_translator("vehicles") +local stone_sound = {} +if minetest.global_exists("default") then + stone_sound = default.node_sound_stone_defaults() +elseif minetest.global_exists("sounds") then + stone_sound = sounds.node_stone() +end + function vehicles.register_simplenode(name, desc, texture, light) minetest.register_node("vehicles:"..name, { description = desc, @@ -17,7 +24,7 @@ end--function vehicles.register_simplenode(name, desc, texture, light) vehicles.register_simplenode("road", S("Road surface"), "vehicles_road.png", 0) vehicles.register_simplenode("concrete", S("Concrete"), "vehicles_concrete.png", 0) vehicles.register_simplenode("arrows", S("Turning Arrows(left)"), "vehicles_arrows.png", 10) -vehicles.register_simplenode("arrows_flp", S("Turning Arrows(right)"), "vehicles_arrows_flp.png", 10) +vehicles.register_simplenode("arrows_flp", S("Turning Arrows(right)"), "vehicles_arrows.png^[transformFX", 10) vehicles.register_simplenode("checker", S("Checkered surface"), "vehicles_checker.png", 0) vehicles.register_simplenode("stripe", S("Road surface (stripe)"), "vehicles_road_stripe.png", 0) vehicles.register_simplenode("stripe2", S("Road surface (double stripe)"), "vehicles_road_stripe2.png", 0) @@ -115,9 +122,9 @@ minetest.register_node("vehicles:add_arrow_flp", { description = S("arrows(right)"), drawtype = "signlike", visual_scale = 2.0, - tiles = {"vehicles_arrows_flp.png"}, - inventory_image = "vehicles_arrows_flp.png", use_texture_alpha = true, + tiles = {"vehicles_arrows.png^[transformFX"}, + inventory_image = "vehicles_arrows.png^[transformFX", paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, diff --git a/textures/vehicles_arrows_flp.png b/textures/vehicles_arrows_flp.png deleted file mode 100644 index c435b87977ba0a2b884778cb28dff0c55e5d7876..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`A)YRdAr_~TFN7ui`d?@+?&sq% zk8ugZd?lw(1