Rename mod 'stairs' to 'lzr_stairs'
@ -9,7 +9,8 @@ Details (and an explanation of all the license name abbreviations) follow:
|
||||
|
||||
## Source code
|
||||
|
||||
- `player_api`, `stairs` come from Minetest Game 5.4.1 (mods modified for Lazarr!), by Minetest Game developers (see README.txt in those folders)
|
||||
- `player_api` comes from Minetest Game 5.4.1 (modified for Lazarr!), by Minetest Game developers (see README.txt in this folder)
|
||||
- `lzr_stairs` is a fork of the `stairs` mod of Minetest Game 5.4.1, by Minetest Game developers (see README.txt in this folder)
|
||||
- `lzr_hook`, based on `screwdriver2` mod by 12Me21, modified version (CC0)
|
||||
- `lzr_panes` is based on `xpanes` from Minetest Game and massively simplified (MIT License for code, CC BY-SA 3.0 for media)
|
||||
- `lzr_decor` is based on `xdecor` by jp (BSD-3 clause license; massively-simplified version from the original)
|
||||
|
@ -1,9 +1,9 @@
|
||||
stairs for for Lazarr!
|
||||
=========================
|
||||
Stairs for Lazarr!
|
||||
==================
|
||||
This mod adds stairs and slabs, but with adjustments for
|
||||
the game Lazarr! to make them compatible with lasers.
|
||||
|
||||
This mod was forked from Minetest Game.
|
||||
This mod was forked from the 'stairs' mod of Minetest Game.
|
||||
|
||||
Differences from the original:
|
||||
* Stair and slab are slightly thicker
|
@ -1,12 +1,12 @@
|
||||
-- Lazarr! mod: stairs
|
||||
-- Lazarr! mod: lzr_stairs
|
||||
-- See README.txt for licensing and other information.
|
||||
|
||||
-- Global namespace for functions
|
||||
|
||||
stairs = {}
|
||||
lzr_stairs = {}
|
||||
|
||||
-- Load support for MT game translation.
|
||||
local S = minetest.get_translator("stairs")
|
||||
-- Load support for translation.
|
||||
local S = minetest.get_translator("lzr_stairs")
|
||||
-- Same as S, but will be ignored by translation file update scripts
|
||||
local T = S
|
||||
|
||||
@ -45,9 +45,9 @@ end
|
||||
|
||||
-- Register stair.
|
||||
-- CAN be rotated.
|
||||
-- Node will be called stairs:stair_<subname>
|
||||
-- Node will be called lzr_stairs:stair_<subname>
|
||||
|
||||
function stairs.register_stair(subname, recipeitem, groups, images, description,
|
||||
function lzr_stairs.register_stair(subname, recipeitem, groups, images, description,
|
||||
sounds, worldaligntex)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
@ -75,7 +75,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
||||
local new_groups = table.copy(groups)
|
||||
new_groups.stair = 1
|
||||
new_groups.rotatable = 3
|
||||
minetest.register_node(":stairs:stair_" .. subname, {
|
||||
minetest.register_node(":lzr_stairs:stair_" .. subname, {
|
||||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = stair_images,
|
||||
@ -113,7 +113,7 @@ end
|
||||
-- * stairs:slab_<subname> for the normal slab and
|
||||
-- * stairs:slab_laser_<subname> for the slab with laser from above
|
||||
|
||||
function stairs.register_slab(subname, recipeitem, groups, images, description,
|
||||
function lzr_stairs.register_slab(subname, recipeitem, groups, images, description,
|
||||
sounds, worldaligntex)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
@ -175,7 +175,7 @@ end
|
||||
-- Register inner stair
|
||||
-- Node will be called stairs:stair_inner_<subname>
|
||||
|
||||
function stairs.register_stair_inner(subname, recipeitem, groups, images,
|
||||
function lzr_stairs.register_stair_inner(subname, recipeitem, groups, images,
|
||||
description, sounds, worldaligntex, full_description)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
@ -208,7 +208,7 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images,
|
||||
else
|
||||
description = "Inner " .. description
|
||||
end
|
||||
minetest.register_node(":stairs:stair_inner_" .. subname, {
|
||||
minetest.register_node(":lzr_stairs:stair_inner_" .. subname, {
|
||||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = stair_images,
|
||||
@ -242,7 +242,7 @@ end
|
||||
-- Register outer stair
|
||||
-- Node will be called stairs:stair_outer_<subname>
|
||||
|
||||
function stairs.register_stair_outer(subname, recipeitem, groups, images,
|
||||
function lzr_stairs.register_stair_outer(subname, recipeitem, groups, images,
|
||||
description, sounds, worldaligntex, full_description)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
@ -275,7 +275,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images,
|
||||
else
|
||||
description = "Outer " .. description
|
||||
end
|
||||
minetest.register_node(":stairs:stair_outer_" .. subname, {
|
||||
minetest.register_node(":lzr_stairs:stair_outer_" .. subname, {
|
||||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = stair_images,
|
||||
@ -308,40 +308,40 @@ end
|
||||
-- Stair/slab registration function.
|
||||
-- Nodes will be called stairs:{stair,slab}_<subname>
|
||||
|
||||
function stairs.register_stair_and_slab(subname, recipeitem, groups, images,
|
||||
function lzr_stairs.register_stair_and_slab(subname, recipeitem, groups, images,
|
||||
desc_stair, desc_slab, sounds, worldaligntex,
|
||||
desc_stair_inner, desc_stair_outer)
|
||||
stairs.register_stair(subname, recipeitem, groups, images, desc_stair,
|
||||
lzr_stairs.register_stair(subname, recipeitem, groups, images, desc_stair,
|
||||
sounds, worldaligntex)
|
||||
stairs.register_stair_inner(subname, recipeitem, groups, images,
|
||||
lzr_stairs.register_stair_inner(subname, recipeitem, groups, images,
|
||||
desc_stair, sounds, worldaligntex, desc_stair_inner)
|
||||
stairs.register_stair_outer(subname, recipeitem, groups, images,
|
||||
lzr_stairs.register_stair_outer(subname, recipeitem, groups, images,
|
||||
desc_stair, sounds, worldaligntex, desc_stair_outer)
|
||||
stairs.register_slab(subname, recipeitem, groups, images, desc_slab,
|
||||
lzr_stairs.register_slab(subname, recipeitem, groups, images, desc_slab,
|
||||
sounds, worldaligntex)
|
||||
end
|
||||
|
||||
local function my_register_slab(subname, recipeitem, groups, images,
|
||||
desc_slab, sounds, worldaligntex)
|
||||
stairs.register_slab(subname, recipeitem, groups, images, desc_slab,
|
||||
lzr_stairs.register_slab(subname, recipeitem, groups, images, desc_slab,
|
||||
sounds, worldaligntex)
|
||||
end
|
||||
|
||||
-- Local function so we can apply translations
|
||||
local function my_register_stair(subname, recipeitem, groups, images,
|
||||
desc_stair, sounds, worldaligntex)
|
||||
stairs.register_stair(subname, recipeitem, groups, images, S(desc_stair),
|
||||
lzr_stairs.register_stair(subname, recipeitem, groups, images, S(desc_stair),
|
||||
sounds, worldaligntex)
|
||||
stairs.register_stair_inner(subname, recipeitem, groups, images, "",
|
||||
lzr_stairs.register_stair_inner(subname, recipeitem, groups, images, "",
|
||||
sounds, worldaligntex, T("Inner " .. desc_stair))
|
||||
stairs.register_stair_outer(subname, recipeitem, groups, images, "",
|
||||
lzr_stairs.register_stair_outer(subname, recipeitem, groups, images, "",
|
||||
sounds, worldaligntex, T("Outer " .. desc_stair))
|
||||
end
|
||||
local function my_register_stair_and_slab(subname, recipeitem, groups, images,
|
||||
desc_stair, desc_slab, sounds, worldaligntex)
|
||||
my_register_stair(subname, recipeitem, groups, images,
|
||||
desc_stair, sounds, worldaligntex)
|
||||
stairs.register_slab(subname, recipeitem, groups, images, S(desc_slab),
|
||||
lzr_stairs.register_slab(subname, recipeitem, groups, images, S(desc_slab),
|
||||
sounds, worldaligntex)
|
||||
|
||||
if GENERATE_TRANSLATABLE_STRING_LIST then
|
||||
@ -395,78 +395,78 @@ my_register_stair_and_slab(
|
||||
true
|
||||
)
|
||||
|
||||
stairs.register_slab(
|
||||
lzr_stairs.register_slab(
|
||||
"stone_block",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"default_stone_block.png", "default_stone_block.png", "stairs_stone_block_slab.png"},
|
||||
{"default_stone_block.png", "default_stone_block.png", "lzr_stairs_stone_block_slab.png"},
|
||||
"Stone Block Slab",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
true
|
||||
)
|
||||
stairs.register_stair(
|
||||
lzr_stairs.register_stair(
|
||||
"stone_block",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"stairs_stone_block_slab.png^[transformFY","default_stone_block.png","stairs_stone_block_stair.png^[transformFX","stairs_stone_block_stair.png","default_stone_block.png","stairs_stone_block_slab.png"},
|
||||
{"lzr_stairs_stone_block_slab.png^[transformFY","default_stone_block.png","lzr_stairs_stone_block_stair.png^[transformFX","lzr_stairs_stone_block_stair.png","default_stone_block.png","lzr_stairs_stone_block_slab.png"},
|
||||
"Stone Block Stair",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
stairs.register_stair_inner(
|
||||
lzr_stairs.register_stair_inner(
|
||||
"stone_block",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"stairs_stone_block_stair_inner_top.png","default_stone_block.png","stairs_stone_block_stair.png^[transformFX","default_stone_block.png","default_stone_block.png","stairs_stone_block_stair.png"},
|
||||
{"lzr_stairs_stone_block_stair_inner_top.png","default_stone_block.png","lzr_stairs_stone_block_stair.png^[transformFX","default_stone_block.png","default_stone_block.png","lzr_stairs_stone_block_stair.png"},
|
||||
"Stone Block Stair",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
false,
|
||||
"Inner Stone Block Stair"
|
||||
)
|
||||
stairs.register_stair_outer(
|
||||
lzr_stairs.register_stair_outer(
|
||||
"stone_block",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"stairs_stone_block_stair_outer_top.png","default_stone_block.png","stairs_stone_block_stair_outer_right.png","stairs_stone_block_stair.png","stairs_stone_block_stair.png^[transformFX","stairs_stone_block_stair_outer_left.png"},
|
||||
{"lzr_stairs_stone_block_stair_outer_top.png","default_stone_block.png","lzr_stairs_stone_block_stair_outer_right.png","lzr_stairs_stone_block_stair.png","lzr_stairs_stone_block_stair.png^[transformFX","lzr_stairs_stone_block_stair_outer_left.png"},
|
||||
"Stone Block Stair",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
false,
|
||||
"Outer Stone Block Stair"
|
||||
)
|
||||
|
||||
stairs.register_slab(
|
||||
lzr_stairs.register_slab(
|
||||
"stone_block_mossy",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"default_stone_block_mossy.png", "default_stone_block_mossy.png", "stairs_stone_block_mossy_slab.png"},
|
||||
{"default_stone_block_mossy.png", "default_stone_block_mossy.png", "lzr_stairs_stone_block_mossy_slab.png"},
|
||||
"Mossy Stone Block Slab",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
true
|
||||
)
|
||||
stairs.register_stair(
|
||||
lzr_stairs.register_stair(
|
||||
"stone_block_mossy",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"stairs_stone_block_mossy_slab.png^[transformFY","default_stone_block_mossy.png","stairs_stone_block_mossy_stair.png^[transformFX","stairs_stone_block_mossy_stair.png","default_stone_block_mossy.png","stairs_stone_block_mossy_slab.png"},
|
||||
{"lzr_stairs_stone_block_mossy_slab.png^[transformFY","default_stone_block_mossy.png","lzr_stairs_stone_block_mossy_stair.png^[transformFX","lzr_stairs_stone_block_mossy_stair.png","default_stone_block_mossy.png","lzr_stairs_stone_block_mossy_slab.png"},
|
||||
"Mossy Stone Block Stair",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
stairs.register_stair_inner(
|
||||
lzr_stairs.register_stair_inner(
|
||||
"stone_block_mossy",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"stairs_stone_block_mossy_stair_inner_top.png","default_stone_block_mossy.png","stairs_stone_block_mossy_stair.png^[transformFX","default_stone_block_mossy.png","default_stone_block_mossy.png","stairs_stone_block_mossy_stair.png"},
|
||||
{"lzr_stairs_stone_block_mossy_stair_inner_top.png","default_stone_block_mossy.png","lzr_stairs_stone_block_mossy_stair.png^[transformFX","default_stone_block_mossy.png","default_stone_block_mossy.png","lzr_stairs_stone_block_mossy_stair.png"},
|
||||
"Mossy Stone Block Stair",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
false,
|
||||
"Inner Mossy Stone Block Stair"
|
||||
)
|
||||
stairs.register_stair_outer(
|
||||
lzr_stairs.register_stair_outer(
|
||||
"stone_block_mossy",
|
||||
nil,
|
||||
{breakable=1},
|
||||
{"stairs_stone_block_mossy_stair_outer_top.png","default_stone_block_mossy.png","stairs_stone_block_mossy_stair_outer_right.png","stairs_stone_block_mossy_stair.png","stairs_stone_block_mossy_stair.png^[transformFX","stairs_stone_block_mossy_stair_outer_left.png"},
|
||||
{"lzr_stairs_stone_block_mossy_stair_outer_top.png","default_stone_block_mossy.png","lzr_stairs_stone_block_mossy_stair_outer_right.png","lzr_stairs_stone_block_mossy_stair.png","lzr_stairs_stone_block_mossy_stair.png^[transformFX","lzr_stairs_stone_block_mossy_stair_outer_left.png"},
|
||||
"Mossy Stone Block Stair",
|
||||
lzr_sounds.node_sound_stone_defaults(),
|
||||
false,
|
||||
@ -658,22 +658,22 @@ S("Sandstone Slab")
|
||||
|
||||
|
||||
-- Aliases for the pre-laser color era
|
||||
minetest.register_alias("stairs:slab_wood", "stairs:slab_wood_fixed")
|
||||
minetest.register_alias("stairs:slab_wood_mossy", "stairs:slab_wood_mossy_fixed")
|
||||
minetest.register_alias("stairs:slab_palm_wood", "stairs:slab_palm_wood_fixed")
|
||||
minetest.register_alias("stairs:slab_coconut_wood", "stairs:slab_coconut_wood_fixed")
|
||||
minetest.register_alias("stairs:slab_stone", "stairs:slab_stone_fixed")
|
||||
minetest.register_alias("stairs:slab_ocean_stone", "stairs:slab_ocean_stone_fixed")
|
||||
minetest.register_alias("stairs:slab_ocean_cobble", "stairs:slab_ocean_cobble_fixed")
|
||||
minetest.register_alias("stairs:slab_thatch", "stairs:slab_thatch_fixed")
|
||||
minetest.register_alias("stairs:slab_thatch_wet", "stairs:slab_thatch_wet_fixed")
|
||||
minetest.register_alias("stairs:slab_wood", "lzr_stairs:slab_wood_fixed")
|
||||
minetest.register_alias("stairs:slab_wood_mossy", "lzr_stairs:slab_wood_mossy_fixed")
|
||||
minetest.register_alias("stairs:slab_palm_wood", "lzr_stairs:slab_palm_wood_fixed")
|
||||
minetest.register_alias("stairs:slab_coconut_wood", "lzr_stairs:slab_coconut_wood_fixed")
|
||||
minetest.register_alias("stairs:slab_stone", "lzr_stairs:slab_stone_fixed")
|
||||
minetest.register_alias("stairs:slab_ocean_stone", "lzr_stairs:slab_ocean_stone_fixed")
|
||||
minetest.register_alias("stairs:slab_ocean_cobble", "lzr_stairs:slab_ocean_cobble_fixed")
|
||||
minetest.register_alias("stairs:slab_thatch", "lzr_stairs:slab_thatch_fixed")
|
||||
minetest.register_alias("stairs:slab_thatch_wet", "lzr_stairs:slab_thatch_wet_fixed")
|
||||
|
||||
minetest.register_alias("stairs:slab_wood_laser", "stairs:slab_wood_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_wood_mossy_laser", "stairs:slab_wood_mossy_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_palm_wood_laser", "stairs:slab_palm_wood_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_coconut_wood_laser", "stairs:slab_coconut_wood_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_stone_laser", "stairs:slab_stone_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_ocean_stone_laser", "stairs:slab_ocean_stone_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_ocean_cobble_laser", "stairs:slab_ocean_cobble_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_thatch_laser", "stairs:slab_thatch_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_thatch_wet_laser", "stairs:slab_thatch_wet_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_wood_laser", "lzr_stairs:slab_wood_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_wood_mossy_laser", "lzr_stairs:slab_wood_mossy_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_palm_wood_laser", "lzr_stairs:slab_palm_wood_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_coconut_wood_laser", "lzr_stairs:slab_coconut_wood_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_stone_laser", "lzr_stairs:slab_stone_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_ocean_stone_laser", "lzr_stairs:slab_ocean_stone_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_ocean_cobble_laser", "lzr_stairs:slab_ocean_cobble_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_thatch_laser", "lzr_stairs:slab_thatch_fixed_on_1")
|
||||
minetest.register_alias("stairs:slab_thatch_wet_laser", "lzr_stairs:slab_thatch_wet_fixed_on_1")
|
@ -1,3 +1,3 @@
|
||||
name = stairs
|
||||
name = lzr_stairs
|
||||
description = Slabs and stairs with laser support
|
||||
depends = lzr_sounds, lzr_laser
|
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 721 B |
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 748 B After Width: | Height: | Size: 748 B |
Before Width: | Height: | Size: 742 B After Width: | Height: | Size: 742 B |
Before Width: | Height: | Size: 720 B After Width: | Height: | Size: 720 B |
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 553 B |
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 556 B After Width: | Height: | Size: 556 B |