Skip to content

Region Effects (config)

Multitallented edited this page Dec 23, 2019 · 11 revisions

Adding these in a region's definition provides additional effects inside their radius.

Usage

This would prevent non-members from building or breaking blocks inside the structure's radius:

effects:
- block_break
- block_build

Some effects can also accept single or multiple arguments. The arrow_turret effect, for instance, can accept the damage, speed and spread of the arrows it shoots. The arguments are separated from the effect by a colon (:), while multiple arguments are separated by a period (.):

effects:
- arrow_turret:3.30.38

See the List of Region Effects below for a description of all effects and their required arguments.

List of Region Effects

Effect Description
indestructible Can't be destroyed by region owner or members through the menu or block break.
arrow_turret:damage.speed.spread Shoots arrows at nearby mobs and enemy players.
block_break Non-members cannot break blocks.
block_build Non-members cannot place blocks.
block_fire Non-members cannot use flint'n'steel and stops fire from spreading.
block_liquid Liquids can't be placed inside this region by non members.
block_explosion This region is protected against explosions.
block_tnt Blocks TNT in this region.
block_ghast Blocks Ghast fireballs in the region.
block_creeper Blocks Creeper explosion in the region.
door_use Blocks door use for non members.
chest_use Blocks chest access for non members.
button_use Disallow usage of buttons to non members.
block_use Disable block interaction inside the region to non members.
deny_mob_spawn Blocks mob spawning inside the region.
housing:amount Increases the cap on how many players can join your town.
tnt_cannon Makes the region a cannon that shoots TNT.
villager:amount Increases your population by amount and spawns villagers over time (set in config.yml). If you leave amount blank, then it defaults to 1.
cant_override Prevents town owners from overriding region ownership.
public_graveyard A public version of the graveyard, allows players to respawn in this region.
graveyard Allows town members to respawn in this region.
jail Locks invading players for a short amount of time.
port Allows members to teleport back to the region via Menu.
deny_damage Blocks damage inside the region.
deny_pvp Blocks pvp inside the region
conveyor:block_name Allows a minecart rail to transfer that item from that region.
raid_port Teleport the user to a random place inside the target town.
charging_raid_port Charges the Raid Port.
drain_power:period.damage Drains power from the target town.
charging_drain_power Charges the Drain Power.
potion:TYPE.duration.level.chance.cooldown Applies the potion effect to members of the region when they are inside. Examples: potion:FAST_DIGGING.160.1.100.120 gives fast digging to members for 160 seconds 100% of the time. Applies this buff every 2 minutes. potion:^BLINDNESS.80.1.25,^SLOW.40.2.50,^WEAKNESS.80.1.25 has 25% chance to give blindness or weakness, but a 50% chance to give slow to non-members.
jammer:radius.destination.cooldown Example: jammer:100.30.40 Changes the destination of a teleport. The teleport must travel within 100 blocks of the jammer. The new destination will be a random block 30 blocks away from the jammer. The intercepted player will not be able to teleport for 40 seconds.