Go to file
2025-07-05 16:47:21 +02:00
sounds working prototype, registration/compatibility broken... 2025-06-27 02:16:47 +02:00
textures painted doors and sounds 2025-07-05 15:53:15 +02:00
.luacheckrc basic structure 2025-06-26 19:25:58 +02:00
api.lua create compatibility with the original mod 2025-07-05 16:47:03 +02:00
compatibility.lua create compatibility with the original mod 2025-07-05 16:47:03 +02:00
init.lua create compatibility with the original mod 2025-07-05 16:47:03 +02:00
LICENCE.txt documentation + license 2025-07-05 16:47:21 +02:00
mod.conf backwards-compatible registrations 2025-07-01 01:20:08 +02:00
README.md documentation + license 2025-07-05 16:47:21 +02:00
registrations.lua painted doors and sounds 2025-07-05 15:53:15 +02:00
screenshot_painted_door.png documentation + license 2025-07-05 16:47:21 +02:00
screenshot.png documentation + license 2025-07-05 16:47:21 +02:00
settingtypes.txt create compatibility with the original mod 2025-07-05 16:47:03 +02:00
TODO.txt documentation + license 2025-07-05 16:47:21 +02:00

hidden doors

adds doors that can be hidden in many walls

alt text

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
  • hidden_doors.painted
    • bool, defaults to false
    • overlays a visible outline to the doors painted door

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.
    • name the door will have
    • basenode name of the node the door shall be created from
    • resolution in case the node has a non-16x16 texture
    • with_recipe whether 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 codes 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