Compare commits
5 Commits
bcaf97e626
...
dd48e08ac9
Author | SHA1 | Date |
---|---|---|
OldCoder | dd48e08ac9 | |
HybridDog | b3a7e17d32 | |
HybridDog | d09d834246 | |
HybridDog | 39a7709e9c | |
HybridDog | d8d84dd2c2 |
|
@ -1,2 +1,4 @@
|
|||
Obviously all the nodes connected_textures should change already have the dt
|
||||
|
||||
TODO:
|
||||
— add more glass
|
||||
— add glass
|
||||
|
|
26
init.lua
|
@ -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
|
||||
|
|
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 109 B |