Rename mod: windows → hades_windows
@ -71,8 +71,8 @@ minetest.register_node("glowcrystals:glowglass", {
|
|||||||
sounds = hades_sounds.node_sound_glass_defaults(),
|
sounds = hades_sounds.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("windows") then
|
if minetest.get_modpath("hades_windows") then
|
||||||
windows.register_window("glowcrystals:windows_glow", {
|
hades_windows.register_window("glowcrystals:windows_glow", {
|
||||||
description = S("Glowing Window"),
|
description = S("Glowing Window"),
|
||||||
texture_seam = "glowcrystals_windows_glow_seam.png",
|
texture_seam = "glowcrystals_windows_glow_seam.png",
|
||||||
texture_front = "glowcrystals_windows_glow_front.png",
|
texture_front = "glowcrystals_windows_glow_front.png",
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
name = glowcrystals
|
name = glowcrystals
|
||||||
depends = hades_sounds, hades_core, windows
|
depends = hades_sounds, hades_core
|
||||||
|
optional_depends = hades_windows
|
||||||
|
@ -15,8 +15,8 @@ local group_stereotypes = {
|
|||||||
vessel = "vessels:glass_bottle",
|
vessel = "vessels:glass_bottle",
|
||||||
coal = "hades_core:coal_lump",
|
coal = "hades_core:coal_lump",
|
||||||
flower = "hades_flowers:yellow",
|
flower = "hades_flowers:yellow",
|
||||||
window_wood = "windows:windows_wood",
|
window_wood = "hades_windows:windows_wood",
|
||||||
window_colwood = "windows:windows_wood_white",
|
window_colwood = "hades_windows:windows_wood_white",
|
||||||
chest = "hades_chests:chest",
|
chest = "hades_chests:chest",
|
||||||
unlocked_chest = "hades_chests:chest",
|
unlocked_chest = "hades_chests:chest",
|
||||||
locked_chest = "hades_chests:chest_locked",
|
locked_chest = "hades_chests:chest_locked",
|
||||||
|
23
mods/hades_windows/aliases.lua
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
minetest.register_alias("windows:windows_wood_blue", "hades_windows:window_wood_blue")
|
||||||
|
minetest.register_alias("windows:windows_wood_cyan", "hades_windows:window_wood_cyan")
|
||||||
|
minetest.register_alias("windows:windows_wood_green", "hades_windows:window_wood_green")
|
||||||
|
minetest.register_alias("windows:windows_wood_darkgreen", "hades_windows:window_wood_darkgreen")
|
||||||
|
minetest.register_alias("windows:windows_wood_yellow", "hades_windows:window_wood_yellow")
|
||||||
|
minetest.register_alias("windows:windows_wood_orange", "hades_windows:window_wood_orange")
|
||||||
|
minetest.register_alias("windows:windows_wood_brown", "hades_windows:window_wood_brown")
|
||||||
|
minetest.register_alias("windows:windows_wood_black", "hades_windows:window_wood_black")
|
||||||
|
minetest.register_alias("windows:windows_wood_red", "hades_windows:window_wood_red")
|
||||||
|
minetest.register_alias("windows:windows_wood_magenta", "hades_windows:window_wood_magenta")
|
||||||
|
minetest.register_alias("windows:windows_wood_violet", "hades_windows:window_wood_violet")
|
||||||
|
minetest.register_alias("windows:windows_wood", "hades_windows:window_wood")
|
||||||
|
minetest.register_alias("windows:windows_jungle_wood", "hades_windows:window_jungle_wood")
|
||||||
|
minetest.register_alias("windows:windows_pale_wood", "hades_windows:window_pale_wood")
|
||||||
|
minetest.register_alias("windows:windows_cream_wood", "hades_windows:window_cream_wood")
|
||||||
|
minetest.register_alias("windows:windows_lush_wood", "hades_windows:window_lush_wood")
|
||||||
|
minetest.register_alias("windows:paperwall", "hades_windows:paperwall")
|
||||||
|
minetest.register_alias("windows:windows_obsidian", "hades_windows:window_obsidian")
|
||||||
|
minetest.register_alias("windows:windows_wood_white", "hades_windows:window_wood_white")
|
||||||
|
minetest.register_alias("windows:windows_wood_darkgrey", "hades_windows:window_wood_darkgrey")
|
||||||
|
minetest.register_alias("windows:windows_wood_grey", "hades_windows:window_wood_grey")
|
||||||
|
minetest.register_alias("windows:windows_wood_uncolored", "hades_windows:window_wood_uncolored")
|
||||||
|
minetest.register_alias("windows:windows_wood_pink", "hades_windows:window_wood_pink")
|
@ -1,8 +1,8 @@
|
|||||||
local S = minetest.get_translator("windows")
|
local S = minetest.get_translator("hades_windows")
|
||||||
|
|
||||||
windows = {}
|
hades_windows = {}
|
||||||
|
|
||||||
windows.register_window = function(id, def)
|
hades_windows.register_window = function(id, def)
|
||||||
local window_wood, window_colwood
|
local window_wood, window_colwood
|
||||||
if def.is_wood then
|
if def.is_wood then
|
||||||
window_wood=1
|
window_wood=1
|
||||||
@ -50,47 +50,47 @@ windows.register_window = function(id, def)
|
|||||||
minetest.register_node(id, odef)
|
minetest.register_node(id, odef)
|
||||||
end
|
end
|
||||||
|
|
||||||
windows.register_window("windows:windows_wood", {
|
hades_windows.register_window("hades_windows:window_wood", {
|
||||||
description = S("Temperate Wood Window"),
|
description = S("Temperate Wood Window"),
|
||||||
texture_seam = "windows_windows_wood_seam.png",
|
texture_seam = "hades_windows_windows_wood_seam.png",
|
||||||
texture_front = "windows_windows_wood_front.png",
|
texture_front = "hades_windows_windows_wood_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
})
|
})
|
||||||
windows.register_window("windows:windows_jungle_wood", {
|
hades_windows.register_window("hades_windows:window_jungle_wood", {
|
||||||
description = S("Tropical Wood Window"),
|
description = S("Tropical Wood Window"),
|
||||||
texture_seam = "windows_windows_jwood_seam.png",
|
texture_seam = "hades_windows_windows_jwood_seam.png",
|
||||||
texture_front = "windows_windows_jwood_front.png",
|
texture_front = "hades_windows_windows_jwood_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
})
|
})
|
||||||
windows.register_window("windows:windows_pale_wood", {
|
hades_windows.register_window("hades_windows:window_pale_wood", {
|
||||||
description = S("Pale Wood Window"),
|
description = S("Pale Wood Window"),
|
||||||
texture_seam = "windows_windows_palewood_seam.png",
|
texture_seam = "hades_windows_windows_palewood_seam.png",
|
||||||
texture_front = "windows_windows_palewood_front.png",
|
texture_front = "hades_windows_windows_palewood_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
})
|
})
|
||||||
windows.register_window("windows:windows_cream_wood", {
|
hades_windows.register_window("hades_windows:window_cream_wood", {
|
||||||
description = S("Cream Wood Window"),
|
description = S("Cream Wood Window"),
|
||||||
texture_seam = "windows_windows_creamwood_seam.png",
|
texture_seam = "hades_windows_windows_creamwood_seam.png",
|
||||||
texture_front = "windows_windows_creamwood_front.png",
|
texture_front = "hades_windows_windows_creamwood_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
})
|
})
|
||||||
windows.register_window("windows:windows_lush_wood", {
|
hades_windows.register_window("hades_windows:window_lush_wood", {
|
||||||
description = S("Lush Wood Window"),
|
description = S("Lush Wood Window"),
|
||||||
texture_seam = "windows_windows_lushwood_seam.png",
|
texture_seam = "hades_windows_windows_lushwood_seam.png",
|
||||||
texture_front = "windows_windows_lushwood_front.png",
|
texture_front = "hades_windows_windows_lushwood_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
})
|
})
|
||||||
windows.register_window("windows:windows_wood_uncolored", {
|
hades_windows.register_window("hades_windows:window_wood_uncolored", {
|
||||||
description = S("Uncolored Canvas Wood Window"),
|
description = S("Uncolored Canvas Wood Window"),
|
||||||
texture_seam = "windows_windows_uncoloredwood_seam.png",
|
texture_seam = "hades_windows_windows_uncoloredwood_seam.png",
|
||||||
texture_front = "windows_windows_uncoloredwood_front.png",
|
texture_front = "hades_windows_windows_uncoloredwood_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
is_colwood = true,
|
is_colwood = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_wood 4',
|
output = 'hades_windows:window_wood 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_trees:wood', 'hades_core:glass', 'hades_trees:wood'},
|
{'hades_trees:wood', 'hades_core:glass', 'hades_trees:wood'},
|
||||||
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
||||||
@ -98,7 +98,7 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_jungle_wood 4',
|
output = 'hades_windows:window_jungle_wood 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_trees:jungle_wood', 'hades_core:glass', 'hades_trees:jungle_wood'},
|
{'hades_trees:jungle_wood', 'hades_core:glass', 'hades_trees:jungle_wood'},
|
||||||
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
||||||
@ -106,7 +106,7 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_pale_wood 4',
|
output = 'hades_windows:window_pale_wood 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_trees:pale_wood', 'hades_core:glass', 'hades_trees:pale_wood'},
|
{'hades_trees:pale_wood', 'hades_core:glass', 'hades_trees:pale_wood'},
|
||||||
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
||||||
@ -114,7 +114,7 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_cream_wood 4',
|
output = 'hades_windows:window_cream_wood 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_trees:cream_wood', 'hades_core:glass', 'hades_trees:cream_wood'},
|
{'hades_trees:cream_wood', 'hades_core:glass', 'hades_trees:cream_wood'},
|
||||||
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
||||||
@ -122,7 +122,7 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_lush_wood 4',
|
output = 'hades_windows:window_lush_wood 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_trees:lush_wood', 'hades_core:glass', 'hades_trees:lush_wood'},
|
{'hades_trees:lush_wood', 'hades_core:glass', 'hades_trees:lush_wood'},
|
||||||
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
||||||
@ -131,11 +131,11 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = 'windows:windows_wood_uncolored',
|
output = 'hades_windows:window_wood_uncolored',
|
||||||
recipe = { 'group:window_colwood', 'hades_trees:canvas_leaves' },
|
recipe = { 'group:window_colwood', 'hades_trees:canvas_leaves' },
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_wood_uncolored 4',
|
output = 'hades_windows:window_wood_uncolored 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_trees:colwood_uncolored', 'hades_core:glass', 'hades_trees:colwood_uncolored'},
|
{'hades_trees:colwood_uncolored', 'hades_core:glass', 'hades_trees:colwood_uncolored'},
|
||||||
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
{'hades_core:glass', 'hades_core:glass', 'hades_core:glass'},
|
||||||
@ -161,30 +161,30 @@ local windows_simple = {
|
|||||||
{ "wood_brown", S("Brown Canvas Wood Window"), "dye:brown"},
|
{ "wood_brown", S("Brown Canvas Wood Window"), "dye:brown"},
|
||||||
}
|
}
|
||||||
for w=1, #windows_simple do
|
for w=1, #windows_simple do
|
||||||
windows.register_window("windows:windows_"..windows_simple[w][1], {
|
hades_windows.register_window("hades_windows:window_"..windows_simple[w][1], {
|
||||||
description = windows_simple[w][2],
|
description = windows_simple[w][2],
|
||||||
texture_seam = "windows_windows_"..windows_simple[w][1].."_seam.png",
|
texture_seam = "hades_windows_windows_"..windows_simple[w][1].."_seam.png",
|
||||||
texture_front = "windows_windows_"..windows_simple[w][1].."_front.png",
|
texture_front = "hades_windows_windows_"..windows_simple[w][1].."_front.png",
|
||||||
is_wood = true,
|
is_wood = true,
|
||||||
is_colwood = true,
|
is_colwood = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = 'windows:windows_'..windows_simple[w][1],
|
output = 'hades_windows:window_'..windows_simple[w][1],
|
||||||
recipe = { 'group:window_colwood', windows_simple[w][3] },
|
recipe = { 'group:window_colwood', windows_simple[w][3] },
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
windows.register_window("windows:paperwall", {
|
hades_windows.register_window("hades_windows:paperwall", {
|
||||||
description = S("Paper Frame"),
|
description = S("Paper Frame"),
|
||||||
texture_seam = "windows_windows_lushwood_seam.png",
|
texture_seam = "hades_windows_windows_lushwood_seam.png",
|
||||||
texture_front = "windows_paperwall_front.png",
|
texture_front = "hades_windows_paperwall_front.png",
|
||||||
groups = { snappy=2, choppy=2, cracky=3, oddly_breakable_by_hand=3 },
|
groups = { snappy=2, choppy=2, cracky=3, oddly_breakable_by_hand=3 },
|
||||||
sounds = hades_sounds.node_sound_wood_defaults(),
|
sounds = hades_sounds.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:paperwall 4',
|
output = 'hades_windows:paperwall 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'group:wood', 'hades_core:paper', 'group:wood'},
|
{'group:wood', 'hades_core:paper', 'group:wood'},
|
||||||
{'hades_core:paper', 'hades_core:paper', 'hades_core:paper'},
|
{'hades_core:paper', 'hades_core:paper', 'hades_core:paper'},
|
||||||
@ -192,20 +192,24 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
windows.register_window("windows:windows_obsidian", {
|
hades_windows.register_window("hades_windows:window_obsidian", {
|
||||||
description = S("Obsidian Window"),
|
description = S("Obsidian Window"),
|
||||||
texture_seam = "windows_windows_obsidian_seam.png",
|
texture_seam = "hades_windows_windows_obsidian_seam.png",
|
||||||
texture_front = "windows_windows_obsidian_front.png",
|
texture_front = "hades_windows_windows_obsidian_front.png",
|
||||||
groups = { cracky=3 },
|
groups = { cracky=3 },
|
||||||
sounds = hades_sounds.node_sound_glass_defaults({
|
sounds = hades_sounds.node_sound_glass_defaults({
|
||||||
footstep = hades_sounds.node_sound_stone_defaults().footstep
|
footstep = hades_sounds.node_sound_stone_defaults().footstep
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'windows:windows_obsidian 4',
|
output = 'hades_windows:window_obsidian 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_core:obsidian_shard', 'hades_core:obsidian_glass', 'hades_core:obsidian_shard'},
|
{'hades_core:obsidian_shard', 'hades_core:obsidian_glass', 'hades_core:obsidian_shard'},
|
||||||
{'hades_core:obsidian_glass', 'hades_core:obsidian_glass', 'hades_core:obsidian_glass'},
|
{'hades_core:obsidian_glass', 'hades_core:obsidian_glass', 'hades_core:obsidian_glass'},
|
||||||
{'hades_core:obsidian_shard', 'hades_core:obsidian_glass', 'hades_core:obsidian_shard'},
|
{'hades_core:obsidian_shard', 'hades_core:obsidian_glass', 'hades_core:obsidian_shard'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Register legacy aliases
|
||||||
|
dofile(minetest.get_modpath("hades_windows").."/aliases.lua")
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
# textdomain: windows
|
# textdomain: hades_windows
|
||||||
Temperate Wood Window=Gemäßigtholzfenster
|
Temperate Wood Window=Gemäßigtholzfenster
|
||||||
Tropical Wood Window=Tropenholzfenster
|
Tropical Wood Window=Tropenholzfenster
|
||||||
Pale Wood Window=Bleichholzfenster
|
Pale Wood Window=Bleichholzfenster
|
@ -1,4 +1,4 @@
|
|||||||
# textdomain: windows
|
# textdomain: hades_windows
|
||||||
Temperate Wood Window=
|
Temperate Wood Window=
|
||||||
Tropical Wood Window=
|
Tropical Wood Window=
|
||||||
Pale Wood Window=
|
Pale Wood Window=
|
@ -1,3 +1,3 @@
|
|||||||
name = windows
|
name = hades_windows
|
||||||
description = Adds some simple window blocks
|
description = Adds some simple window blocks
|
||||||
depends = hades_core, hades_trees, hades_sounds
|
depends = hades_core, hades_trees, hades_sounds
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 367 B |