
Mystic Treasures 2.7
Ready to give your players a reason to explore the world?





Screenshots
https://www.youtube.com/watch?v=ZcyF2M9QjXk
- Full Customization everything can be within your tastes
- MythicMobs support - spawn your custom mobs and bosses and let your players fight for their lives.
- ItemsAdder and Oraxen support
- Use custom items as rewards and give your players unique loot for their effort
- Use custom blocks as treasure chest and make your player's experience even more epic.
- Holograms
- You can optionally install DecentHolograms or FancyHolograms for amazing holograms above the treasure.
- It's not mandatory though, you can just edit the basic hologram instead.
- Unlimited amount of treasures:
- Have as many treasures as you'd like and set everything to your taste!
- Unlimited rarities with unlimited prizes
- Spawn the treasure wherever you want:
- Randomly in your world - only in safe locations, inside borders, and outside regions
- At your current location with /hunt start here
- In fixed locations set in your config
- Treasure Keepers - spawn mobs near the treasure in order to keep it safe
- You can require the players to kill all the mobs before allowing them to claim the treasure. Or not, it's up to you.
- You can make the mobs spawn when a players gets near the treasure or right when it spawns.
- Customize your TreasureKeepers
- Use MythicMobs
- Set max health
- Set armor and equipment (with enchantments)
- Add potion effects
- Set custom name
- Set range (spawn 5 to 10 mobs)
- Set chance of spawn
- No PVP - you disable PVP near the treasure so the players can focus on fighting the mobs. Or you can enable it and let chaos begin.
- Treasure Scheduler - set multiple schedulers per treasure so that you can make treasures spawn multiple times per day or per week automatically
-
- You can set the day to "daily" to make a treasure appear every day at the same hour, or you can set it to "monday", "tuesday", etc..
- You can set the time to spawn using the 24 hour format (for example 17:35, NOT 5:35PM)
- You can set the coordonates where the treasure should spawn using the X:Y:Z format (for ex. 155:60:33) or just set it to "random" to spawn in randomly in the world
- All of this with the capability to have multiple schedulers make this feature extremely versatile for automating treasure generation.
-
- Treasure Keys - custom keys for every treasure so only players holding the key can open the treasure
- Custom item rewards
- Every items has a chance to be dropped
- Customize your reward - set custom display name and lore
- Every item has an amount interval so players won't receive the same amount of an item every time
- Customize your item's name and lore
- Command rewards
- Run commands to give your player all the prizes they'd like
- Set a chance to run the command
- Potion effects near the treasure to make the fight more interesting
- You could help the players with regeneration or jump boost, or you could make it harder by giving them blindness and nausea.
- Protecting the area against trolling, traps, or destruction
- Disable placing or breaking blocks, placing liquids, or other things that players might try to do in order to keep the competition away.
- Prizes
- Give your players any prizes they want with items or commands as reward types.
- Reward only the player that opened the treasure the one who dealt the most damage, or everyone that participated in the hunt.
- Drop the prizes on the ground
- Configurable chance and custom item support!
- PlaceholderAPI support - placeholders to show info about the hunt's status in order to integrate with other plugins:
- %mystictreasures_x% - display X coordinates
- %mystictreasures_z% - display Z coordinates
- %mystictreasures_world% - display the world's name
- %mystictreasures_active% - display if the hunt is active
- %mystictreasures_mobs% - display remaining mobs
- %mystictreasures_remaining% - display remaining time
- %mystictreasures_participants% - display how many players have participated so far in the treasure hunt (if enabled, shows the number of players that have killed at least a mob)
- Animations
- With 3 different animations (for now), amaze your player's eyes.
- When mobs spawn, they rise from the ground to make the fight unforgettable.
- Lightweight, with little to no impact on performance
- Flares let your players see the treasure from far away
- Edit the look of the flares to your taste. Want it to be more visible, or less? Just change a few values in the config and you're set.
- ActionBar to guide your players to the treasure, and alert them on the time left
- Particles and fireworks to enhance the experience of the players.
- All of them are configurable, and they don't affect performance
- Lots of settings
- Chance of appearance, minimum online players, duration, and many more settings are available to make this plugin your own.
- I want a treasure here - spawn a treasure right where you're standing, or just start a random hunt somewhere on the map
- Config updater sets the config to the newest values for you.
- No fly zone
- Deny flying near treasures, without the worry that someone may die. The plugin lands them safely on the ground.
- Deny even elytra gliding if you'd like
- WorldGuard support so no treasures are placed inside regions
- ChunkyBorder support so no treasures are placed beyond borders
- Also works with vanilla world borders.
- You can also set the max coords that a treasure can spawn to in order to better control where you treasure can appear.
- 1.21, no need to change things. This plugin was made with compatibility in mind
- HEX and color codes support everywhere. Also, some messages are centered in order to get your player's attention
- You can require your players to click a number of times before retrieving the treasure
- You can set cooldowns
- You can set a cooldown for claiming treasures. If you claimed a treasure, you need to wait before claiming another. Persistent after restart.
- You can set cooldowns for spawning treasures in a certain world. (ex. if a treasure was spawned now, it will wait some time before trying to spawn another - but that is up to the chance also).
- Lightweight. I work constantly to reduce excess code and to make everything as efficient as possible.
- Reload your config with a simple command.
- TabCompleter so that you don't have to worry about typing all the commands by yourself
- Updater - be notified of the newest version available
- Everything is toggleable, if you don't want something to be available to the players, you can just turn it off in the config, and reload the plugin.
- Friendly developer, always ready to answer questions and squash bugs
- Constant updates, as many as I can
- Command list:
- /hunt start - Starts the hunt at a random location in the player's world
- /hunt start (Treasure) - Starts the hunt at a random location
- /hunt start here (Treasure) - Starts the hunt right at the player's location
- /hunt key (Player) (Treasure) (Number) - Give a player a treasure key
- /hunt stop (Treasure) - Stops the hunt in the specified world
- /hunt help - Lists all commands
- /hunt reload - Reloads config and messages - not all values can be reloaded for performance purposed, some may need a restart.
- /hunt clear - clears the player's cooldown
- /hunt debug - enter debug mode

