# Quest Objectives



> Filling in '**`Any`**' as the value of the quest objective is arbitrary (the value of the objective will not be detected and progress will be directly increased, But the conditions of theobjective will still be detected)

## PlaceholderAPI (V1.0.5) <a href="#placeholderapi-bian-liang-mu-biao" id="placeholderapi-bian-liang-mu-biao"></a>

The target server will perform a match every second. If the value of the variable specified by the player is greater than or equal to the set amount, the target is completed!

Server installation plugin **`PlaceholderAPI`** required

Example (Players are required to have 10000 money)

```
goals:
  #object id
  sumbit:
    type: PLACEHOLDERAPI
    #This is a PlaceholderAPI example.
    value: '%vault_eco_balance%'
    #This is equal value
    amount: 10000
    conditions: []
```

## Trigger  (V1.0.5) <a href="#zhi-ling-chu-fa-mu-biao-trigger" id="zhi-ling-chu-fa-mu-biao-trigger"></a>

This goal can only be manually increased by instructions to increase the progress of the task target

Increase the number of progress command:`/ldq trigger [categorize] [quest] [goalID] [amount]`

{% hint style="info" %}
\#value should blank

value: ''

Exmaple

```
goals:
  #object id
  goal1:
    type: TRIGGER
    value: ""
    amount: 100
    conditions: []
```
{% endhint %}

## Entity Objectives

### KILL\_ENTITY

_**kill specific entity**_

{% hint style="info" %}
**value: Entity's type** ([https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html))

Exmaple _(kill 10 Villagers)_

```
#Task object set
goals:
  #object id
  killvillager:
    #The type of object
    type: KILL_ENTITY
    #Fill in the monster's ID here when the goal is KILL_MOB
    value: VILLAGER
    #The amount required to achieve the goal
    amount: 10
    #Additional conditions to increase the progress of this goal
    conditions: []
```
{% endhint %}

### KILL\_CUSTOM

_**kill custom name entity**_

{% hint style="info" %}
value: Entity's custom name

Example (kill 10 named '<mark style="color:red;">boss</mark>' entity)

```
#Task object set
goals:
  #object id
  killvillager:
    #The type of object
    type: KILL_CUSTOM
    #Fill in the monster's ID here when the goal is KILL_MOB
    value: &cBoss
    #The amount required to achieve the goal
    amount: 10
    #Additional conditions to increase the progress of this goal
    conditions: []
```
{% endhint %}

### BREED

breeding specific animals

{% hint style="info" %}
value: Entity's type ([https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html))

Example

```
goals:
  #object id
  sumbit1:
    type: BREED
    value: SHEEP
    amount: 16
    conditions: []
  sumbit2:
    type: BREED
    value: COW
    amount: 16
    conditions: []
```
{% endhint %}

### SHEAR

shear

{% hint style="info" %}
value: Entity's type ([https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html))

Example

```
goals:
  #object id
  sumbit1:
    type: SHEAR
    value: SHEEP
    amount: 64
    conditions: []
```
{% endhint %}

### TAME

tame specific entity

{% hint style="info" %}
value: Entity's type ([https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html))
{% endhint %}

## String Objectives

### BREAK

break specific vanilla block

{% hint style="info" %}
value: block's material name

Example _(break 10 diamond ore)_

```
#Task object set
goals:
  #object id
  diamond:
    #The type of object
    type: BREAK
    #Fill in the monster's ID here when the goal is KILL_MOB
    value: DIAMOND_ORE
    #The amount required to achieve the goal
    amount: 10
    #Additional conditions to increase the progress of this goal
    conditions: []
```
{% endhint %}

### PLACE

place specific vanilla block

{% hint style="info" %}
value: block's material name

Example

```
goals:
  #object id
  place:
    type: PLACE
    #when goal is PLACE
    #format:
    #  value: block's type
    value: STONE
    amount: 128
    conditions: []
  place2:
    type: PLACE
    value: STONE_BRICKS
    amount: 128
    conditions: []
```
{% endhint %}

### ENCHANT

Enchant a specific level of enchantment on the enchantment table

{% hint style="info" %}
value: Enchant's name ([https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html))

Example (enchant level 5 protection)

```
goals:
  #object id
  sumbit:
    type: ENCHANT
    value: PROTECTION
    amount: 5
    conditions: []
```
{% endhint %}

### BREW

Brewing specific potions

{% hint style="info" %}
value: Potion's id ([https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html))

Example

