This commit is contained in:
Hamlet 2019-09-15 12:20:17 +02:00
parent 1cd0bb7961
commit 13bb8051d6
No known key found for this signature in database
GPG Key ID: 30CDB9FA94B0D255
15 changed files with 1301 additions and 1325 deletions

78
CHANGELOG.md Normal file → Executable file
View File

@ -1,31 +1,47 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/).
## [Unreleased]
- Support for other modules.
## [1.2.4] - 2018-05-21
### Modified
- Mod rearranged to follow Minetest-Mods manifesto's guidelines.
### Removed
- ../doc/
## [1.2.3] - 2018-04-21
### Added
- ../doc/
### Changed
- Node overriders now use the "for" cycle, where possible, this makes
easier to read and mantain the code.
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/).
## [Unreleased]
- Support for other modules.
## [1.3.0] - 2019-09-14
### Added
- Support for Minetest Game v5.0.1 new slabs and stairs.
- Support for my_door_wood.
### Modified
- Outer and inner corners enabled by default.
- Corners' .lua files merged with normal shapes' .lua files.
### Removed
- Option to toggle stairs corners.
## [1.2.4] - 2018-05-21
### Modified
- Mod rearranged to follow Minetest-Mods manifesto's guidelines.
### Removed
- ../doc/
## [1.2.3] - 2018-04-21
### Added
- ../doc/
### Changed
- Node overriders now use the "for" cycle, where possible, this makes
easier to read and mantain the code.

1348
LICENSE.txt Normal file → Executable file

File diff suppressed because it is too large Load Diff

46
README.md Normal file → Executable file
View File

