Fix node sounds, remove arrows_flp texture in favour of texture modifier

This commit is contained in:
ROllerozxa 2022-08-27 16:50:15 +02:00
parent 0edc01bae1
commit d41d8e042b
3 changed files with 10 additions and 11 deletions

View File

@ -10,14 +10,6 @@ local enable_built_in = true
if enable_built_in then 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 function missile_bullet_hit_check(self, obj, pos)
local pos = self.object:getpos() local pos = self.object:getpos()
do do

View File

@ -3,6 +3,13 @@
local S = minetest.get_translator("vehicles") 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) function vehicles.register_simplenode(name, desc, texture, light)
minetest.register_node("vehicles:"..name, { minetest.register_node("vehicles:"..name, {
description = desc, 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("road", S("Road surface"), "vehicles_road.png", 0)
vehicles.register_simplenode("concrete", S("Concrete"), "vehicles_concrete.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", 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("checker", S("Checkered surface"), "vehicles_checker.png", 0)
vehicles.register_simplenode("stripe", S("Road surface (stripe)"), "vehicles_road_stripe.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) 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)"), description = S("arrows(right)"),
drawtype = "signlike", drawtype = "signlike",
visual_scale = 2.0, visual_scale = 2.0,
tiles = {"vehicles_arrows_flp.png"},
inventory_image = "vehicles_arrows_flp.png",
use_texture_alpha = true, use_texture_alpha = true,
tiles = {"vehicles_arrows.png^[transformFX"},
inventory_image = "vehicles_arrows.png^[transformFX",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
sunlight_propagates = true, sunlight_propagates = true,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B