Initial commit for Climbable Trapdoors
This commit is contained in:
commit
bb346f3b1e
8
README.txt
Normal file
8
README.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# Climbable Trapdoors
|
||||
|
||||
A really simple mod that makes the default wood and steel trapdoors climbable.
|
||||
|
||||
By default the mod only makes the "open" version climbable.
|
||||
To make both the open and closed trapdoors climbable, go to the `init.lua` file and change `MAKE_CLOSED_DOORS_CLIMBABLE` to `true`
|
||||
|
||||
The mod will also check if the `xpanes` Steel Bar Trapdoor is present, and if so will apply the same climbable state to it as well.
|
20
init.lua
Normal file
20
init.lua
Normal file
@ -0,0 +1,20 @@
|
||||
local MAKE_CLOSED_DOORS_CLIMBABLE = false
|
||||
|
||||
local override = {
|
||||
climbable = true
|
||||
}
|
||||
|
||||
minetest.override_item("doors:trapdoor_open", override)
|
||||
minetest.override_item("doors:trapdoor_steel_open", override)
|
||||
|
||||
if MAKE_CLOSED_DOORS_CLIMBABLE then
|
||||
minetest.override_item("doors:trapdoor", override)
|
||||
minetest.override_item("doors:trapdoor_steel", override)
|
||||
end
|
||||
|
||||
if minetest.registered_items["xpanes:trapdoor_steel_bar"] then
|
||||
minetest.override_item("xpanes:trapdoor_steel_bar_open", override)
|
||||
if MAKE_CLOSED_DOORS_CLIMBABLE then
|
||||
minetest.override_item("xpanes:trapdoor_steel_bar", override)
|
||||
end
|
||||
end
|
24
license.txt
Normal file
24
license.txt
Normal file
@ -0,0 +1,24 @@
|
||||
License of source code
|
||||
----------------------
|
||||
|
||||
The MIT License (MIT)
|
||||
Copyright (C) 2022-2022 ZenonSeth
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||
software and associated documentation files (the "Software"), to deal in the Software
|
||||
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or
|
||||
substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more details:
|
||||
https://opensource.org/licenses/MIT
|
5
mod.conf
Normal file
5
mod.conf
Normal file
@ -0,0 +1,5 @@
|
||||
name = climbable_trapdoors
|
||||
title = Climbable Trapdoors
|
||||
description = Makes the wood and steel trapdoors climbable
|
||||
depends = doors
|
||||
optional_depends = xpanes
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 96 KiB |
Loading…
x
Reference in New Issue
Block a user