summaryrefslogtreecommitdiff
path: root/mesecons_doors/init.lua
AgeCommit message (Collapse)Author
2020-09-19mesecons_doors: Add MTG steel bar door and trapdoor (#523)tuedel
2020-08-01Make sounds ephemeral (#521)Vitaliy
The handles were never used anyway
2016-02-28Revert "Toggle trapdoors on signal, workaround for #252"Jeija
Please use the screwdriver if you want to rotate trapdoors. This reverts commit 417a136c5e6842a6c54a98690746b0aa41ad69e5.
2016-02-27Toggle trapdoors on signal, workaround for #252Jeija
2016-02-14Doors: Use new mesh door API if availableAuke Kok
I've implemented a new door API in minetest_game that performs all the needed things to assure doors are properly openend and closed, without mods needing to know the inner details of what needs to be done. Mesecons can just fetch a reference to the door object and call the appropriate open or close method, which simplifies this code a lot. For compatibility, this code retains the old code path and tests whether the new API is available, so this code remains functional if the new API is not available. Since the metal trapdoor was only recently added, I added it to the new API codepath only, it's unlikely to be present on older versions of minetest_game anyway. As a benefit from the new door API, there is now absolutely no more accidental switching closed trapdoors to open on power off, which could happen with the old method - since that was just a simple toggle.
2015-10-04Doors: Use new sound name (fixes #236)Jeija
2015-02-14Fix #219, do not try to override unregistered doorsJeija
2015-02-03Prepare trapdoors code for merging, make trapdoors always toggle theirJeija
state when the mesecons signal changes, no matter what state they're in
2015-02-02Add trapdoor to mesecons_doorsMT-Modder
2015-01-22Rewrite doors:Jeija
* Enable glass and obsidian glass doors to be used with mesecons * Doors can receive signals from a vertical wire placed two blocks beneath them, use this to create mesecon-controlled double doors * Fix textures for both git upstream and stable minetest_game * Shrink code size * Rename mesecons_compatibility to mesecons_doors.