Darkness Activated Tiles allows tiles to be hidden when the darkness level in a scene goes outside a customizable range. It works the same as the darkness activation range works with ambient lights and sounds.
Using Darkness Activated Tiles is simple. In a tile config menu, under the Basic tab, there is a setting called Darkness Activation Range. Just clicked Enabled and then change the values to your liking. The tile will then only be visible whenever the darkness level in the scene is within the range or equal to the minimum/maximum.
Installation can be done with either Foundry's built-in module browser or by using the URL below:
https://github.com/caelwarner/DarknessActivatedTiles/releases/latest/download/module.json
Remember to enable the module in the Manage Modules menu in Foundry.
FoundryVTT v11 and v12 work. Versions lower than FoundryVTT v10 will not work. Use version 0.2.0 for older versions of FoundryVTT, however, note that version 0.2.0 has bugs.
Check the issues on this GitHub repository to see if it's already there. If not, please report it by creating a new issue. Thanks!