Skip to content

Treasure Hunt Tutorial

Narimm edited this page Jul 6, 2018 · 2 revisions

Treasure Hunt Tutorial

Welcome to the Treasure Hunt tutorial. Treasure hunt is a very different game type from the rest of Minigames. Instead of joining this game, it is run globally, and a player can find the treasure at any time (while its running of course). Treasure Hunt is very easy to set up and requires very few steps, this tutorial will help you with the setup.

Step 1: Setting up

To begin setting up a Treasure Hunt game, you are required to create the game. To do this, execute the following command:

/minigame create

Of course, can be whatever you want to call your game. Keep in mind this name will appear in the chat when global hints occur, for example, The treasure lies to the east of . We will get into the location name later. The location at where you are standing will be the centre of the spawning area for the treasure hunt, so make sure you choose this area carefully.

If you want to move the centre point, simply set a new start point using the Minigame Tool (making sure you delete the original one first), or execute the following command:

/minigame set <TreasureHuntName> start 1

This will set the centre point at where you are standing.

Step 2: Setting the game type

For the game to be a treasure hunt, you need to set its type. To do this, do one of the following:

Execute this command: /minigame set <TreasureHuntName> type treasure_hunt

OR

Open the Minigame Menu via /minigame edit <TreasureHuntName>'' and change the Minigame Type to ''Treasure Hunt.

If you're using the menu, the next steps will be a lot easier to follow, as its all visual.

Step 3: Setting the Location

You will need a descriptive area for where the treasure hunt is, this is for players to know where exactly they should begin their search. The most obvious one is spawn, as most players should know where this is. But it is entirely up to you where you want your location to be. To set the location (this is the name of the location, not the actual point), either enter the following command:

/minigame set <TreasureHuntName> location <Enter the location here>

OR

In the Minigame menu, open the Treasure Hunt menu and left click on the Location option. You can then enter the location into chat.

Step 4: Setting some values

The rest of the options are up to you, my original Treasure hunt used these values, but you may change them if you wish. Other options include Max radius, Max height, Min Items and Max Items.

Max Radius

The Maximum radius is the furthest distance the Treasure Chest can spawn from the centre point. By default this is set to 1000, but can be as far or as close as you wish. To change this either modify the value in the Minigames menu under the treasure hunt page (see Menu System for details on changing integers) or execute the following command:

/minigame set <TreasureHuntName> maxradius <number of blocks>

Max Height

The Max height is the highest point at which the chest can choose its random spawn position from. This may be a bit confusing but this is the easiest way to understand. A treasure chest will pick a random number between the height of the centre points location and the max height. For example, if the Y position of the centre point is 64 and the max height is 20, the treasure will pick a random point between 64 and 84.

Now once its selected a random point, it will then try and find a safe spot to put the treasure chest. If the point its selected is floating in the air, it will move down (even if its below the centre points Y position) until it finds a block to rest on. If it picks a point within a block, it will move upward (even if its above the max height) until it finds an air block to safely place the chest.

To modify the max height simply modify the value in the Minigame Menu under treasure hunt where it says Max Height, or execute the following command:

/minigame set <TreasureHuntName> maxheight <number of blocks>

Min and Max Items

The minimum and maximum items the treasure chest will have in its inventory depends on these values. By default its between 0 items (because I am evil!) and 8 items. But both can be modified. To change these values, either modify them in the Minigame menu under the Treasure Hunt settings page, or execute the following commands:

/minigame set <TreasureHuntName> mintreasure <amount of items>

AND

/minigame set <TreasureHuntName> maxtreasure <amount of items>

Step 5: Adding the Items

Now for the main part of Treasure Hunt, the treasure items. As of 1.6, the items are set up via the Rewards system, therefore rarity can be used on each individual item. (For more information on setting up rewards, see Rewards). The treasure hunt will pick the items at random depending on its rarity. So if an item is common, it could appear multiple times, depending on how many items the treasure hunt can have.

Step 6: Starting the game

Depending on what settings you have set in the main config (plugins/Minigames/config.yml), the amount of time that the treasure hunt stays around could be long or short. By default its an hour. To begin the game, simply execute the following command:

/minigame start <TreasureHuntName>

While the treasure hunt is running, it will throw out global hints every 1/4 of the time thats set (every 15 minutes if default time). These are sometimes helpful, but also sometimes not. Players can also use /minigame hint to get a personal hint on the whereabouts of the treasure, along with how much time is left and the global hints that have currently been given. Players can only use this command once every 5 minutes.

If you want to stop the game from running, simply execute /minigame stop and the treasure will be removed from the world.

Conclusion

That is all there is to setting up a Treasure Hunt game. It can be simple, but a bit complicated to get started. Good luck!