TreasureHunt icon

TreasureHunt -----

Add some treasure's on your server!



Region rules and item tables!
What's new?
- Selectable WorldGuard regions to spawn chests
- Item tables based on max amount per chest and chance
- New command to test item generation /hunttestpop
How to use new features?
1. Selectable regions of WG:
There are 2 new possible sections on every world
[​IMG]

Yep, it is RegionRule and RegionNames
So, let's see what RegionRules we have:
STRICT - chest can spawn ONLY in listed regions(listed in RegionNames)
EXCLUDE - excludes listed regions from spawning of chest in them(but also chest can spawn in other regions, wich are not listed)
EXCLUDE_ALL - excludes ALL regions from spawning in them(by default if you are not using new sections)
INCLUDE - includes listed regions into possible spawning area of chest
INCLUDE_ALL - includes ALL regions into possible spawning area of chest(i.e. ignores regions at all)

2. Item tables:
Once you install new version, you should see new folder:
[​IMG]
In that folder are located ItemTables. Have you been visited by a thought that it will be good to configure chance of every item in chest and max amount of certain item per chest? So with that tables you can do it!
How it looks?

Code (YAML):
GOLD_INGOT:
  Value
: 20
  MaxAmount
: 15
  Chance
: 20
IRON_INGOT
:
  Value
: 10
  Chance
: 20
COOKED_BEEF
:
  Value
: 10
OBSIDIAN
:
  Value
: 25
BOOK
:
  Value
: 20
GUNPOWDER
:
  Value
: 10
GLASS
:
  Value
: 5
GLOWSTONE
:
  Value
: 10
SMOOTH_QUARTZ
:
  Value
: 10
MELON
:
  Value
: 25
EMERALD
:
  Value
: 125
  Chance
: 20
LAPIS_LAZULI
:
  Value
: 4
  Chance
: 20
DIAMOND
:
  Value
: 100
  MaxAmount
: 20
  Chance
: 5
WHITE_WOOL
:
  Value
: 5
SLIME_BALL
:
  Value
: 8
PUMPKIN_PIE
:
  Value
: 9
EXPERIENCE_BOTTLE
:
  Value
: 15
  Chance
: 20
BRICKS
:
  Value
: 4
Common_PickAxe
:
  Value
: 120
  MaxAmount
: 1
Common_Axe
:
  Value
: 100
  MaxAmount
: 1

I think it fully understandable. If you have some questions, you may ask in thread.

How to add it to chest? Simple
[​IMG]

Does it support MythicMobs and enchanted items from TreasureHunt? Yes, format is the same as old.
Does old format works? Yes, it fully works
Should i now configure chests to new format of items? As you want, old format works as before.
How works Variety and OOLimit with item tables? It works the same as with old format. (OOLimit will impact on total various items with MaxAmount: 1 in item tables)
What if i add item table in chest and the old format is present in it? Item table will override old format, and plugin will use items ONLY from item table and will ignore old format.

3. New command /hunttestpop:
To test item generation of any chest right in the game type:
/hunttestpop [name_of_treasure]
EXAMPLE:
/hunttestpop rare

upload_2019-10-12_22-50-52.png


ENJOY!
----------, Oct 12, 2019
Resource Information
Author:
----------
Total Downloads: 3,652
First Release: Feb 22, 2019
Last Update: Apr 1, 2022
Category: ---------------
All-Time Rating:
15 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings