- Поддерживаемые версии
- 1.21
- Ядра и Прокси
- Bukkit
- Spigot
- Paper
- Минимальная версия Java
- 21
FunTraps – Customizable Cages
Full region and protection support for Spigot/Paper 1.21+
Full region and protection support for Spigot/Paper 1.21+
Description
FunTraps is a lightweight plugin that allows server administrators to create and manage customizable traps. These traps can take the form of cages or prisons built from custom block structures, enhanced with potion effects, and managed through a robust skin system.
The plugin features full integration with WorldGuard and ProtectionStones, ensuring that tactical gameplay remains fair and respects server claims.
Features
- Core Systems
- Selection tool (Golden Axe) to define custom trap areas.
- Configurable cage skins via config.yml.
- Support for both infinite and time-limited potion effects.
- Protection Integration
- WorldGuard: Restrict traps in specific worlds or regions; whitelist permitted areas.
- ProtectionStones: Limit trap usage to region owners or members.
- Advanced Mechanics
- MySQL & FlatFile Support: Choose your preferred data storage system.
- Usage & Durability System: Control how many times a player can use a specific trap.
- Intelligent trap center calculation during the saving process.
- Block filter system to protect materials like Barrier, Bedrock, and Dispensers.
- Safe restoration of container contents (chests, hoppers) and spawner settings.
Commands
Admin Commands (funtraps.admin)
- /trap give <player|all> <amount> – Distribute trap activation items.
- /trap giveuses <player> <skin> <amount> – Add uses to a player's specific trap skin.
- /trap takeuses <player> <skin> <amount> – Remove uses from a player's trap skin.
- /trap setuses <player> <skin> <amount> – Set the exact number of uses for a player.
- /trap profile <player> – View a detailed profile of a player's trap statistics.
- /trap tool – Obtain the selection tool (Golden Axe).
- /trap save <name> – Save a structure with smart center calculation.
- /trap delete <skin> – Remove a saved structure.
- /trap rename <old> <new> – Rename an existing trap structure.
- /trap remove <player|all> – Force-remove active traps from the world.
- /trap reload – Reload all configuration and language files.
Player Commands (funtraps.user)
- /trap skin <name> – Select your active trap skin.
- /trap skins – List all available skins and remaining uses.
Permissions
- funtraps.admin – Full access to all administrative commands.
- funtraps.user – Basic access to select and view owned skins.
- funtraps.skin.<name> – Permission to use a specific trap skin.
- funtraps.skin.* – Grants access to all available skins.
Configuration Example
YAML:
# ###########################################################
# SKINS CONFIG #
# ###########################################################
skins:
default:
# ================================
# BossBar for this skin only
# ================================
# Use {time} in the text to display the remaining time dynamically.
bossbar:
enabled: true
text: "&5⏳ Trap Active! {time}s"
color: PURPLE
duration: 15 # Trap duration with this skin (in seconds)
cooldown: 15 # Trap cooldown with this skin (in seconds)
animation: sphere # Animation type: "sphere", more coming soon...
# ================================
# Item cooldowns inside the trap
# ================================
item-cooldowns:
ENDER_PEARL: 8 # seconds
CHORUS_FRUIT: 12
ENCHANTED_GOLDEN_APPLE: 30
GOLDEN_APPLE: 15
TOTEM_OF_UNDYING: 30
ELYTRA: 15
# You can continue adding more items to the list.
# ================================
# Sounds when placing/removing
# ================================
sounds:
place:
- name: minecraft:ui.toast.challenge_complete
volume: 1.0
pitch: 1.0
range: 24
category: master
- name: minecraft:entity.wither.break_block
volume: 1.0
pitch: 1.0
range: 24
category: master
remove:
- name: minecraft:block.beacon.power_select
volume: 1.0
pitch: 1.0
range: 24
category: master
- name: minecraft:block.end_portal.spawn
volume: 1.0
pitch: 1.0
range: 24
category: master
# ───────────────────────────────
# Available sound categories:
# ───────────────────────────────
# master → Controls all sounds globally.
# music → Background music.
# record → Music discs.
# weather → Rain, thunder, etc.
# block → Block sounds (breaking, placing, doors, pistons...).
# hostile → Hostile mobs (zombies, skeletons, creepers...).
# neutral → Passive mobs (cows, pigs, villagers...).
# player → Player sounds (steps, damage, burping, etc).
# ambient → Ambient sounds (cave sounds, nether ambiance).
# voice → Player voice (reserved for chat systems).
# ================================
# Trap Effects
# ================================
effects:
# Effects applied to the trap owner
self:
- type: STRENGTH
amplifier: 2
duration: 10 # seconds
- type: GLOWING
amplifier: 0
duration: -1 # Infinite until the trap ends
# Effects applied to trapped enemies
enemies:
- type: SLOWNESS
amplifier: 1
duration: 10
- type: GLOWING
amplifier: 0
duration: -1
Important Notice (Action Required)
- Команды и права
- :,3