# FishingMissions

The FishingMissions jar handles tracking of fishing in islands. Using this jar, you can give players missions that they need to fish. The mission checks when items or fish are caught using a fishing rod, and track data accordingly.

## Required Sections

### required-caughts

List of items or fish that are required to complete the mission.

Example for usage of this section can be found below.

#### Section Type

Configuration Section

## Example

```yaml
# The mission file to use
mission-file: FishingMissions

# Whether the mission should be given when completing all requirements.
auto-reward: true

# Should block counts of players get reset when completing the mission?
reset-after-finish: true

# Rewards given when completing the mission.
rewards:
  commands:
    - 'eco give %player% 2500'
    - 'is admin msg %player% &e&lFisherman | &7Successfully finished the mission Fisherman I!'
    - 'is admin msg %player% &e&lFisherman | &7I heard you can find other items as well...'
    - 'is admin msg %player% &e&lFisherman | &7&oFor more information about the next mission, checkout /is missions'

# List of all required blocks must be gathered in order to complete the mission.
required-caughts:
  '1':
    types:
      - 'RAW_FISH'
    amount: 5

# Icons used in the menus.
icons:
  not-completed:
    type: PAPER
    name: '&aFisherman I'
    lore:
      - '&7Let''s make a fish soup.'
      - '&7Catch 5 fish.'
      - ''
      - '&6Required Caughts:'
      - '&8 - &7x5 Fish'
      - ''
      - '&6Rewards:'
      - '&8 - &7$2,500'
      - ''
      - '&6Fish Caught: &7{1}/5'
      - '&6Progress: &7{0}%'
      - '&c&l ✘ &7Not Completed'
  can-complete:
    type: PAPER
    name: '&aFisherman I'
    lore:
      - '&7Let''s make a fish soup.'
      - '&7Catch 5 fish.'
      - ''
      - '&6Required Caughts:'
      - '&8 - &7x5 Fish'
      - ''
      - '&6Rewards:'
      - '&8 - &7$2,500'
      - ''
      - '&6Fish Caught: &75/5'
      - '&6Progress: &7100%'
      - '&a&l ✔ &7Click to redeem your reward.'
    enchants:
      DURABILITY: 1
    flags:
      - HIDE_ENCHANTS
  completed:
    type: MAP
    name: '&aFisherman I'
    lore:
      - '&7Let''s make a fish soup.'
      - '&7Catch 5 fish.'
      - ''
      - '&6Rewards:'
      - '&8 - &7$2,500'
      - ''
      - '&6Fish Caught: &75/5'
      - '&6Progress: &7100%'
      - '&a&l ✔ &7Already Claimed.'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.bg-software.com/superiorskyblock/overview/missions/fishingmissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
