The Magic Mirror Mechanics and Technical Details
Doorway Logic
The Magic Doorknob does not actually destroy blocks. Instead, it creates a temporary "air" corridor and stores the original block data. When the door is closed or the doorknob is removed, the blocks are restored exactly as they were. If a player is standing inside the doorway when it closes, they will be pushed to the nearest safe air block to prevent suffocation.
Reflection Rendering
The Magic Mirror uses a secondary camera pass to render the player's model. This reflection includes all currently equipped items, armor, and active status effects (such as invisibility or particle effects from potions). Modifiers like Skulls override the player's skin texture within the mirror's render buffer.
Configuration
While the mod is designed to work out of the box, server administrators can often configure the following via the mod's config file:
- Max Depth: Global limit for how far any doorknob can reach
- Blacklisted Blocks: A list of blocks (like Bedrock) that the Magic Doorknob is forbidden from penetrating
- Mirror Refresh Rate: Adjusts how often the reflection updates to optimize performance on lower-end systems