@ -1,23 +1,23 @@
### SMALLER STEPS
![Smaller Steps' screenshot](screenshot.png)<br>
**_Makes stairs and slabs use smaller shapes._**
**Version:** 1.2.4<br>
**License:** GPL v3.0
**Dependencies:** default, stairs, farming (found in Minetest Game)<br>
**Supported:** castle_masonry, darkage (Addi's fork)
### Installation
Unzip the archive, rename the folder to smaller_steps and place it in<br>
../minetest/mods/
If you only want this to be used in a single world, place it in<br>
../minetest/worlds/WORLD_NAME/worldmods/
GNU+Linux - If you use a system-wide installation place it in<br>
~/.minetest/mods/
For further information or help see:<br>
https://wiki.minetest.net/Help:Installing_Mods
### SMALLER STEPS
![Smaller Steps' screenshot](screenshot.png)<br>
**_Makes stairs and slabs use smaller shapes._**
**Version:** 1.3.0<br>
**License:** GPL v3.0
**Dependencies:** default, stairs, farming (found in Minetest Game)<br>
**Supported:** castle_masonry, darkage (Addi's fork), my_door_wood
### Installation
Unzip the archive, rename the folder to smaller_steps and place it in<br>
../minetest/mods/
If you only want this to be used in a single world, place it in<br>
../minetest/worlds/WORLD_NAME/worldmods/
GNU+Linux - If you use a system-wide installation place it in<br>
~/.minetest/mods/
For further information or help see:<br>
https://wiki.minetest.net/Help:Installing_Mods

108
castle_masonry.lua Normal file → Executable file
View File

@ -1,45 +1,63 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018 Hamlet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_stairs = {
"stairs:stair_pavement_brick", "stairs:stair_rubble",
"stairs:stair_stonewall"
}
local nodes_slabs = {
"stairs:slab_pavement_brick", "stairs:slab_rubble",
"stairs:slab_stonewall"
}
--
-- Nodes overriders
--
for n = 1, 3 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 3 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018-2019 Hamlet <hamlatmesehub@riseup.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_slabs = {
"stairs:slab_pavement_brick", "stairs:slab_rubble",
"stairs:slab_stonewall"
}
local nodes_stairs = {
"stairs:stair_pavement_brick", "stairs:stair_rubble",
"stairs:stair_stonewall"
}
local nodes_stairs_outer = {
"stairs:stair_outer_pavement_brick", "stairs:stair_outer_rubble",
"stairs:stair_outer_stonewall"
}
local nodes_stairs_inner = {
"stairs:stair_inner_pavement_brick", "stairs:stair_inner_rubble",
"stairs:stair_inner_stonewall"
}
--
-- Nodes overriders
--
for n = 1, 3 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
for n = 1, 3 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 3 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 3 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end

View File

@ -1,99 +0,0 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018 Hamlet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_stairs_outer = {
"stairs:stair_outer_cobble", "stairs:stair_outer_mossycobble",
"stairs:stair_outer_acacia_wood", "stairs:stair_outer_aspen_wood",
"stairs:stair_outer_brick", "stairs:stair_outer_bronzeblock",
"stairs:stair_outer_copperblock", "stairs:stair_outer_desert_cobble",
"stairs:stair_outer_desert_cobble", "stairs:stair_outer_desert_sandstone",
"stairs:stair_outer_desert_sandstone_block",
"stairs:stair_outer_desert_sandstone_brick",
"stairs:stair_outer_desert_stone", "stairs:stair_outer_desert_stone_block",
"stairs:stair_outer_desert_stonebrick", "stairs:stair_outer_goldblock",
"stairs:stair_outer_ice", "stairs:stair_outer_obsidian",
"stairs:stair_outer_obsidian_block", "stairs:stair_outer_obsidianbrick",
"stairs:stair_outer_pine_wood", "stairs:stair_outer_sandstone",
"stairs:stair_outer_sandstone_block", "stairs:stair_outer_sandstonebrick",
"stairs:stair_outer_silver_sandstone",
"stairs:stair_outer_silver_sandstone_block",
"stairs:stair_outer_silver_sandstone_brick",
"stairs:stair_outer_snowblock", "stairs:stair_outer_steelblock",
"stairs:stair_outer_stone", "stairs:stair_outer_stone_block",
"stairs:stair_outer_stonebrick", "stairs:stair_outer_straw",
"stairs:stair_outer_tinblock", "stairs:stair_outer_wood"
}
local nodes_stairs_inner = {
"stairs:stair_inner_cobble", "stairs:stair_inner_mossycobble",
"stairs:stair_inner_acacia_wood", "stairs:stair_inner_aspen_wood",
"stairs:stair_inner_brick", "stairs:stair_inner_bronzeblock",
"stairs:stair_inner_copperblock", "stairs:stair_inner_desert_cobble",
"stairs:stair_inner_desert_cobble", "stairs:stair_inner_desert_sandstone",
"stairs:stair_inner_desert_sandstone_block",
"stairs:stair_inner_desert_sandstone_brick",
"stairs:stair_inner_desert_stone", "stairs:stair_inner_desert_stone_block",
"stairs:stair_inner_desert_stonebrick", "stairs:stair_inner_goldblock",
"stairs:stair_inner_ice", "stairs:stair_inner_obsidian",
"stairs:stair_inner_obsidian_block", "stairs:stair_inner_obsidianbrick",
"stairs:stair_inner_pine_wood", "stairs:stair_inner_sandstone",
"stairs:stair_inner_sandstone_block", "stairs:stair_inner_sandstonebrick",
"stairs:stair_inner_silver_sandstone",
"stairs:stair_inner_silver_sandstone_block",
"stairs:stair_inner_silver_sandstone_brick",
"stairs:stair_inner_snowblock", "stairs:stair_inner_steelblock",
"stairs:stair_inner_stone", "stairs:stair_inner_stone_block",
"stairs:stair_inner_stonebrick", "stairs:stair_inner_straw",
"stairs:stair_inner_tinblock", "stairs:stair_inner_wood"
}
--
-- Nodes overriders
--
minetest.override_item("stairs:stair_tinblock", normal_shape)
minetest.override_item("stairs:slab_tinblock", slab_shape)
for n = 1, 35 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 35 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end
--
-- Support for other modules
--
if minetest.get_modpath("castle_masonry") then
dofile(mod_path .. "/corners_castle_masonry.lua")
end
if minetest.get_modpath("darkage") then
dofile(mod_path .. "/corners_darkage.lua")
end

View File

@ -1,45 +0,0 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018 Hamlet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_stairs_outer = {
"stairs:stair_outer_pavement_brick", "stairs:stair_outer_rubble",
"stairs:stair_outer_stonewall"
}
local nodes_stairs_inner = {
"stairs:stair_inner_pavement_brick", "stairs:stair_inner_rubble",
"stairs:stair_inner_stonewall"
}
--
-- Nodes overriders
--
for n = 1, 3 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 3 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end

View File

@ -1,86 +0,0 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018 Hamlet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_stairs_outer = {
"stairs:stair_outer_darkage_basalt",
"stairs:stair_outer_darkage_basalt_brick",
"stairs:stair_outer_darkage_basalt_rubble",
"stairs:stair_outer_darkage_chalked_bricks",
"stairs:stair_outer_darkage_gneiss",
"stairs:stair_outer_darkage_gneiss_brick",
"stairs:stair_outer_darkage_gneiss_rubble",
"stairs:stair_outer_darkage_marble",
"stairs:stair_outer_darkage_marble_tile",
"stairs:stair_outer_darkage_old_tuff_bricks",
"stairs:stair_outer_darkage_ors", "stairs:stair_outer_darkage_ors_brick",
"stairs:stair_outer_darkage_ors_rubble",
"stairs:stair_outer_darkage_rhyolitic_tuff",
"stairs:stair_outer_darkage_rhyolitic_tuff_bricks",
"stairs:stair_outer_darkage_schist", "stairs:stair_outer_darkage_serpentine",
"stairs:stair_outer_darkage_shale", "stairs:stair_outer_darkage_slate",
"stairs:stair_outer_darkage_slate_brick",
"stairs:stair_outer_darkage_slate_rubble",
"stairs:stair_outer_darkage_slate_tile",
"stairs:stair_outer_darkage_stone_brick",
"stairs:stair_outer_darkage_straw_bale", "stairs:stair_outer_darkage_tuff",
"stairs:stair_outer_darkage_tuff_bricks"
}
local nodes_stairs_inner = {
"stairs:stair_inner_darkage_basalt",
"stairs:stair_inner_darkage_basalt_brick",
"stairs:stair_inner_darkage_basalt_rubble",
"stairs:stair_inner_darkage_chalked_bricks",
"stairs:stair_inner_darkage_gneiss",
"stairs:stair_inner_darkage_gneiss_brick",
"stairs:stair_inner_darkage_gneiss_rubble",
"stairs:stair_inner_darkage_marble",
"stairs:stair_inner_darkage_marble_tile",
"stairs:stair_inner_darkage_old_tuff_bricks",
"stairs:stair_inner_darkage_ors", "stairs:stair_inner_darkage_ors_brick",
"stairs:stair_inner_darkage_ors_rubble",
"stairs:stair_inner_darkage_rhyolitic_tuff",
"stairs:stair_inner_darkage_rhyolitic_tuff_bricks",
"stairs:stair_inner_darkage_schist", "stairs:stair_inner_darkage_serpentine",
"stairs:stair_inner_darkage_shale", "stairs:stair_inner_darkage_slate",
"stairs:stair_inner_darkage_slate_brick",
"stairs:stair_inner_darkage_slate_rubble",
"stairs:stair_inner_darkage_slate_tile",
"stairs:stair_inner_darkage_stone_brick",
"stairs:stair_inner_darkage_straw_bale", "stairs:stair_inner_darkage_tuff",
"stairs:stair_inner_darkage_tuff_bricks"
}
--
-- Nodes overriders
--
for n = 1, 26 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 26 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end

191
darkage.lua Normal file → Executable file
View File

@ -1,67 +1,124 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018 Hamlet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_stairs = {
"stairs:stair_darkage_basalt", "stairs:stair_darkage_basalt_brick",
"stairs:stair_darkage_basalt_rubble", "stairs:stair_darkage_chalked_bricks",
"stairs:stair_darkage_gneiss", "stairs:stair_darkage_gneiss_brick",
"stairs:stair_darkage_gneiss_rubble", "stairs:stair_darkage_marble",
"stairs:stair_darkage_marble_tile", "stairs:stair_darkage_old_tuff_bricks",
"stairs:stair_darkage_ors", "stairs:stair_darkage_ors_brick",
"stairs:stair_darkage_ors_rubble", "stairs:stair_darkage_rhyolitic_tuff",
"stairs:stair_darkage_rhyolitic_tuff_bricks", "stairs:stair_darkage_schist",
"stairs:stair_darkage_serpentine", "stairs:stair_darkage_shale",
"stairs:stair_darkage_slate", "stairs:stair_darkage_slate_brick",
"stairs:stair_darkage_slate_rubble", "stairs:stair_darkage_slate_tile",
"stairs:stair_darkage_stone_brick", "stairs:stair_darkage_straw_bale",
"stairs:stair_darkage_tuff", "stairs:stair_darkage_tuff_bricks"
}
local nodes_slabs = {
"stairs:slab_darkage_basalt", "stairs:slab_darkage_basalt_brick",
"stairs:slab_darkage_basalt_rubble", "stairs:slab_darkage_chalked_bricks",
"stairs:slab_darkage_gneiss", "stairs:slab_darkage_gneiss_brick",
"stairs:slab_darkage_gneiss_rubble", "stairs:slab_darkage_marble",
"stairs:slab_darkage_marble_tile", "stairs:slab_darkage_old_tuff_bricks",
"stairs:slab_darkage_ors", "stairs:slab_darkage_ors_brick",
"stairs:slab_darkage_ors_rubble", "stairs:slab_darkage_rhyolitic_tuff",
"stairs:slab_darkage_rhyolitic_tuff_bricks", "stairs:slab_darkage_schist",
"stairs:slab_darkage_serpentine", "stairs:slab_darkage_shale",
"stairs:slab_darkage_slate", "stairs:slab_darkage_slate_brick",
"stairs:slab_darkage_slate_rubble", "stairs:slab_darkage_slate_tile",
"stairs:slab_darkage_stone_brick", "stairs:slab_darkage_straw_bale",
"stairs:slab_darkage_tuff", "stairs:slab_darkage_tuff_bricks"
}
--
-- Nodes overriders
--
for n = 1, 26 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 26 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018-2019 Hamlet <hamlatmesehub@riseup.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_slabs = {
"stairs:slab_darkage_basalt", "stairs:slab_darkage_basalt_brick",
"stairs:slab_darkage_basalt_rubble", "stairs:slab_darkage_chalked_bricks",
"stairs:slab_darkage_gneiss", "stairs:slab_darkage_gneiss_brick",
"stairs:slab_darkage_gneiss_rubble", "stairs:slab_darkage_marble",
"stairs:slab_darkage_marble_tile", "stairs:slab_darkage_old_tuff_bricks",
"stairs:slab_darkage_ors", "stairs:slab_darkage_ors_brick",
"stairs:slab_darkage_ors_rubble", "stairs:slab_darkage_rhyolitic_tuff",
"stairs:slab_darkage_rhyolitic_tuff_bricks", "stairs:slab_darkage_schist",
"stairs:slab_darkage_serpentine", "stairs:slab_darkage_shale",
"stairs:slab_darkage_slate", "stairs:slab_darkage_slate_brick",
"stairs:slab_darkage_slate_rubble", "stairs:slab_darkage_slate_tile",
"stairs:slab_darkage_stone_brick", "stairs:slab_darkage_straw_bale",
"stairs:slab_darkage_tuff", "stairs:slab_darkage_tuff_bricks"
}
local nodes_stairs = {
"stairs:stair_darkage_basalt", "stairs:stair_darkage_basalt_brick",
"stairs:stair_darkage_basalt_rubble", "stairs:stair_darkage_chalked_bricks",
"stairs:stair_darkage_gneiss", "stairs:stair_darkage_gneiss_brick",
"stairs:stair_darkage_gneiss_rubble", "stairs:stair_darkage_marble",
"stairs:stair_darkage_marble_tile", "stairs:stair_darkage_old_tuff_bricks",
"stairs:stair_darkage_ors", "stairs:stair_darkage_ors_brick",
"stairs:stair_darkage_ors_rubble", "stairs:stair_darkage_rhyolitic_tuff",
"stairs:stair_darkage_rhyolitic_tuff_bricks", "stairs:stair_darkage_schist",
"stairs:stair_darkage_serpentine", "stairs:stair_darkage_shale",
"stairs:stair_darkage_slate", "stairs:stair_darkage_slate_brick",
"stairs:stair_darkage_slate_rubble", "stairs:stair_darkage_slate_tile",
"stairs:stair_darkage_stone_brick", "stairs:stair_darkage_straw_bale",
"stairs:stair_darkage_tuff", "stairs:stair_darkage_tuff_bricks"
}
local nodes_stairs_outer = {
"stairs:stair_outer_darkage_basalt",
"stairs:stair_outer_darkage_basalt_brick",
"stairs:stair_outer_darkage_basalt_rubble",
"stairs:stair_outer_darkage_chalked_bricks",
"stairs:stair_outer_darkage_gneiss",
"stairs:stair_outer_darkage_gneiss_brick",
"stairs:stair_outer_darkage_gneiss_rubble",
"stairs:stair_outer_darkage_marble",
"stairs:stair_outer_darkage_marble_tile",
"stairs:stair_outer_darkage_old_tuff_bricks",
"stairs:stair_outer_darkage_ors", "stairs:stair_outer_darkage_ors_brick",
"stairs:stair_outer_darkage_ors_rubble",
"stairs:stair_outer_darkage_rhyolitic_tuff",
"stairs:stair_outer_darkage_rhyolitic_tuff_bricks",
"stairs:stair_outer_darkage_schist", "stairs:stair_outer_darkage_serpentine",
"stairs:stair_outer_darkage_shale", "stairs:stair_outer_darkage_slate",
"stairs:stair_outer_darkage_slate_brick",
"stairs:stair_outer_darkage_slate_rubble",
"stairs:stair_outer_darkage_slate_tile",
"stairs:stair_outer_darkage_stone_brick",
"stairs:stair_outer_darkage_straw_bale", "stairs:stair_outer_darkage_tuff",
"stairs:stair_outer_darkage_tuff_bricks"
}
local nodes_stairs_inner = {
"stairs:stair_inner_darkage_basalt",
"stairs:stair_inner_darkage_basalt_brick",
"stairs:stair_inner_darkage_basalt_rubble",
"stairs:stair_inner_darkage_chalked_bricks",
"stairs:stair_inner_darkage_gneiss",
"stairs:stair_inner_darkage_gneiss_brick",
"stairs:stair_inner_darkage_gneiss_rubble",
"stairs:stair_inner_darkage_marble",
"stairs:stair_inner_darkage_marble_tile",
"stairs:stair_inner_darkage_old_tuff_bricks",
"stairs:stair_inner_darkage_ors", "stairs:stair_inner_darkage_ors_brick",
"stairs:stair_inner_darkage_ors_rubble",
"stairs:stair_inner_darkage_rhyolitic_tuff",
"stairs:stair_inner_darkage_rhyolitic_tuff_bricks",
"stairs:stair_inner_darkage_schist", "stairs:stair_inner_darkage_serpentine",
"stairs:stair_inner_darkage_shale", "stairs:stair_inner_darkage_slate",
"stairs:stair_inner_darkage_slate_brick",
"stairs:stair_inner_darkage_slate_rubble",
"stairs:stair_inner_darkage_slate_tile",
"stairs:stair_inner_darkage_stone_brick",
"stairs:stair_inner_darkage_straw_bale", "stairs:stair_inner_darkage_tuff",
"stairs:stair_inner_darkage_tuff_bricks"
}
--
-- Nodes overriders
--
for n = 1, 26 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
for n = 1, 26 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 26 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 26 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end

11
depends.txt Normal file → Executable file
View File

@ -1,5 +1,6 @@
default
stairs
farming
castle_masonry?
darkage?
default
stairs
farming
castle_masonry?
darkage?
my_door_wood?

0
description.txt Normal file → Executable file
View File

531
init.lua Normal file → Executable file
View File

@ -1,241 +1,290 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018 Hamlet
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Configuration
--
local smaller_steps_corners = minetest.settings:get_bool("smaller_steps_corners")
if not smaller_steps_corners then
smaller_steps_corners = false
end
--
-- General variables
--
local minetest_log_level = minetest.settings:get("debug_log_level")
local mod_load_message = "[Mod] Smaller Steps [v1.2.3] loaded."
local mod_path = minetest.get_modpath("smaller_steps")
--
-- Shapes to be assigned
--
shape_normal = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
}
shape_outer = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, -0.166667, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, -0.166667, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, -0.166667, 0.5, 0.5},
},
},
}
shape_inner = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.5, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, -0.5, -0.166667, 0.5, 0.5},
{0.166667, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.166667, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.5, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, -0.5, -0.166667, 0.5, 0.5},
{0.166667, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.166667, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.5, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, -0.5, -0.166667, 0.5, 0.5},
{0.166667, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.166667, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
}
shape_slab = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
},
},
}
--
-- Nodes to be overriden
--
local nodes_stairs = {
"stairs:stair_cobble", "stairs:stair_mossycobble",
"stairs:stair_acacia_wood", "stairs:stair_aspen_wood",
"stairs:stair_brick", "stairs:stair_bronzeblock",
"stairs:stair_copperblock", "stairs:stair_desert_cobble",
"stairs:stair_desert_stone", "stairs:stair_desert_stone_block",
"stairs:stair_desert_stonebrick", "stairs:stair_desert_sandstone",
"stairs:stair_desert_sandstone_block", "stairs:stair_desert_sandstone_brick",
"stairs:stair_goldblock", "stairs:stair_ice", "stairs:stair_obsidian",
"stairs:stair_obsidian_block", "stairs:stair_obsidianbrick",
"stairs:stair_pine_wood", "stairs:stair_sandstone",
"stairs:stair_sandstone_block", "stairs:stair_sandstonebrick",
"stairs:stair_silver_sandstone", "stairs:stair_silver_sandstone_block",
"stairs:stair_silver_sandstone_brick", "stairs:stair_snowblock",
"stairs:stair_steelblock", "stairs:stair_stone", "stairs:stair_stone_block",
"stairs:stair_stonebrick", "stairs:stair_straw", "stairs:stair_wood"
}
local nodes_slabs = {
"stairs:slab_cobble", "stairs:slab_desert_sandstone",
"stairs:slab_desert_sandstone_block", "stairs:slab_desert_sandstone_brick",
"stairs:slab_mossycobble", "stairs:slab_acacia_wood",
"stairs:slab_aspen_wood", "stairs:slab_brick", "stairs:slab_bronzeblock",
"stairs:slab_copperblock", "stairs:slab_desert_cobble",
"stairs:slab_desert_stone", "stairs:slab_desert_stone_block",
"stairs:slab_desert_stonebrick", "stairs:slab_goldblock", "stairs:slab_ice",
"stairs:slab_obsidian", "stairs:slab_obsidian_block",
"stairs:slab_obsidianbrick", "stairs:slab_pine_wood",
"stairs:slab_sandstone", "stairs:slab_sandstone_block",
"stairs:slab_sandstonebrick", "stairs:slab_silver_sandstone",
"stairs:slab_silver_sandstone_block", "stairs:slab_silver_sandstone_brick",
"stairs:slab_snowblock", "stairs:slab_steelblock", "stairs:slab_stone",
"stairs:slab_stone_block", "stairs:slab_stonebrick", "stairs:slab_straw",
"stairs:slab_wood"
}
--
-- Nodes overriders
--
for n = 1, 33 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 33 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
--
-- Support for stairs corners
--
if (smaller_steps_corners == true) then
dofile(mod_path .. "/corners.lua")
end
--
-- Support for other modules
--
if minetest.get_modpath("castle_masonry") then
dofile(mod_path .. "/castle_masonry.lua")
end
if minetest.get_modpath("darkage") then
dofile(mod_path .. "/darkage.lua")
end
--
-- Minetest engine debug logging
--
if (minetest_log_level == nil) or (minetest_log_level == "action") or
(minetest_log_level == "info") or (minetest_log_level == "verbose") then
minetest.log("action", mod_load_message)
end
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018-2019 Hamlet <hamlatmesehub@riseup.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- General variables
--
local minetest_log_level = minetest.settings:get("debug_log_level")
local mod_path = minetest.get_modpath("smaller_steps")
--
-- Shapes to be assigned
--
shape_normal = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
}
shape_outer = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, -0.166667, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, -0.166667, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.166667, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, 0.166667, -0.166667, 0.5, 0.5},
},
},
}
shape_inner = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.5, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, -0.5, -0.166667, 0.5, 0.5},
{0.166667, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.166667, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.5, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, -0.5, -0.166667, 0.5, 0.5},
{0.166667, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.166667, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
{-0.5, -0.166667, -0.5, 0.166667, 0.166667, 0.5},
{-0.5, 0.166667, -0.5, -0.166667, 0.5, 0.5},
{0.166667, -0.166667, -0.166667, 0.5, 0.166667, 0.5},
{-0.166667, 0.166667, 0.166667, 0.5, 0.5, 0.5},
},
},
}
shape_slab = {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.166667, 0.5},
},
},
}
--
-- Nodes to be overriden
--
local nodes_slabs = {
"stairs:slab_cobble", "stairs:slab_desert_sandstone",
"stairs:slab_desert_sandstone_block", "stairs:slab_desert_sandstone_brick",
"stairs:slab_mossycobble", "stairs:slab_acacia_wood",
"stairs:slab_aspen_wood", "stairs:slab_brick", "stairs:slab_bronzeblock",
"stairs:slab_copperblock", "stairs:slab_desert_cobble",
"stairs:slab_desert_stone", "stairs:slab_desert_stone_block",
"stairs:slab_desert_stonebrick", "stairs:slab_goldblock", "stairs:slab_ice",
"stairs:slab_obsidian", "stairs:slab_obsidian_block",
"stairs:slab_obsidianbrick", "stairs:slab_pine_wood",
"stairs:slab_sandstone", "stairs:slab_sandstone_block",
"stairs:slab_sandstonebrick", "stairs:slab_silver_sandstone",
"stairs:slab_silver_sandstone_block", "stairs:slab_silver_sandstone_brick",
"stairs:slab_snowblock", "stairs:slab_steelblock", "stairs:slab_stone",
"stairs:slab_stone_block", "stairs:slab_stonebrick", "stairs:slab_straw",
"stairs:slab_wood", "stairs:slab_glass", "stairs:slab_obsidian_glass",
"stairs:slab_tinblock"
}
local nodes_stairs = {
"stairs:stair_cobble", "stairs:stair_mossycobble",
"stairs:stair_acacia_wood", "stairs:stair_aspen_wood",
"stairs:stair_brick", "stairs:stair_bronzeblock",
"stairs:stair_copperblock", "stairs:stair_desert_cobble",
"stairs:stair_desert_stone", "stairs:stair_desert_stone_block",
"stairs:stair_desert_stonebrick", "stairs:stair_desert_sandstone",
"stairs:stair_desert_sandstone_block",
"stairs:stair_desert_sandstone_brick",
"stairs:stair_goldblock", "stairs:stair_ice", "stairs:stair_obsidian",
"stairs:stair_obsidian_block", "stairs:stair_obsidianbrick",
"stairs:stair_pine_wood", "stairs:stair_sandstone",
"stairs:stair_sandstone_block", "stairs:stair_sandstonebrick",
"stairs:stair_silver_sandstone", "stairs:stair_silver_sandstone_block",
"stairs:stair_silver_sandstone_brick", "stairs:stair_snowblock",
"stairs:stair_steelblock", "stairs:stair_stone", "stairs:stair_stone_block",
"stairs:stair_stonebrick", "stairs:stair_straw", "stairs:stair_wood",
"stairs:stair_glass", "stairs:stair_junglewood",
"stairs:stair_obsidian_glass", "stairs:stair_tinblock"
}
local nodes_stairs_outer = {
"stairs:stair_outer_cobble", "stairs:stair_outer_mossycobble",
"stairs:stair_outer_acacia_wood", "stairs:stair_outer_aspen_wood",
"stairs:stair_outer_brick", "stairs:stair_outer_bronzeblock",
"stairs:stair_outer_copperblock", "stairs:stair_outer_desert_cobble",
"stairs:stair_outer_desert_cobble", "stairs:stair_outer_desert_sandstone",
"stairs:stair_outer_desert_sandstone_block",
"stairs:stair_outer_desert_sandstone_brick",
"stairs:stair_outer_desert_stone", "stairs:stair_outer_desert_stone_block",
"stairs:stair_outer_desert_stonebrick", "stairs:stair_outer_goldblock",
"stairs:stair_outer_ice", "stairs:stair_outer_obsidian",
"stairs:stair_outer_obsidian_block", "stairs:stair_outer_obsidianbrick",
"stairs:stair_outer_pine_wood", "stairs:stair_outer_sandstone",
"stairs:stair_outer_sandstone_block", "stairs:stair_outer_sandstonebrick",
"stairs:stair_outer_silver_sandstone",
"stairs:stair_outer_silver_sandstone_block",
"stairs:stair_outer_silver_sandstone_brick",
"stairs:stair_outer_snowblock", "stairs:stair_outer_steelblock",
"stairs:stair_outer_stone", "stairs:stair_outer_stone_block",
"stairs:stair_outer_stonebrick", "stairs:stair_outer_straw",
"stairs:stair_outer_tinblock", "stairs:stair_outer_wood",
"stairs:stair_outer_glass", "stairs:stair_outer_junglewood",
"stairs:stair_outer_obsidian_glass", "stairs:stair_outer_tinblock"
}
local nodes_stairs_inner = {
"stairs:stair_inner_cobble", "stairs:stair_inner_mossycobble",
"stairs:stair_inner_acacia_wood", "stairs:stair_inner_aspen_wood",
"stairs:stair_inner_brick", "stairs:stair_inner_bronzeblock",
"stairs:stair_inner_copperblock", "stairs:stair_inner_desert_cobble",
"stairs:stair_inner_desert_cobble", "stairs:stair_inner_desert_sandstone",
"stairs:stair_inner_desert_sandstone_block",
"stairs:stair_inner_desert_sandstone_brick",
"stairs:stair_inner_desert_stone", "stairs:stair_inner_desert_stone_block",
"stairs:stair_inner_desert_stonebrick", "stairs:stair_inner_goldblock",
"stairs:stair_inner_ice", "stairs:stair_inner_obsidian",
"stairs:stair_inner_obsidian_block", "stairs:stair_inner_obsidianbrick",
"stairs:stair_inner_pine_wood", "stairs:stair_inner_sandstone",
"stairs:stair_inner_sandstone_block", "stairs:stair_inner_sandstonebrick",
"stairs:stair_inner_silver_sandstone",
"stairs:stair_inner_silver_sandstone_block",
"stairs:stair_inner_silver_sandstone_brick",
"stairs:stair_inner_snowblock", "stairs:stair_inner_steelblock",
"stairs:stair_inner_stone", "stairs:stair_inner_stone_block",
"stairs:stair_inner_stonebrick", "stairs:stair_inner_straw",
"stairs:stair_inner_tinblock", "stairs:stair_inner_wood",
"stairs:stair_inner_glass", "stairs:stair_inner_junglewood",
"stairs:stair_inner_obsidian_glass", "stairs:stair_inner_tinblock"
}
--
-- Nodes overriders
--
for n = 1, 36 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
for n = 1, 37 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 39 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 39 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end
--
-- Support for other modules
--
if minetest.get_modpath("castle_masonry") then
dofile(mod_path .. "/castle_masonry.lua")
end
if minetest.get_modpath("darkage") then
dofile(mod_path .. "/darkage.lua")
end
if minetest.get_modpath("my_door_wood") then
dofile(mod_path .. "/my_door_wood.lua")
end
--
-- Minetest engine debug logging
--
if (minetest.settings:get("debug_log_level") == nil)
or (minetest.settings:get("debug_log_level") == "action")
or (minetest.settings:get("debug_log_level") == "info")
or (minetest.settings:get("debug_log_level") == "verbose")
then
minetest.log("action", "[Mod] Smaller Steps [v1.3.0] loaded.")
end

