Initial commit

This commit is contained in:
Yessiest 2022-06-11 00:00:16 +00:00
parent e86d0dff94
commit e1be7b551d
3 changed files with 24 additions and 12 deletions

View File

@ -75,3 +75,7 @@ default:torch 99,default:cobble 99
# Enable cloud variation by the 'weather' mod. # Enable cloud variation by the 'weather' mod.
# Non-functional in V6 or Singlenode mapgens. # Non-functional in V6 or Singlenode mapgens.
#enable_weather = true #enable_weather = true
# World-align stairs to fix the way minetest
# renders them
#stairs_world_align = true

View File

@ -24,6 +24,10 @@ minetest.register_alias("stairs:slab_pinewood", "stairs:slab_pine_wood")
local replace = minetest.settings:get_bool("enable_stairs_replace_abm") local replace = minetest.settings:get_bool("enable_stairs_replace_abm")
-- Get setting for replace ABM
local walign_stairs = minetest.settings:get_bool("stairs_world_align")
local function rotate_and_place(itemstack, placer, pointed_thing) local function rotate_and_place(itemstack, placer, pointed_thing)
local p0 = pointed_thing.under local p0 = pointed_thing.under
local p1 = pointed_thing.above local p1 = pointed_thing.above
@ -535,7 +539,7 @@ my_register_stair_and_slab(
"Wooden Stair", "Wooden Stair",
"Wooden Slab", "Wooden Slab",
default.node_sound_wood_defaults(), default.node_sound_wood_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -546,7 +550,7 @@ my_register_stair_and_slab(
"Jungle Wood Stair", "Jungle Wood Stair",
"Jungle Wood Slab", "Jungle Wood Slab",
default.node_sound_wood_defaults(), default.node_sound_wood_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -557,7 +561,7 @@ my_register_stair_and_slab(
"Pine Wood Stair", "Pine Wood Stair",
"Pine Wood Slab", "Pine Wood Slab",
default.node_sound_wood_defaults(), default.node_sound_wood_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -568,7 +572,7 @@ my_register_stair_and_slab(
"Acacia Wood Stair", "Acacia Wood Stair",
"Acacia Wood Slab", "Acacia Wood Slab",
default.node_sound_wood_defaults(), default.node_sound_wood_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -579,7 +583,7 @@ my_register_stair_and_slab(
"Aspen Wood Stair", "Aspen Wood Stair",
"Aspen Wood Slab", "Aspen Wood Slab",
default.node_sound_wood_defaults(), default.node_sound_wood_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -623,7 +627,7 @@ my_register_stair_and_slab(
"Stone Brick Stair", "Stone Brick Stair",
"Stone Brick Slab", "Stone Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -667,7 +671,7 @@ my_register_stair_and_slab(
"Desert Stone Brick Stair", "Desert Stone Brick Stair",
"Desert Stone Brick Slab", "Desert Stone Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -700,7 +704,7 @@ my_register_stair_and_slab(
"Sandstone Brick Stair", "Sandstone Brick Stair",
"Sandstone Brick Slab", "Sandstone Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -733,7 +737,7 @@ my_register_stair_and_slab(
"Desert Sandstone Brick Stair", "Desert Sandstone Brick Stair",
"Desert Sandstone Brick Slab", "Desert Sandstone Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -766,7 +770,7 @@ my_register_stair_and_slab(
"Silver Sandstone Brick Stair", "Silver Sandstone Brick Stair",
"Silver Sandstone Brick Slab", "Silver Sandstone Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -799,7 +803,7 @@ my_register_stair_and_slab(
"Obsidian Brick Stair", "Obsidian Brick Stair",
"Obsidian Brick Slab", "Obsidian Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(
@ -821,7 +825,7 @@ my_register_stair_and_slab(
"Brick Stair", "Brick Stair",
"Brick Slab", "Brick Slab",
default.node_sound_stone_defaults(), default.node_sound_stone_defaults(),
false walign_stairs
) )
my_register_stair_and_slab( my_register_stair_and_slab(

View File

@ -75,3 +75,7 @@ river_source_sounds (River source node sounds) bool false
# Enable cloud variation by the 'weather' mod. # Enable cloud variation by the 'weather' mod.
# Non-functional in V6 or Singlenode mapgens. # Non-functional in V6 or Singlenode mapgens.
enable_weather (Enable weather) bool true enable_weather (Enable weather) bool true
# Fix stairs and slabs rendering by forcing all stair/slab types to
# align with the world.
stairs_world_align (World-align stairs) bool true