Skip to content

DoorsModule

DoorsModule reimplements the vanilla behavior for interacting with doors. Interacting with an open door will cause it to close for everyone on the server, and interacting with a closed door will cause it to open for everyone on the server. All types of wooden doors and trapdoors are supported. Iron doors do not open or close upon interaction.

Usage

Import the module:

import com.bluedragonmc.server.module.vanilla.DoorsModule

Use the module in your game’s initialize function:

use(DoorsModule())

Attribution

  • The code for this module was adopted from BasicRedstone by TogAr2, which is under the MIT license.