Description
Adds proximity and remote detonator traps. Proximity traps explode on player contact, remote traps explode on player click. Has War and WorldGuard support. Fully configurable.
Features
- Proximity traps
- Remote detonator traps
- War support
- WorldGuard support
- Fully configurable
- Defusing
- Basic support for all protection plugins which cancel block placing / block destroying / explosions
- Traps will explode after a certain amount of time if noone stepped on it (default 40s, change to 0 for infinity)
- Traps don't explode if PVP in that world is disabled
- Traps don't explode on the player who placed the trap (configurable)
- Setting/destroying traps respect protection plugins
Proximity traps
- Item for playing proximity traps is Firework Star (ID 402) with durability 999. Right-clicking with that item on a block places a trap above
- Looks like tripwire by default (ID 132)
- Obaining traps: /give <player> 402 <amount> 999 (/i 402:999 with Essentials)
- Explode if a player steps on it
Remote detonator traps
- Default item for placing remote detonator traps is Nether Star (ID 399) with durability 999. Righ-clicking places a trap.
- Left-clicking detonates all placed traps
- Looks like a flower pot (ID 140).
- Obaining traps: /give <player> 399 <amount> 999 (/i 399:999 with Essentials)
- Needs at least 2 traps to place traps, last one is always used fo detonating
- Configurable limit of simultaneously placed traps
WorldGuard support
- Traps can't be placed/destroyed/defused in regions where the player cannot build
- Traps can't be placed in regions where 'TNT' flag is disabled
- Traps don't explode in regions where 'other explosion' flag is disabled
- Traps don't explode on players in regions where 'PVP' flag is disabled (delayed explosion still happens)
- Ops can place traps everywhere
War support
- Traps don't explode on team players if 'friendly-fire' is off
- Traps can't be placed on spawn/flag/warhub/etc
- Traps can be placed in custom loadouts
- Traps don't explode on players in zones where 'PVP' is disabled (delayed explosion still happens)
Precedence of plugins is Warzone -> WorldGuard region -> World PVP setting if any conflicts happen
behaviour of traps in respect to explodeOnSelf config option looks like this:
(true = explodes, false = vanishes)
teamPlayerselfInWarzoneselfOutsideselfOff/friendlyFireOntruefalsefalseselfOn/friendlyFireOfffalsefalsetrueselfOn/friendlyFireOntruetruetrueselfOff/friendlyFireOfffalsefalsefalse
Defusing
- If defusingEnabled is true the behaviour of traps changes. Players have to stand near the trap to remove or defuse it (configurable, change to > 4 to disable that feature)
- If a player attempts to remove a trap without defusing it, it will explode (always, exception: WorldGuard regions with 'other-explosion' flag disabled or other plugins which cancel explosions).
- Defusing works as following: equip the defusing item and hold right-click on the trap till it is defused
- If defusing gets interrupted the player has to start over
- Defused traps can drop the trap with certain chance
Commands
- /setplacingitem <ItemID>
Changes placing item to <ItemID> - /settrapblock <BlockD>
Changes trap block to <BlockID>
Permissions
- explosivetraps.*:
description: gives access to all ExplosiveTraps actions - explosivetraps.place:
description: allows placing traps
default: true - explosivetraps.setplacingitem:
description: allows using /setplacingitem
default: op - explosivetraps.settrapblock:
description: allows using /settrapblock
default: op
Configuration
Todo
- make WG non-PVP zones work in War zones
- explosion on entity contact
- add sticky traps
- add option to turn off blockdmg (or just use WG)
- change item names
- make traps persistent
- add residence support (partly implemented)
- add more permissions
- add more commands for configuration
- add possibility to select which trap should be detontated
Caveats
- Traps are not persistent, they don't work anymore after shutdown, but the blocks are still there
- Entities don't trigger traps (yet)
- You have to delete or update configuration file on version update
quick demo: