# Torch

{% embed url="<https://youtu.be/0jqrIf9KJfU>" %}

### Description

Using a torch will temporarily give the user the `Night Vision` effect for 1 second per battery life.

Battery life is randomly generated when the torch is created.

### What does the Torch do?

The torch allows a player to see in the dark. It applies the night vision effect for pre-determined amount of time. A torch **must** have battery life to work.

### How is a Torch obtained?

A torch can only be given using the [`/undeadpandemic give`](https://docs.stevezr963.me/commands/undeadpandemic/give) command. This means that server admins can decide how many torches are in the game.

{% hint style="success" %}
Torches are craftable from v3.0.0 using custom recipes.
{% endhint %}

### Modifying the Torch

The torch can be modified in the [`config.yml` file](https://docs.stevezr963.me/configuration/legacy-config.yml). This includes the duration (in seconds) that the night vision effect is applied per Amp-hour (Ah) of battery life.

The name, lore, material, and custom model data can also be modified.


---

# 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.stevezr963.me/items/torch.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.
