Searches Tutorial
In this page you will find all properties of searches configuration files. Everytime you modify something in these files you must reload the plugin using /thesearch reload.
Permission Required
If enabled, players will need the (thesearch.search.<search>) permission to interact with this search.
permission_required: trueActions
Searches have different categories of actions: Default actions, Last actions, Already found actions, Reach amount actions and Object actions. These actions have the same properties but will be executed in different cases.
Types of Action
Default Actions
Actions that will execute when a player finds an object of this Search.
# Example of Default Actions
default_actions:
find_chat_message:
- '{centered}&7&m '
- ''
- '{centered}&aYou have discovered a &e&lHidden Treasure&a! &7(&e%current%&8/&e%total%&7)'
- ''
- '{centered}&7&m 'Last Actions
Actions that will execute when the players finds the last object of this Search.
Object Actions
Actions that will execute on individual objects.
Reach amount Actions
Actions that will execute when a player reaches certain amount of find objects on a search.
Already found Actions
Actions that will execute when a player tries to interact with an already found object of this Search.
Find Chat Message
This is the chat message to be sent to the player when finding an object from this Search.
Some Considerations:
You can use the
{centered}tag before a text to make it centered.You can use HEX color codes using
#000000Text
Find Title Message
This is the title on screen to be sent to the player when finding an object from this Search.
Find Sound
Sound to be sent to the player when finding an object from this Search.
Find Effects
Effects to be displayed ONLY to the player when finding an object from this Search. Check HERE.
Random Find Effects
Enable this option if you want to select a random find effect from the find_effects list when a player finds an object.
Find Commands
Console commands to be sent to the player when finding an object from this Search.
Display Particles
These particles will be displayed for players that haven't found an object (block or entity) yet.
Custom Particle
You can display TheSearch particles with custom forms/shapes. For this to work you need to add the custom_particle option.
Form
For now there are only 2 forms; CIRCLE and ORBIT
Circle
form: CIRCLE;<radius>
form: CIRCLE;0.5
Creates a circle of particles.
Orbit
form: ORBIT;<radius>
form: ORBIT;1
Creates a particle orbiting the object in a circular shape. The speed of the orbit is defined by the amount of particles. More particles mean lower speed.
Particle
The particle to display.
Amount
The amount of particles to display.
Sound Clue
This option allows you to play a sound to players near objects of the search to find them easier.
Action Bar Clue
This options allows you to display a message on the actionbar to players near objects of the search to find them easier.
Last updated