| sounds | ||
| textures | ||
| .luacheckrc | ||
| api.lua | ||
| compatibility.lua | ||
| init.lua | ||
| LICENCE.txt | ||
| mod.conf | ||
| README.md | ||
| registrations.lua | ||
| screenshot_painted_door.png | ||
| screenshot.png | ||
| settingtypes.txt | ||
| TODO.txt | ||
hidden doors
adds doors that can be hidden in many walls
reimplementation of https://forum.luanti.org/viewtopic.php?t=18294
settings
hidden_doors.make_registrations- bool, defaults to
true - if set to false, this mod will only provide an api
- bool, defaults to
hidden_doors.painted
API
-
hidden_doors.create_door_texture(texture, [resolution]):resolution: (32, 64, ...) required if the texture's resolution is > 16x16
-
hidden_doors.create_inventory_image(texture): returns a texture that can be used for inventory_image -
hidden_doors.register_from_node(name, basenode, resolution, with_recipe)- reads the properties from basenode and uses them to define a matching hidden door.
namethe door will havebasenodename of the node the door shall be created fromresolutionin case the node has a non-16x16 texturewith_recipewhether a recipe for the door shall be added
There is no function for hidden doors with custom definitions. Use the api to create the textures and call doors.register yourself
compatibility with the original mod
- there is still support for
hidden_doors.RegisterHiddenDoors(...), to keep mods using the old api working. - all nodes registered with the old mod will remain
- tools/times for digging will change
LICENCE
- Source code’s licence: EUPL v1.2 or later.
- the original mod was written by Hamlet and contributors: https://codeberg.org/Hamlet/hidden_doors
- All Code was written by me (tour) from scratch, but I looked at the code of the original mod to ensure compatibility (mostly itemnames + the signature of
hidden_doors.RegisterHiddenDoors(...))
- Textures and sounds: CC BY-SA 4.0 International or later.
- they were copied from the original mod from Hamlet

