> For the complete documentation index, see [llms.txt](https://simple.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simple.superiormc.cn/ultimatetweak/tweaks/dynamic-light.md).

# 🔦Dynamic Light

## Config

{% code title="tweaks/dynamic-light.yml" %}

```yaml
enabled: true

# How often held items and the player's position are checked.
check-interval-ticks: 2

# Only players within this distance receive fake light block updates, which costs extra server performance.
# Set 0 to send each light only to its owning player.
view-distance: 0

# Every rule is checked against both the main hand and off hand.
rules:
  torches:
    light-level: 14
    match-item:
      material:
        - torch
        - soul_torch
  lanterns:
    light-level: 15
    match-item:
      material:
        - lantern
        - soul_lantern

```

{% endcode %}

Each rule contains `match-item` and `light-level`. Light levels are clamped between `0` and `15`, and both hands are checked.

For `match-item` option, should use [Match Item Format](/ultimatetweak/format/match-item-format.md) here.

## Showcase

<figure><img src="/files/PIOSeRaSwIdfi96WE4MC" alt=""><figcaption></figcaption></figure>


---

# 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://simple.superiormc.cn/ultimatetweak/tweaks/dynamic-light.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.
