TMM datapack_extension
Allows customizing game area settings of the Train Murder Mystery mod through datapacks.
About this Mod
TMM Datapack Extension
Allows customizing game area settings of the Train Murder Mystery mod through datapacks.
Key Features
- No need to modify the original mod code
- Flexible configuration of all game areas through datapack JSON files
- Hot reload support - use /reload to apply changes without restarting
Customizable Areas
Includes: Player spawn position, spectator spawn position, ready area, play area offset, play area, reset template area, and reset paste area.
Datapack Usage Tutorial
You can download a sample datapack here.
1. Create Datapack Structure
Create the following folder structure:
my_tmm_config_datapack/
├── pack.mcmeta
└── data/
└── trainmurdermystery/
└── tmm_areas/
└── custom_areas.json
2. Create Metadata File
Modification Instructions
Add to pack.mcmeta file:
{
"pack": {
"pack_format": 15,
"description": "My TMM Custom Configuration"
}
}
This mod enables customization of Train Murder Mystery game areas through datapacks. Users can modify the game areas by creating a datapack with custom configuration files.
3. Configure Game Areas
The extension will automatically load and apply any valid configuration found in datapacks under the path: data/trainmurdermystery/tmm_areas/custom_areas.json.
Configure in custom_areas.json file:
{
"spawn_pos": {
"pos": [-872.5, 0.0, -323.0], // Player spawn position coordinates and orientation
"yaw": 90.0, // Horizontal facing (-90=east, 0=south, 90=west, 180=north)
"pitch": 0.0 // Vertical facing (-90=looking up, 0=horizontal, 90=looking down)
},
"spectator_spawn_pos": {
"pos": [-68.0, 133.0, -535.5], // Spectator spawn position coordinates
"yaw": -90.0, // Spectator horizontal facing
"pitch": 15.0 // Spectator vertical facing
},
"ready_area": {
// Ready area where players must be to count as ready
"minX": -1017.0, // Minimum X coordinate of the area
"minY": -1.0, // Minimum Y coordinate of the area
"minZ": -363.5, // Minimum Z coordinate of the area
"maxX": -813.0, // Maximum X coordinate of the area
"maxY": 3.0, // Maximum Y coordinate of the area
"maxZ": -357.5 // Maximum Z coordinate of the area
},
"play_area_offset": {
// Coordinate offset when players are teleported from ready area to play area
"x": 963.0, // X-axis offset
"y": 121.0, // Y-axis offset
"z": -175.0 // Z-axis offset
},
"play_area": {
// Game area where players are bound, going outside or falling will result in death
"minX": -140.0,
"minY": 118.0,
"minZ": -550.5,
"maxX": 230.0,
"maxY": 200.0,
"maxZ": -520.5
},
"reset_template_area": {
// Area where the map reset base template is located
"minX": -57.0,
"minY": 64.0,
"minZ": -531.0,
"maxX": 177.0,
"maxY": 74.0,
"maxZ": -541.0
},
"reset_paste_area": {
// Area where the template should be pasted during map reset
"minX": -57.0,
"minY": 119.0,
"minZ": -531.0,
"maxX": 177.0,
"maxY": 129.0,
"maxZ": -541.0
}
}
Configuration values will override the default values from the original mod. If no custom configuration is found, the mod will use the original default values.
4. Installation and Usage
Place the datapack in the world's datapacks folder
Note: This mod was developed with the assistance of AI technology.
Available Versions
How to Install TMM datapack_extension on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "TMM datapack_extension". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
TMM datapack_extension server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.
Is TMM datapack_extension compatible with fabric?
TMM datapack_extension officially supports fabric for Minecraft 1.21.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with TMM datapack_extension – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if TMM datapack_extension consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Rent Modded Server
Install TMM datapack_extension with just one click on your server.