Connected textures: removed submodule, updated

master
Pitriss 2014-11-24 23:26:25 +01:00
parent 84527e0122
commit 75b7918748
16 changed files with 57 additions and 4 deletions

3
.gitmodules vendored
View File

@ -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

4
mods/connected_textures/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
## Generic ignorable patterns and files
*~
.*.swp
debug.txt

View File

@ -0,0 +1,3 @@
TODO:
— add titanium glass
— add more glass

View File

@ -0,0 +1 @@
default

View File

@ -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))

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B