Connected textures: removed submodule, updated
|
@ -25,9 +25,6 @@
|
|||
[submodule "mods/trash_can"]
|
||||
path = mods/trash_can
|
||||
url = https://github.com/4Evergreen4/trash_can.git
|
||||
[submodule "mods/connected_textures"]
|
||||
path = mods/connected_textures
|
||||
url = https://github.com/HybridDog/connected_textures.git
|
||||
[submodule "mods/gloopblocks"]
|
||||
path = mods/gloopblocks
|
||||
url = https://github.com/VanessaE/gloopblocks.git
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f07361317f7509db04f3ee25147ecfaa9bdd8c30
|
|
@ -0,0 +1,4 @@
|
|||
## Generic ignorable patterns and files
|
||||
*~
|
||||
.*.swp
|
||||
debug.txt
|
|
@ -0,0 +1,3 @@
|
|||
TODO:
|
||||
— add titanium glass
|
||||
— add more glass
|
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,49 @@
|
|||
local load_time_start = os.clock()
|
||||
local function connect_glass(node, img)
|
||||
local tmp = minetest.registered_nodes[node]
|
||||
if not tmp then
|
||||
return
|
||||
end
|
||||
tmp.tiles = img
|
||||
tmp.drawtype = "glasslike_framed"
|
||||
minetest.register_node(":"..node, tmp)
|
||||
end
|
||||
|
||||
|
||||
local d_glass_list = {
|
||||
{"glass", {"default_glass.png", "connected_textures_glass_stripes.png"}},
|
||||
{"obsidian_glass", {"default_obsidian_glass.png", "connected_textures_invisible.png"}}
|
||||
}
|
||||
|
||||
for _,i in ipairs(d_glass_list) do
|
||||
connect_glass("default:"..i[1], i[2])
|
||||
end
|
||||
|
||||
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
|
||||
local m_glass_list = {
|
||||
{"iron_glass", {"moreblocks_iron_glass.png", "connected_textures_iron_glass_stripes.png"}},
|
||||
{"coal_glass", {"moreblocks_coal_glass.png", "connected_textures_coal_glass_stripes.png"}},
|
||||
{"clean_glass", {"moreblocks_clean_glass.png", "connected_textures_invisible.png"}},
|
||||
{"trap_glass", {"moreblocks_trap_glass.png", "connected_textures_glass_stripes.png"}},
|
||||
{"super_glow_glass", {"moreblocks_super_glow_glass.png", "connected_textures_glow_glass_stripes.png"}},
|
||||
}
|
||||
|
||||
for _,i in ipairs(m_glass_list) do
|
||||
connect_glass("moreblocks:"..i[1], i[2])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
minetest.register_node(":default:ice", {
|
||||
description = "Ice",
|
||||
tiles = {"connected_textures_ice.png"},
|
||||
is_ground_content = true,
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
print(string.format("[connected_textures] loaded after ca. %.2fs", os.clock() - load_time_start))
|
After Width: | Height: | Size: 413 B |
After Width: | Height: | Size: 447 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 155 B |
After Width: | Height: | Size: 195 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 81 B |
After Width: | Height: | Size: 192 B |
After Width: | Height: | Size: 148 B |