Config
settings:
positive-sound: "ENTITY_PLAYER_LEVELUP"
negative-sound: "BLOCK_ANVIL_BREAK"
allow-pvp-near-treasure: false
allow-flight-near-treasure: false
allow-god-near-treasure: false
allow-elytra-near-treasure: false
disable-griefing-protection: false
protection-radius: 50 #The radius in which the griefing protection works. ATTENTION! You should NOT set this to 0!
min-players-online: 15 #Minimum players to have a chance to spawn a treasure
protect-mobs-from-sun: true #Should zombies not set on fire from the sun?
potion-effect-radius: 20 #How close you need to be to the treasure in order to be affected by the potion effects
broadcast-to-all-worlds: false #Send the actionbar message to all the worlds. If multiple treasures are started only one treasure will appear in the actionbar.
winner-cooldown: 5 #How long in minutes, a treasure winner has to wait before claiming another treasure
max-players-looting: 3 #How many players can access the inventory at once
click-cooldown: 1 #How much time to take another item in ms
obfuscate-rewards: false
obfuscated-reward-item:
item: DIRT
name: "???"
lore:
- "What is this?"
fall-protection:
duration: 1200
level: 2
actionbar:
enabled: true
refresh: 2 #Refresh rate in ticks
blacklisted-commands:
- "heal"
blacklisted-biomes:
- "COLD_OCEAN"
- "DEEP_OCEAN"
- "DEEP_DARK"
- "DEEP_FROZEN_OCEAN"
- "DEEP_LUKEWARM_OCEAN"
- "FROZEN_OCEAN"
- "FROZEN_RIVER"
- "ICE_SPIKES"
- "LUKEWARM_OCEAN"
- "OCEAN"
- "RIVER"
effects-particles: #You should change these only if they cause compatibility issues.
dust: DUST
wax_off: WAX_OFF
soul: SOUL
soul-fire-flame: SOUL_FIRE_FLAME
warped-spore: WARPED_SPORE
crit: CRIT
lava: LAVA
flame: FLAME
treasure-spawn-particle: EXPLOSION
treasure-fall-particle: CAMPFIRE_SIGNAL_SMOKE
treasure-remove-particle: EXPLOSION_EMITTER
updater: true
bstats: true
Messages
messages:
no-permission: "&6&lTreasure&e&lHunt &fYou don't have permission to use this command."
wrong-command: "&6&lTreasure&e&lHunt &fWrong command! Run &6/hunt help &ffor more info."
inexistent-world: "&6&lTreasure&e&lHunt &fHunts are not enabled in this world"
inexistent-treasure: "&6&lTreasure&e&lHunt &fNo treasure found with this identifier"
hunt-already-active: "&6&lTreasure&e&lHunt &fThere is already a hunt active in this world"
hunt-not-active: "&6&lTreasure&e&lHunt &fThere is no hunt active at the moment"
generating-treasure: "&6&lTreasure&e&lHunt &fis being generated.."
treasure-generated: "&6&lTreasure&e&lHunt &fgenerated successfuly!"
treasure-generated-confirmation: "&6&lTreasure&e&lHunt &fwas generated @ {world}, X: {x}, Z: {z}"
treasure-stopped-confirmation: "&6&lTreasure&e&lHunt &fwas stopped @ {world}, X: {x}, Z: {z}"
hunt-stopped: "&6&lTreasure&e&lHunt &fYou stopped the treasure hunt"
cannot-place-near-treasure: "&6&lTreasure&e&lHunt &fCan't place blocks near a treasure!"
cannot-break-near-treasure: "&6&lTreasure&e&lHunt &fCan't break blocks near a treasure!"
cannot-attack-near-treasure: "&6&lTreasure&e&lHunt &fCan't attack players near a treasure!"
no-hunt-in-this-world: "&6&lTreasure&e&lHunt &fThere are no hunts in this world"
full-inventory: "&6&lTreasure&e&lHunt &fYou have a full inventory, so you've dropped {amount} {item}"
full-inventory-opening-treasure: "&6&lTreasure&e&lHunt &fYou have a full inventory! Drop some items and then open the chest!"
actionbar: "&8(&2❖&8) &fTreasure despawning in &7{time} &8| &7X: &f{x} &7Z: &f{z}"
actionbar-all-mobs-dead: "&8(&2❖&8) &fAll the Treasure Keepers are dead! Go and open the treasure!"
actionbar-mobs-remaining: "&8(&2❖&8) &fThere are still {remaining_mobs} Treasure Keepers alive!"
actionbar-mobs-tracker: "&8(&2❖&8) &fA Treasure Keeper is located at &7X: &f{x}, &7Y: &f{z} &7Z: &f{z}"
treasure-icon-text: "&8(&2❖&8) &aTreasure &7 | Click"
winner-console: "&6&lTreasure&e&lHunt &f{player} has claimed the treasure @ X: {x}, Z: {z}"
winner-message: "&6&lTreasure&e&lHunt &fSweet! The treasure is all yours"
winner-cooldown: "&6&lTreasure&e&lHunt &fYou need to wait {time} before claiming another treasure"
config-reload: "&6&lTreasure&e&lHunt &fConfig reloaded!"
no-creative: "&6&lTreasure&e&lHunt &fYou can't break Treasures in Creative mode"
participating: "&6&lTreasure&e&lHunt &fYou are now participating in this TreasureHunt!"
participating-cleared-mobs: "&6&lTreasure&e&lHunt &fYou killed all the Treasure Keepers! The reward is all yours!"
player-not-found: "&6&lTreasure&e&lHunt &fThis player is not online!"
world-not-found: "&6&lTreasure&e&lHunt &fThis world doesn't exist!"
cooldown-reset: "&6&lTreasure&e&lHunt &fYou successfully reset the player's cooldown!"
remaining-clicks: "&6&lTreasure&e&lHunt &fKeep on clicking! ({current_clicks}/{needed_clicks})"
starting-clicks: "&6&lTreasure&e&lHunt &fHmm, it seems locked! Try opening again! ({needed_clicks} clicks remaining)"
clicking-too-fast: "&6&lTreasure&e&lHunt &fYou're clicking too fast, chill out!"
no-key: "&6&lTreasure&e&lHunt &fThis treasure requires a key!"
interact-with-key: "&6&lTreasure&e&lHunt &fYou can only use this key on a Treasure Chest!"
minutes-before-pickup-not-passed: "&6&lTreasure&e&lHunt &fThe treasure cannot be opened yet! You need to wait {time} to open the treasure!"
not-number: "&6&lTreasure&e&lHunt &fYou need to enter a number!"
received-key: "&6&lTreasure&e&lHunt &fYou received a treasure key!"
reload-with-hunt-active: "&6&lTreasure&e&lHunt &fYou cannot reload the plugin while a treasure is active!"
blacklisted-command: "&6&lTreasure&e&lHunt &fThis command cannot be used while near a treasure!"
only-right-click: "&6&lTreasure&e&lHunt &fYou can only open the treasure by right-clicking it"
treasure-locked: "&c&lLOCKED"
treasure-unlocked: "&a&lUNLOCKED"
menu-yes: "Yes"
menu-no: "No"
days: "day(s)"
hours: "hour(s)"
minutes: "minute(s)"
max-players-looting: "&6&lTreasure&e&lHunt &fThere are too many players already looting!"
treasure-reward-menu-title: "Treasure Rewards"
showcase-key-menu-title: "Treasure Key"
active-hunts-menu:
title: "Active Hunts"
name: "&a&l&o{treasure_name}"
lore:
- ""
- " &a⏰ &fRemaining time: &a{time}"
- " &a⛨ &fTreasure Keepers: &a{keepers}"
- " &a➷ &fX: &a{x}&f, Y: &a{y}"
- " &a🗺 &fWorld: &a{world}"
- " &a⚔ &fParticipants: &a{participants}"
- " &a🔑 &fRequires key: &a{key}"
- ""
showcase-hunts-menu:
title: "Available hunts"
name: "&a&l&o{treasure_name}"
lore:
- ""
- " &a⛨ &fTreasure Keepers: &a{keepers}"
- " &a➷ &fRewards: {rewards}"
- " &a➷ &fDuration: {duration}"
- " &a➷ &fRequire mobs dead: {requires_mobs_dead}"
- " &a➷ &fDebuff: {debuff}"
- " &a🗺 &fWorld: &a{world}"
- " &a🔑 &fRequires key: &a{requires_key}"
- ""
- " &a&l&oLEFT CLICK &fto see the rewards"
- " &a&l&oRIGHT CLICK &fto see the treasure keepers"
- ""
other-buttons:
home:
item: "BOOK"
name: "&a&l&oHOME"
rewards:
item: "EMERALD"
name: "&a&l&oREWARDS"
keepers:
item: "DIAMOND_SWORD"
name: "&a&l&oKEEPERS"
key:
item: "TRIPWIRE_HOOK"
name: "&a&l&oKEY"
showcase-rewards-menu:
title: "Hunt rewards"
reward-item-name: "&a&l&o{reward_name}"
reward-item-lore:
- ""
- " &a⛨ &fItem: &a{item}"
- " &a➷ &fAmount: {amount}"
- " &a➷ &fChance: {chance}"
- ""
command-item: "COMMAND_BLOCK"
command-item-name: "&a&l&o{reward_name}"
command-item-lore:
- ""
- " &a⛨ &fCommand: {command}"
- " &a➷ &fChance: {chance}"
- ""
showcase-keepers-menu:
title: "Treasure Keepers"
name: "&a&l&o{keeper_name}"
lore:
- ""
- " &a⛨ &fEntity: {entity}"
- " &a➷ &fMyhicMob: {mythic}"
- " &a➷ &fBuffed: {buffed}"
- " &a➷ &fRange: {range}"
- " &a➷ &fHealth: {health}"
- ""
winner-broadcast:
- ""
- "&6&lTreasure &e&lHunt"
- ""
- "&fThe mysterious treasure was found by"
- "&6{player}"
- "&fCongratulations, adventurer!"
- ""
announce-treasure:
- ""
- "&6&lTreasure &e&lHunt"
- ""
- "&fA {alias} is rumored to appear!"
- "&fX: &7{x} &fZ: &7{z}"
- "&fGood luck finding it!"
- ""
- "&7&o((Tip: The treasure will spawn soon))"
- ""
treasure-hologram:
- "&6&l{alias}"
- "&fStatus: {status}"
- "&fRequires Key: {requires-key}"
- ""
- "&fDespawning in {time}"
- "&fThere are {remaining_mobs} Treasure Keepers"
- "&fstill alive"
- "&fClick to open"
- "#ICON: EMERALD"
hunt-message:
- ""
- "&6&lTreasure &e&lHunt"
- ""
- "&fA {alias} has just emerged!"
- "&fX: &7{x} &fZ: &7{z}"
- "&fLet the hunt begin!"
- ""
- "&7&o((Tip: The treasure will dissapear in {duration} minutes))"
- ""
need-to-kill-all-mobs:
- ""
- "&6&lTreasure&e&lHunt &fThe treasure is protected by a magic spell!"
- "&6&lTreasure&e&lHunt &fGet rid of the Treasure Keepers in order to claim it's belongings!"
- ""
debuff-reached:
- ""
- "&6&lTreasure&e&lHunt &fThe treasure is protected by a magic spell!"
- "&6&lTreasure&e&lHunt &fGet rid of the Treasure Keepers in order to claim it's belongings!"
- ""
unlocked-treasure:
- "&6&lTreasure&e&lHunt &fYou unlocked the treasure! Now everyone can access it!"
Plugin
##########################################
# #
# HEADER #
# #
##########################################
main: com.Moshu.Main
name: MysticTreasures
version: 2.7
description: The world is full of treasures!
author: Moshu
website: mc.b-zone.ro
softdepend: [Vault, WorldGuard, ChunkyBorder, EssentialsX, Citizens, LuckPerms, MythicMobs, ItemsAdder, Oraxen, DecentHolograms, FancyHolograms, Nexo, ProtocolLib, MMOItems, packetevents]
api-version: "1.13"
commands:
hunt:
description: "Interact with the plugin"
permissions:
mystictreasures.hunt:
default: true
description: Use the main command
mystictreasures.admin:
default: op
mystictreasures.bypass:
default: op