[SBM] Magic Mirror
Concept
The mod was created based on a suggestion from user Kodos on Discord as a convenient way to quickly exit dungeons and caves. When a player has a magic mirror in their inventory, it begins recording location data. After one minute of being on the surface, the mirror charges up and becomes active. Once charged, the mirror records the first exit point when the player reaches the surface. If within five seconds the player doesn't return underground, the mirror marks this location for teleportation. After setting the teleport point, the player can activate the mirror for a few seconds to instantly return to the marked location.
Tutorial
Video guide by darkcow/darkguardsman
Configuration
Teleport Activation Time
I:Activation_Time=100 - waiting duration before teleportation in ticks (range: -1 ~ 1200, default: 100). In Minecraft, 20 ticks equal one second.
Mirror as Loot
B:EnableAsDungeonLoot=true - possibility of finding mirrors in dungeon chests (default: true). Currently this is the only way to obtain the item without using recipe editors.
Maximum Distance
I:Max_Teleport_Distance=200 - maximum distance for saving the point and allowing teleportation (range: -1 ~ 9999999, default: 200). Measured by X/Z coordinates, Y coordinate is ignored. Set to -1 to disable distance check.
Obtaining the Mirror
The magic mirror can be found among loot in dungeons. If you want to make it craftable, install a mod that allows adding recipes.
Single Block Mod Series
The Single Block Mod series is dedicated to creating various simple mods with one main function. Most of them focus on one block or content element that is thoroughly developed to provide maximum options and choices. This makes many mods in the series ideal for filling gaps in modpacks, allowing pack developers to reduce the need to include large mods to complete feature lists.
Issues and Bugs
If you encounter any problems, please report them to our issue tracking system on Github.com. You can access the tracking system by clicking the "Issues" button at the top of the mod page. If you have a crash report, please paste it on a site like pastebin.com before submitting to improve the readability of the issue ticket.