Difficulty Mod is a progressive difficulty mod specifically designed for Hardcore gameplay. It provides players with a grace period at the start of their world, allowing them to establish themselves and prepare before the world becomes truly dangerous.
Perfect for Hardcore modpacks where death is permanent, this mod balances the challenge by giving players time to build a solid foundation before facing hostile creatures.
The mod offers two levels of protection that gradually decrease:
1. Total Immunity (First Minute - 1200 ticks)
2. Mob Invisibility (Up to ~17 minutes - 20000 ticks)
The mod automatically manages server difficulty:
The mod displays on-screen titles (like boss bars) to warn the player:
At 20000 ticks (~16min 40s):
At 24000 ticks (20 minutes):
When the player becomes targetable:
The player can instantly lose their invisibility protection by performing certain actions:
✅ Attacking a creature or mob
✅ Opening a chest, barrel, or shulker box
✅ Breaking a chest, barrel, or shulker box
As soon as one of these actions is performed:
💡 Strategy Tip: Use your invisibility time to explore, gather basic resources (wood, stone), and find a good location for your base. Avoid opening chests or attacking until you're ready!
All protections and effects apply ONLY in the Overworld:
In the Nether and End, the mod is completely inactive:
This maintains the challenge in dangerous dimensions while offering a balanced early game.
The mod automatically generates a configuration file: config/difficultymod-server.toml
[timings]
# Duration of complete immunity in ticks (default: 1200 = 1 minute)
# Range: 0 ~ 100000
immunityTime = 1200
# Duration during which the player is untargetable (default: 20000 = ~16min 40s)
# Range: 0 ~ 100000
untargetableTime = 20000
# Time before switching to Hard difficulty (default: 24000 = 20 minutes)
# Range: 0 ~ 200000
oneDayTime = 24000
[gameplay]
# If true, attacking makes the player targetable immediately
attackMakesTargetable = true
# If true, opening/breaking a chest makes the player targetable immediately
chestMakesTargetable = true
Scenario 1: Classic Hardcore Pack
Scenario 2: Pack with Modified Mobs
The mod is perfectly compatible with Minecraft's Hardcore mode:
Compatible with mods that enforce Hardcore mode:
Minecraft Version: 1.18.2
Loader: Forge 40.2.0+
Side: Server (also works in singleplayer)
Configuration: Auto-generated TOML file
TickEvent.WorldTickEvent - Time and effect managementLivingAttackEvent - Damage protectionLivingChangeTargetEvent - Prevents mobs from targetingPlayerInteractEvent.RightClickBlock - Chest opening detectionBlockEvent.BreakEvent - Chest breaking detectionMobEffects.ABSORPTION (level IV) - ImmunityMobEffects.INVISIBILITY - Untargetable❌ Does not modify mob spawns
❌ Does not change creature statistics
❌ Does not modify gameplay in Nether/End
❌ Does not persist between deaths (by design)
❌ Does not affect creative/spectator players
✅ Protects the player at the start of the game
✅ Automatically changes server difficulty
✅ Provides clear visual feedback (effects and messages)
✅ Resets with each new game
✅ Is fully configurable
A progressive difficulty mod for Hardcore that gives players 20 minutes of protection (immunity + invisibility) to establish themselves before the world becomes truly dangerous, with instant protection loss if the player attacks or opens a chest.
Time | Protection | Visual Effect | Difficulty | Status
---------|---------------------|----------------------|------------|------------------
0-1 min | Immunity + Invis | Absorption IV + Invis| Peaceful | Safe to explore
1-17 min | Invisibility only | Invisibility | Peaceful | Can't be targeted
17-20 min| None | None | Peaceful | Warning received
20+ min | None | None | Hard | Full survival mode
Special: Opening/breaking a chest or attacking immediately removes invisibility at any time!
Q: Does the mod work in multiplayer?
A: Yes! Each player gets their own protection timer based on when they join.
Q: Can I disable the chest opening mechanic?
A: Yes, set chestMakesTargetable = false in the config file.
Q: What happens if I die and create a new world?
A: All protections fully reset - you start fresh with full protection again.
Q: Does this work with modded mobs?
A: Yes! The invisibility effect works with all mobs that extend the vanilla Monster class.
Q: Can I change the timings?
A: Absolutely! Edit the difficultymod-server.toml file in your config folder.
Q: Does this affect the Nether or End?
A: No, protections only work in the Overworld. Other dimensions remain challenging.
If you encounter bugs or have suggestions:
logs/latest.log)This mod is licensed under MIT - Free to use and modify.
Good luck and have fun in your Hardcore adventure! 🎮⚔️