Areas

Mods
3,946 Downloads Last Updated: Sep 27, 2020 Game Version: 1.16.3

a1

Requires the library mod Collective.

Areas is a mod which allows any player to easily created named areas in a world. This can be an area, region, zone, town, kingdom etc. This is done with a placed sign. On it you specify the radius, optionally the rgb value and the name. This means that the radius around the sign is now considered an area. Whenever a player enters this area, they receive a message at the top of the GUI with (by default) "Enter the area.". And when they leave "Leaving the area.". This can both be changed in the config.

There is a global RGB value for the messages specified in the config, but this can also be a unique value again specified on the sign. See the examples below for a better idea of how it works!

Works in multiplayer, but players must also have the mod installed on their client.


Configurable
radiusAroundPlayerToCheckForSigns (default = 100, min 0, max 1000): The radius in blocks around the player in which to check for area signs.
sendChatMessages (default = false): When enabled, sends the player the area notifications in chat.
showHUDMessages (default = true): When enabled, sends the player the area notifications in the HUD on screen.
joinPrefix (default = "Entering "): The prefix of the message whenever a player enters an area.
joinSuffix (default = "."): The suffix of the message whenever a player enters an area.
leavePrefix (default = "Leaving "): The prefix of the message whenever a player leaves an area.
leaveSuffix (default = "."): The suffix of the message whenever a player leaves an area.

HUDOnlyAreaName (default = false): When enabled, only shows the areaname in the HUD. When disabled, the prefixes and suffices will also be used.
HUDMessageFadeDelayMs (default = 4000, min 100, max 360000): The delay in ms after which the HUD message should fade out.
HUDMessageHeightOffset (default = 10, min 0, max 3000): The vertical offset (y coord) for the HUD message. This determines how far down the message should be on the screen. Can be changed to prevent GUIs from overlapping.
HUD_RGB_R (default = 100, min 0, max 255): The red RGB value for the HUD message.
HUD_RGB_G (default = 200, min 0, max 255): The green RGB value for the HUD message.
HUD_RGB_B (default = 50, min 0, max 255): The blue RGB value for the HUD message.


Examples
To create an area with a radius of 10, use one of these prefixes:
This will create an unnamed area.



A simple example; a desert island area with a radius of 10:


Entering the desert island:


When breaking the sign, the area ceases to exist:

 


Another example with a custom colour; A savanna village area with the rgb value after the [RGB] prefix:
These three signs result in exactly the same.
 
Entering the savanna village:

 

Leaving the savanna village:

 

And another example with an unnamed area with a radius of 5 by not entering a name, and breaking it after:

 





b1
c1c2c3