Discover the Thrill of Hidden Riches with the Treasure Block Plugin

Discover the Thrill of Hidden Riches with the Treasure Block Plugin Minecraft has always been about exploration, crafting, and the joy of uncovering something unexpected. The Treasure Block plugin takes that sense of discovery to a whole new level, turning ordinary blocks into hidden caches of lo...

Download Treasure Block

Original name: Treasure Block

Loaders: Forge

FileMCLoaderSize
Treasure_Block.jarForge11 КБDownload

Discover the Thrill of Hidden Riches with the Treasure Block Plugin

Minecraft has always been about exploration, crafting, and the joy of uncovering something unexpected. The Treasure Block plugin takes that sense of discovery to a whole new level, turning ordinary blocks into hidden caches of loot that players can hunt down and claim. Whether you run a survival server, an adventure map, or a minigame world, this plugin injects a fresh layer of excitement into your gameplay. It allows server administrators to create custom treasure blocks that, when clicked, vanish and reward the finder with items, enchanted gear, or even execute commands. The possibilities for scavenger hunts, economy boosts, or story-driven events are nearly endless.

How the Treasure Block Plugin Works

The core mechanic is simple yet powerful. You designate a block as a treasure by giving it the exact name “Treasure” (using an anvil or the /treasure create command while holding the block). Once placed, that block becomes a collectible treasure. Any player who right-clicks it will collect the reward, see a configurable chat message, and watch the block disappear automatically. The plugin tracks each treasure by an internal ID, allowing you to manage dozens or even hundreds of hidden stashes across your world.

Setting Up Your First Treasure

Getting started is straightforward:

  • Hold any block in your hand and type /treasure create. This renames the item to “Treasure”.
  • Place the renamed block in a location of your choice. It is now registered as a treasure.
  • Players can right-click the block to collect the loot. The block disappears and a message (customizable in the config) appears in chat.

If you’re managing a server and want to streamline plugin installation, modern launchers like the foxygame.net launcher make the process effortless by letting you download and activate plugins directly from a built-in menu, saving time and avoiding manual file transfers.

Configuring Rewards and Randomization

The true power of Treasure Block lies in its flexible configuration. Inside the plugin’s config file, you define reward tiers under the Treasure: section. Each tier (numbered) can contain a list of items and commands. Item entries follow the format item:amount enchantment:level, and you can stack multiple rewards. For example, to give a lapis block and a diamond sword with Sharpness V:

Treasure:
  '1':
    items:
    - diamond_sword:1 sharpness:5
    - lapis_block:1

Version 3.0 introduced a major change: item IDs and enchantment IDs were replaced with names, so you must use the correct item and enchantment names (refer to the plugin’s built-in lists). A particularly fun feature is randomization. By replacing a number with a tilde (~), you can make the amount or even the item itself random. For instance, ~5 gives a random amount up to 5, and using ~ for the item ID selects a completely random item from the game. This keeps every discovery unpredictable and thrilling.

Commands and Permissions for Full Control

The plugin ships with a robust set of commands that let admins manage treasures and players interact with the hunt. All commands require appropriate permissions, giving you fine-grained control over who can create, collect, or locate treasures.

Essential Commands

  • /treasure create – Renames the held item to “Treasure” for placement.
  • /treasure list – Displays all registered treasure locations.
  • /treasure remove <id> – Deletes a specific treasure.
  • /treasure compass – Gives the player a compass that points to the nearest treasure.
  • /treasure hints add <id> <hint> – Attaches a text clue to a treasure.
  • /treasure hints show <id> – Reveals the hint for that treasure.
  • /treasure count <player> – Shows how many treasures a player has found.
  • /treasure printlist players <filename> – Exports player collection data to a YML file.
  • /treasure printlist treasures <filename> – Exports all treasure locations to a file.
  • /treasure reload – Reloads the configuration without restarting the server.

The compass is a standout feature. When a player right-clicks it, they receive the treasure’s hint (if one exists). Left-clicking recalculates the nearest treasure, making the compass an interactive navigation tool. Combined with hints, you can build elaborate treasure trails across your map.

Permission Nodes

Assign these permissions to control access:

  • treasure.create – Allows creating treasures.
  • treasure.collect – Allows collecting rewards.
  • treasure.compass – Access to the compass command and left-click functionality.
  • treasure.hints.add and treasure.hints.show – Manage hints.
  • treasure.list – View treasure locations.
  • treasure.remove – Delete treasures.
  • treasure.players.* – Includes sub-permissions for printing player stats and checking counts.
  • treasure.treasures.printlist – Export treasure location data.
  • treasure.reload – Reload config.
  • treasure.reset – Reset a player’s or all players’ collected count.

Evolution of the Plugin: Key Version Highlights

Treasure Block has matured through several updates, each adding valuable features. Version 2.0 introduced command execution as a reward (use {player} to target the finder) and the ability to change the treasure item name. Version 2.1 brought the compass and hint system, transforming the plugin from a simple collection game into a full-fledged treasure hunt. The move to item names in version 3.0 made configuration more readable and future-proof. Even earlier fixes addressed bugs with right-click detection and sponge block disappearance, ensuring a smooth experience.

Conclusion: Why Treasure Block Belongs on Your Server

The Treasure Block plugin is a lightweight yet feature-packed addition that encourages exploration and rewards curiosity. Its blend of customizable loot tables, random elements, compass navigation, and hint mechanics makes it suitable for everything from casual survival servers to complex adventure maps. With a clear command structure and granular permissions, server admins can easily integrate it without overwhelming their players. Whether you’re hiding a single legendary sword or scattering hundreds of minor caches across the landscape, Treasure Block turns your Minecraft world into a living, breathing treasure map waiting to be uncovered.