Use dot texture for singular redstone dust

This commit is contained in:
Wuzzy 2017-07-21 17:49:46 +02:00
parent f24754453a
commit 42d71c5b71

View File

@ -74,6 +74,8 @@ Read the help entries on the other redstone components to learn how redstone com
local straight0_on = "redstone_redstone_dust_line0.png^[colorize:#FF0000:"..ratio_on
local straight1_off = "redstone_redstone_dust_line0.png^[colorize:#FF0000:"..ratio_off
local straight1_on = "redstone_redstone_dust_line0.png^[colorize:#FF0000:"..ratio_on
local dot_off = "redstone_redstone_dust_dot.png^[colorize:#FF0000:"..ratio_off
local dot_on = "redstone_redstone_dust_dot.png^[colorize:#FF0000:"..ratio_on
if adjx and adjz and (xp + zp + xm + zm > 2) then
table.insert(nodebox, box_bump1)
@ -85,7 +87,9 @@ Read the help entries on the other redstone components to learn how redstone com
tiles_on = { crossing_on, crossing_on, straight0_on, straight1_on, straight0_on, straight1_on, }
end
if nodeid == "00000000" then
nodebox = {-8/16, -.5, -1/16, 8/16, -.5+1/16, 1/16}
nodebox = {-8/16, -.5, -8/16, 8/16, -.5+1/16, 8/16}
tiles_off = { dot_off, dot_off, "blank.png", "blank.png", "blank.png", "blank.png" }
tiles_on = { dot_on, dot_on, "blank.png", "blank.png", "blank.png", "blank.png" }
end
minetest.register_node("mesecons:wire_"..nodeid.."_off", {