JourneyMapStages
This mod is an extension for the GameStage API that enables integration of Journey Map functionality into custom progression systems. For complete understanding of how it works, it's recommended to check the description of the main GameStage API mod. Briefly speaking, stages represent progression phases set by modpack creators or server administrators. Players gain access to stages through commands that are typically triggered by quest systems, achievements, or command blocks.
Configuration
The mod configuration is handled through CraftTweaker.
What can be restricted?
Waypoints
Players won't be able to create new waypoints or access the waypoint manager until they unlock the required stage. If a waypoint somehow appears prematurely, it will be immediately removed.
mods.jmapstages.JMapStages.setWaypointStage(String stage);
Death Points
Creation of death points upon character death will be unavailable until the required stage is obtained. Any prematurely created death points will be automatically destroyed.
mods.jmapstages.JMapStages.setDeathpointStage(String stage);
Minimap
The minimap will become visible to the player only after unlocking the corresponding stage.
mods.jmapstages.JMapStages.setMinimapStage(String stage);
Fullscreen Map and Settings
Access to the fullscreen map and settings menu will open after obtaining the necessary stage.
mods.jmapstages.JMapStages.setFullscreenStage(String stage);
Example Script
// Prevents players from creating waypoints and seeing them in the world.
mods.jmapstages.JMapStages.setWaypointStage("one");
// Restricts access to the fullscreen map and settings screen.
mods.jmapstages.JMapStages.setFullscreenStage("two");
// Blocks creation of death points on the map.
mods.jmapstages.JMapStages.setDeathpointStage("three");
// Disables minimap display on the player's screen.
mods.jmapstages.JMapStages.setMinimapStage("four");