> For the complete documentation index, see [llms.txt](https://shimado.gitbook.io/fungames/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shimado.gitbook.io/fungames/modes/mountain-king.md).

# Mountain King

It is a pillar that the player must climb and stay on top of for a certain amount of time. After that, he is thrown back and becomes the king of the mountain until someone else can beat his title.

### Installation <a href="#installation" id="installation"></a>

Build a pillar about 6 blocks high, although you can build as many as you like.

Place the pressure plate on top.

Stand on the top of the plate and enter the command. The name of this top can be anything. It is only needed for further convenient definition. For example, test1.

```
/mountainking create test1
```

### Commands <a href="#commands" id="commands"></a>

| Description                                                                                                                                          | Command                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| View mode commands                                                                                                                                   | /mountainking help                                                 |
| Creates a new point for king of the hill mode                                                                                                        | /mountainking create <mark style="color:purple;">\<name></mark>    |
| Deletes a point by its name                                                                                                                          | /mountainking delete <mark style="color:purple;">\<name></mark>    |
| Adds an item to your hand as a prize when you win. You need to specify the drop chance. Be sure to change the drop type in the config for this mode. | /mountainking additem <mark style="color:purple;">\<chance></mark> |

### Permissions <a href="#permissions" id="permissions"></a>

{% hint style="danger" %}
You **must** use a permission manager like [LuckPerms](https://luckperms.net/download) which supports `.*` permissions notation. Bukkit doesn't support this notation by default!
{% endhint %}

| For what                            | Permission          |
| ----------------------------------- | ------------------- |
| Gives all mode access to the player | fun.mountainking.\* |

### Main config (config.yml)

```yaml
Mountain King enable: true #If "false", this mode will not be available
Mountain King min server online: 0 #How much online must be on the server in allowed worlds for the mode to work
Mountain King action bar enable: false #Will the action bar be active?
Mountain King time for victory: 10 #In seconds.How long do you need to stand on the tower to win?
Mountain King title enable: true #Will the title be displayed when you win?
Mountain King title fade in time: 10 #In ticks
Mountain King title stay time: 40 #In ticks
Mountain King title fade out time: 10 #In ticks
Mountain King message to winner: true #Will a victory message be displayed to the player?
Mountain King message for all: true #Will a message be displayed to others when a player wins?
Mountain King disable for creative mode: false  #Will the player need to go into survival mode to participate in the game?
Mountain King fireworks: #Victory animations. You can set 1 and more animations. Or set [] to disable
  - 'SALUT_4'
```

### Mode config (mountain\_king.yml)

```yaml
Mountain King rewards:
  Drop mode: MONEY
  Money reward: 1000.0
  Items reward: [] #Set by command
  Command reward: []

Mountain King locations: {} #Set by command
Mountain King victories: [] #Set by plugin
```

You can change the type of reward. Just change it in the config above. Here are what they are:

1\) **MONEY** - Gives only money

2\) **ITEM** - Gives only one item with some chance

3\) **ALLITEMS** - Gives all items in list

4\) **COMMAND** - Executes commands. Example:

```
Command reward:
- eco give %player% 1000
- say Cool
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://shimado.gitbook.io/fungames/modes/mountain-king.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
