Compare commits

...

5 Commits

Author SHA1 Message Date
OldCoder dd48e08ac9 Rename directory named as a literal newline to "n" 2022-09-04 21:09:44 -07:00
HybridDog b3a7e17d32 now it does nothing 2016-02-21 10:53:08 +01:00
HybridDog d09d834246 🐈 2016-02-12 17:22:48 +01:00
HybridDog 39a7709e9c make it use glasslike_framed_optional 2016-02-07 20:08:47 +01:00
HybridDog d8d84dd2c2 🐈 2015-07-09 20:23:55 +02:00
7 changed files with 17 additions and 13 deletions

View File

@ -1,2 +1,4 @@
Obviously all the nodes connected_textures should change already have the dt
TODO:
— add more glass
— add glass

View File

@ -1,24 +1,26 @@
local load_time_start = os.clock()
local glass_list = {
["default:glass"] = {"default_glass.png", "connected_textures_glass_stripes.png"},
["default:obsidian_glass"] = {"default_obsidian_glass.png", "connected_textures_invisible.png"},
["moreblocks:iron_glass"] = {"moreblocks_iron_glass.png", "connected_textures_iron_glass_stripes.png"},
["moreblocks:coal_glass"] = {"moreblocks_coal_glass.png", "connected_textures_coal_glass_stripes.png"},
["moreblocks:clean_glass"] = {"moreblocks_clean_glass.png", "connected_textures_invisible.png"},
["moreblocks:trap_glass"] = {"moreblocks_trap_glass.png", "connected_textures_glass_stripes.png"},
["moreblocks:super_glow_glass"] = {"moreblocks_super_glow_glass.png", "connected_textures_glow_glass_stripes.png"},
["titanium:glass"] = {"titanium_glass.png", "connected_textures_titanium_glass_stripes.png"},
}
for node,img in pairs(glass_list) do
if minetest.registered_nodes[node] then
minetest.override_item(node, {tiles = img, drawtype = "glasslike_framed"})
local def = minetest.registered_nodes[node]
if def
and def.drawtype == "glasslike" then
def.tiles[2] = img
minetest.override_item(node, {tiles = def.tiles, drawtype = "glasslike_framed_optional"})
else
minetest.log("error", "[connected_textures] "..node.." isn't overridden.")
end
end
--[[
local bookshelf = minetest.registered_nodes["default:bookshelf"]
if bookshelf then
bookshelf.tiles[2] = "connected_textures_bookshelf_middle.png"
minetest.override_item(node, {tiles = def.tiles, drawtype = "glasslike_framed_optional", paramtype = "light"})
end--]]
local time = math.floor(tonumber(os.clock()-load_time_start)*100+0.5)/100
local msg = "[connected_textures] loaded after ca. "..time
if time > 0.05 then

View File

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 413 B

View File

Before

Width:  |  Height:  |  Size: 447 B

After

Width:  |  Height:  |  Size: 447 B

View File

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 B