14
mod.conf Normal file → Executable file
View File

@ -1,7 +1,7 @@
name = smaller_steps
title = Smaller Steps
author = Hamlet
description = Makes stairs and slabs use smaller shapes.
license = GPL 3.0
forum = https://forum.minetest.net/viewtopic.php?f=9&t=18283
version = 1.2.4
name = smaller_steps
title = Smaller Steps
author = Hamlet
description = Makes stairs and slabs use smaller shapes.
license = GPL 3.0
forum = https://forum.minetest.net/viewtopic.php?f=9&t=18283
version = 1.3.0

67
my_door_wood.lua Executable file
View File

@ -0,0 +1,67 @@
--[[
Smaller Steps - Makes stairs and slabs use smaller shapes.
Copyright (C) 2018-2019 Hamlet <hamlatmesehub@riseup.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--
-- Nodes to be overriden
--
local nodes_slabs = {
"stairs:slab_wood_brown", "stairs:slab_wood_dark_grey",
"stairs:slab_wood_grey", "stairs:slab_wood_red",
"stairs:slab_wood_white", "stairs:slab_wood_yellow"
}
local nodes_stairs = {
"stairs:stair_wood_brown", "stairs:stair_wood_dark_grey",
"stairs:stair_wood_grey", "stairs:stair_wood_red",
"stairs:stair_wood_white", "stairs:stair_wood_yellow"
}
local nodes_stairs_outer = {
"stairs:stair_outer_wood_brown", "stairs:stair_outer_wood_dark_grey",
"stairs:stair_outer_wood_grey", "stairs:stair_outer_wood_red",
"stairs:stair_outer_wood_white", "stairs:stair_outer_wood_yellow"
}
local nodes_stairs_inner = {
"stairs:stair_inner_wood_brown", "stairs:stair_inner_wood_dark_grey",
"stairs:stair_inner_wood_grey", "stairs:stair_inner_wood_red",
"stairs:stair_inner_wood_white", "stairs:stair_inner_wood_yellow"
}
--
-- Nodes overriders
--
for n = 1, 6 do
minetest.override_item(nodes_slabs[n], shape_slab)
end
for n = 1, 6 do
minetest.override_item(nodes_stairs[n], shape_normal)
end
for n = 1, 6 do
minetest.override_item(nodes_stairs_outer[n], shape_outer)
end
for n = 1, 6 do
minetest.override_item(nodes_stairs_inner[n], shape_inner)
end

0
screenshot.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

@ -1,2 +0,0 @@
# Enable the stairs' corners overriders?
smaller_steps_corners (Enable stairs' corners) bool false