Home›Java›Mods›Regional Pain
Regional Pain
ModsJava

Regional Pain

Java mod listed for Minecraft 1.12. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Someone on the forum was talking about how they'd like to have it slowly hurt people when they enter certain WorldGuard regions. I thought that sounded cool to try, so here is my attempt. I'm new to Java, so be warned lol. If you find bugs, let me know and I'll attempt to squish them. I'm using PacketPlayOutWorldBorder packets to make the client screen show red around the edges, so this won't work on versions other than 1.12. If you use pre 1.12 and want it, I can remove that for you.

USAGE:

/rpc add
region damage seconds
regionpain.admin.add

Adds a new WorldGuard region to the config. Damage values are 1-20. A single heart is worth 2 damage points. Setting to 20 or higher means you die as soon as you set foot in the region. Seconds is the interval at which to apply the damage value. So if you do /rpc add die 2 5, when players enter region "die" they will lose a heart every five seconds until they leave the region.
​
/rpc del region
regionpain.admin.del

Removes a region from the config.
​
/rpc reload
regionpain.admin.reload
Reloads the configuration from disk
​
/rpc list (p)
regionpain.admin.list - View list of regions
regionpain.admin.list.punishments - View punishments

Without passing p, it will list the current regions that inflict pain. If you pass p, it will show a list of any users who are currently being tortured by a region.
​
/rpc affect god | op | gm (a|c|s|sp)
regionpain.admin.affect.god
regionpain.admin.affect.op
regionpain.admin.affect.gm

This allows you to set certain conditions wherein a player will not be hurt when they enter the region. God toggles whether or not players using Essentials' god mode gets hurt, op toggles whether or not operators get hurt and gm sets it for gamemodes. One letter parameters representing a dventure, c reative, s urvival and sp ectator​

/rpc msg code msg
regionpain.admin.msg - View the current values
regionpain.admin.msg.set - Set values

Allows you to configure the messages. Pass it nothing after msg and it lists the codes. Pass it a code, it shows what the code is currently set to. Pass it code and a msg and it will set it.
​
/rpc redlevel level
regionpain.admin.redlevel

Allows you to set at what health level (and below) the red worldborder tint effect will happen. 0-20, and 1 heart is 2 pts.
​
I didn't make a config interface for it yet (I'm hungry and bored of sitting in from of the PC at the moment) but if you go into the config.yml you can tailor what damage sounds it makes when a person is getting damaged. The config path for the sound is config.damagesound, volume is config.damagevolume and pitch is config.damagepitch. So like if you wanted to have a high pitched bat die every time you got hurt, loud enough to be heard 1000+ blocks away, you could do:

Code (Text):
config:
  damagesound: entity_bat_death
  damagevolume: 75
  damagepitch: 3
lol BTW, the list of valid sounds is here .

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Regional Pain is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 213 times (via Spigot). Download it and open it directly in the game.

Explore more