Discoveries/Categories Tutorial

In this page you will find all properties of discoveries/categories configuration files. Everytime you modify something in these files you must reload the plugin using /codex reload.

Inventory Items

The format of each item is the following:

inventory_items:
  <type>:
    <item>

1. Category

Each category will be represented by its own item in the main inventory. You can tell the players on this item the amount of discoveries the category has and information of the category.

category:
  id: MAP
  name: "&7Category: #6bcbfe&lWorld Regions"
  lore:
  - "#eeeeeeDifferent regions you've explored will"
  - "#eeeeeebe displayed here."
  - ""
  - "&7Unlocked: %unlocked% &8[%progress_bar%&8] &8(&7%percentage%&8)"

2. Discovery Unlocked

The item displayed on the category inventory when the discovery has been unlocked.

3. Discovery Blocked

The item displayed on the category inventory when the discovery has not been found.

Rewards

Rewards are given through actions. All Actions can be found HERE.

Per Discovery

Default actions to be executed when the player finds a discovery from this category.

All Discoveries

Default actions to be executed when the player finds all discoveries from this category.

Discoveries

Discoveries must be added below the discoveries section using the following format.

Name

Name of the discovery. Used to be displayed on inventories and messages.

Description

Description of the discovery. Used to be displayed on inventories and messages.

Discovered On

Determines how can this discovery be unlocked.

WorldGuard Region

The discovery is unlocked when entering a WorldGuard (https://dev.bukkit.org/projects/worldguard) region.

Set the type option to WORLDGUARD_REGION.

value.region_name: Name of the region.

Residence Region

The discovery is unlocked when entering a Residence (https://www.spigotmc.org/resources/residence-1-7-10-up-to-1-21.11480/) region.

Set the type option to RESIDENCE_REGION.

value.region_name: Name of the region.

Mob Kill

The discovery is unlocked when killing a vanilla entity.

Set the type option to MOB_KILL.

value.mob_type:Type of the mob/entity. All entity types here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html

value.mob_name: Optional. Custom name of the mob/entity. Don't use color codes.

Mythic Mob Kill

The discovery is unlocked when killing a MythicMobs (https://www.spigotmc.org/resources/5702/) mob.

Set the type option to MYTHIC_MOB_KILL.

value.mob_type:Id of the MythicMobs mob. You can use ";" to include multiple ids.

Elite Mob Kill

The discovery is unlocked when killing a EliteMobs (https://www.spigotmc.org/resources/elitemobs.40090/) mob.

Set the type option to ELITE_MOB_KILL.

value.mob_type:Id of the EliteMobs mob (name of the file without .yml). You can use ";" to include multiple ids.

Click Actions

Actions to be executed when the player clicks on the inventory item associated with this discovery, when the discovery has been found. All actions HERE. Optional.

Click Actions Cooldown

Adds a cooldown (in seconds) to execute the defined actions when clicking on the discovery item.

Custom Inventory Items

You can replace the Category Inventory Items with custom ones used only for this discovery.

Discovery Unlocked

The item displayed on the category inventory when THIS discovery has been unlocked. All variables from HERE applies.

Discovery Blocked

The item displayed on the category inventory when THIS discovery has not been found. All variables from HERE applies.

Custom Rewards

You can replace the Per Discovery Rewards with custom ones only for this discovery.

Last updated

Was this helpful?