Prevents healing outside of the worldborder instead of preventing exploration outside of it. Players who leave the worldborder will recieve the status effect "Desolation" and not be able to heal in any capacity.
Desolation prevents recieving healing from sources like:
- Eating
- Totem of Undying
- Potions (Regeneration, Instant Healing, etc)
- Absorption (configurable)
- etc..
In a new world (as op) you might run:
/swb set minecraft:overworld enabled true
/swb set minecraft:overworld halfWidth 500As you get close to the border:
When you pass through the border you will be given the status effect:
Operator's level >=2 are able to call the commands:
# enables/disables the border in the specified dimension
/swb set modid:dimension_name enabled <true|false>
# determines the number of blocks out from the origin in which the walls are placed
/swb set modid:dimension_name halfWidth <number>
# determines the center
/swb set modid:dimension_name origin <x, z>
# returns current configuration for a dimension
/swb get modid:dimension_name
# returns the current configuration for all dimensions
/swb list
# reloads currently set configuration file into server, only necessary if commands were not used
/swb reloadThe configuration file itself can also be directly modified if you would rather do that:
Inspired by, but didn't have the version I wanted this mod to be used in: https://modrinth.com/mod/no-heal-border



{ "dimensions": { // supports modded dimensions via modid:dimension_name "minecraft:overworld": { "enabled": true, "origin": { "x": 0.0, "z": 0.0 }, // distance from origin to the wall "halfWidth": 250.0 } }, // not reccomended, does hard clamping on health every tick "clampEnforcement": false, // prevents bonus hearts given from absorption effecet "blockAbsorption": false }