A utility mod for Refugee to Regent Challenge found at Refugee to Regent Challenge.
v0.5 - Added ability to disable update checking, as well as ability to specify an initial number of blocks to ignore before enforcing armor-wearing effects (ylevelOffset in config file).
Selecting gameMode=0 in config will enable original version of mod, which causes negative effects to players not wearing helmets venturing more than just a little bit underground. Wearing a helmet disables these effects for the player.
Selecting gameMode=1 in config will enable an alternative ruleset, in which a player can venture up to 9 blocks below the surface with no ill effects. To venture more than 10 blocks below the surface, a helmet must be equipped. To venture more than 20 blocks, a chestpiece must also be equipped, for 30 blocks, leggings must be added, and for 40 or more blocks, a full armor set must be worn.
Note that this is a top-down thing. If you lose your chestpiece, regardless of whatever leggings or shoes you have on, you cannot venture more than 19 blocks below the surface without suffering negative effects.
Effects have been expanded:
useBlindEffect - Causes the Blindness effect for 10 seconds. Will refresh as long as armor requirements not met.
useConfusedEffect - Causes the Nausea effect for 10 seconds. Will refresh as long as armor requirements not met.
useFatiguedEffect - Causes the Mining Fatigue effect for 10 seconds. Will refresh as long as armor requirements not met.
useSlowedEffect - Causes the Slowed effect for 10 seconds. Will refresh as long as armor requirements not met.
You can enable/disable any combination of these to make the penalties vary from mildly inconvenient to truly evil, depending on your mood. The Mining Fatigue effect is a full-on fatigue, preventing any survival-mode block breaking while it is active.
Add functionality to track which stage each player is in. This will allow me (among other things) to reduce the armor requirements as the stages increase.
Requires Forge v1230+ at this time. I will back-port if there is a demand for it.