# Command Outcome

The command outcome executes a command string in the world.

```json
{
  "type": "lucky:command",
  "command": "/difficulty hard"
}
```

This outcome changes the difficulty to hard.

**Note: While the command outcome can be used to replicate many other outcomes, it is typically ideal to use the other outcomes over the command outcome. Reserve the use of this only for necessary situations. See below for a list of reasons to use it:**

* Modifying game rules
* Changing the difficulty
* Executing .mcfunction files


---

# 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://docs.creoii.dev/lucky-block/outcomes/command-outcome.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.