```
goals:
  #object id
  sumbit:
    type: BREW
    value: STRENGTH
    # in second
    amount: 16
    conditions: []
```
{% endhint %}

## Item Objectives

### GIVE\_ITEM

submit specific item in quest menu&#x20;

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")

Example

```
goals:
  #object id
  sumbit:
    type: GIVE_ITEM
    value: DIAMOND
    amount: 16
    conditions: []
  sumbit2:
    type: GIVE_ITEM
    #This is a custom display item example.
    #format: custom;(Item display)
    value: custom;&cSuper Golden
    amount: 16
    conditions: []
```
{% endhint %}

### CRAFT

crafting specific item

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")

Example

```
goals:
  #object id
  sumbit:
    type: CRAFT
    #This is a vanilla item example.
    value: BREAD
    amount: 64
    conditions: []
  sumbit2:
    type: CRAFT
    #This is a custom name item example.
    value: custom;&cBig diamond
    amount: 32
    conditions: []
```
{% endhint %}

### HARVEST

harvest crops

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")

Example

```
goals:
  #object id
  sumbit1:
    type: HARVEST
    value: WHEAT
    amount: 32
    conditions: []
  sumbit2:
    type: HARVEST
    value: CARROT
    amount: 32
    conditions: []
  sumbit3:
    type: HARVEST
    value: POTATO
    amount: 32
    conditions: []
```
{% endhint %}

### FISH

fish specific item

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")

Example

```
goals:
  #object id
  place:
    type: FISH
    #when goal is PLACE
    #format:
    #  value: item's type
    value: COD
    amount: 32
    conditions: []
```
{% endhint %}

### COOK

cook specific items in the furnace or Blast furnace

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")

Example

```
goals:
  #object id
  sumbit1:
    type: COOK
    value: IRON_INGOT
    amount: 64
    conditions: []
  sumbit2:
    type: COOK
    value: COPPER_INGOT
    amount: 48
    conditions: []
  sumbit3:
    type: COOK
    value: GOLD_INGOT
    amount: 32
    conditions: []
```
{% endhint %}

### CONSUME

consume specific items

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")
{% endhint %}

### ITEM\_BROKEN

Damage to specific items

{% hint style="info" %}
value: [item-objectives-write](objective-value-type/item-objectives-write "mention")
{% endhint %}



## No Value Objectives

### MILKING (V1.0.5)

milking objective

{% hint style="info" %}
value: ''

**(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  trade:
    type: MILKING
    #when goal is TRADE
    #the 'value' can be null
    value: ''
    amount: 32
    conditions: []
```
{% endhint %}

### TRADE

Trading with villagers

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  trade:
    type: TRADE
    #when goal is TRADE
    #the 'value' can be null
    value: ''
    amount: 32
    conditions: []
```
{% endhint %}

### MOVE

Move a specified distance

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  run:
    type: MOVE
    value: ""
    amount: 1000.0
    conditions: []
```
{% endhint %}

### GAIN\_EXP

gain exp

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  run:
    type: GAIN_EXP
    value: ""
    amount: 100.0
    conditions: []
```
{% endhint %}

### GAIN\_LEVEL

gain level

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  run:
    type: GAIN_LEVEL
    value: ""
    amount: 10.0
    conditions: []
```
{% endhint %}

### GAIN\_FOOD

gain food level

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  run:
    type: GAIN_FOOD
    value: ""
    amount: 10.0
    conditions: []
```
{% endhint %}

### TAKE\_FOOD

take food level

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  run:
    type: TAKE_FOOD
    value: ""
    amount: 10.0
    conditions: []
```
{% endhint %}

### DEATH

specific number of player deaths

{% hint style="info" %}
value: '' **(Can be empty because this task does not require a value)**

Example

```
goals:
  #object id
  run:
    type: DEATH
    value: ""
    amount: 10.0
    conditions: []
```
{% endhint %}

### ATTACK\_DAMAGE&#x20;

Causing damage to entities

### PROJECTILE\_DAMAGE

Causing projectile damage to entities

### DAMAGED

Received damage

### BLOCKING

Using a shield to block damage

### BLOCKING\_PROJECTILE

Using a shield to block projectile damage

### CHAT

chat

### DELAY

Delay by specified seconds

{% hint style="info" %}
Example (This goal will be completed after 3600s behind accepted)

```
goals:
  #object id
  sumbit:
    type: DELAY
    value: ""
    # in second
    amount: 3600
    conditions: []
```
{% endhint %}

