TYPE to simplify deployment and updates.
Environment Variables
| Variable | Default | Description |
|---|---|---|
TYPE | - | Set to GTNH |
GTNH_PACK_VERSION | latest | Modpack version: latest, latest-dev, or specific version |
GTNH_DELETE_BACKUPS | false | Delete config backup folders on startup |
SKIP_GTNH_UPDATE_CHECK | false | Prevent update checks from running |
Pack Version Selection
As GTNH is a Minecraft 1.7.10 modpack, your Minecraft version is automatically set to 1.7.10. The modpack version can be selected by settingGTNH_PACK_VERSION:
latest
Automatically selects the latest full release version and deploys the server with it. This will also automatically update the server on startup.latest-dev
Selects the latest version marked as beta or RC. Won’t select a full release version even if newer.Specific Version (Recommended)
Set to a specific version like2.8.1 to manage updates manually:
Using a specific version is recommended for production servers to prevent unexpected updates.
Preventing Updates
To actively prevent an update from happening:Resource Requirements
Recommended Minimum
- CPU: 2-4 cores
- RAM:
- 6GB + 0.5GB per extra player (early game)
- 6GB + 1GB per extra player (~UV tier+)
- Storage: 20GB+ (HDD feasible, SSD preferred)
Java Version
GTNH supports Java 8 and Java 17+ (Java 17+ is always recommended for maximum performance).Recommended Images
-
Java 25 (optimal): For GTNH 2.8.0 and later
-
Java 17: For good performance
-
Java 8: Legacy support
For optimal performance, choose Java 25 with GTNH 2.8.0 and later.
Examples
Config Backups
During version upgrades, the server replaces all config files to ensure new features are set up as intended. Old config files are stored in backup folders in the data directory for reference when manually reapplying your settings. To delete all backup folders at startup:Server Properties Defaults
To deliver the intended GTNH experience, the following options are automatically set inserver.properties:
| Property | Value | Description |
|---|---|---|
LEVEL_TYPE | rwg | Realistic World Generation |
DIFFICULTY | hard | Hard difficulty |
ALLOW_FLIGHT | true | Allow flying (required for some mods) |
ENABLE_COMMAND_BLOCK | true | Enable command blocks |
MOTD | Greg Tech New Horizon <version> | Server MOTD |
It’s recommended to leave these as-is, but you can override them if you know what you’re doing.
Java Arguments
The server automatically uses optimized Java arguments based on the Java version:Java 17+
Java 8
Additional Mods
GTNH supports additional optional mods. See the Additional Mods wiki page for recommended mods. Add mods using theMODS environment variable:
Upgrading
Automatic Upgrades
If usinglatest or latest-dev, simply restart the container:
Manual Version Upgrades
Troubleshooting
Server won’t start
- Verify you’re using a supported Java version (8 or 17+)
- Check that you have allocated sufficient memory (minimum 6GB)
- Ensure
SKIP_GTNH_UPDATE_CHECKis not set during initial setup
Performance Issues
- Upgrade to Java 25 for GTNH 2.8.0+
- Increase
MEMORYallocation - Use SSD storage instead of HDD
- Allocate more CPU cores
Config changes not persisting
- Remember that config files are replaced during upgrades
- Use the backup folders to identify and reapply your custom settings
- Consider setting
GTNH_DELETE_BACKUPStofalseuntil you’ve restored your settings
For comprehensive setup guidance, consult the official GTNH wiki.