> For the complete documentation index, see [llms.txt](https://docs.quickclient.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quickclient.cc/extras/assets.md).

# Папка ресурсов

Текстуры, шрифты и другие файлы, которые скрипт хранит внутри jar.

Картинки, шрифты, текстовые файлы и другие данные скрипта лежат в `resources/` внутри jar. Пути указываются относительно своей папки `resources/`: `assets().text("words.txt")`, `render.drawTexture("logo.png", …)`, `fonts().register("title", "fonts/title")` ищут файлы в jar работающего скрипта. Выйти за пределы папки нельзя: `..` и абсолютные пути отбрасываются.

```
MyScript.jar
  java/my/MyScript.java
  resources/logo.png
  resources/fonts/title.png
  resources/fonts/title.json
  resources/words.txt
```

При загрузке скриптов Quick копирует `resources/` из каждого jar в пак ресурсов `scripts\resources\assets\script\`. Так игра видит текстуры, шрифты и шейдеры. Редактировать файлы там не нужно: при следующей перезагрузке их перезапишет содержимое jar.

## Assets

Прочитать свой файл проще всего через `assets()`:

```java
for (String line : assets().lines("words.txt")) chat(line);
```

| Метод          | Тип            | Описание                                               |
| -------------- | -------------- | ------------------------------------------------------ |
| `exists(path)` | `boolean`      | есть ли такой файл                                     |
| `text(path)`   | `String`       | содержимое или `null`                                  |
| `lines(path)`  | `List<String>` | строки файла; если файла нет, пустой список            |
| `bytes(path)`  | `byte[]`       | байты или `null`                                       |
| `list(path)`   | `List<String>` | имена файлов в подпапке; пустая строка означает корень |

Записывать в ресурсы нельзя. Всё, что скрипт должен сохранить, храните в [Storage](/settings/storage.md).

## Текстуры

В `drawTexture(id, …)` можно передать путь внутри `resources/` (`"logo.png"`) или полный id игры (`"minecraft:textures/gui/sprites/hud/heart/full.png"`). По умолчанию используется семплер самой текстуры. Для чётких пикселей укажите `NEAREST | CLAMP`, для сглаживания при уменьшении `LINEAR | CLAMP`.

Билборды и меши в мире получают текстуру так же: `render.billboard(mesh, "marker.png", …)`.

## Шрифты и шейдеры

Для своего шрифта нужна пара файлов `имя.png` и `имя.json` в `resources/`. Шрифт регистрируется через `fonts().register(name, "путь/без/расширения")`, подробности на странице [Оформленный текст](/ui/text.md).

Шейдеры в jar класть не нужно: `shaders().register(name, vertex, fragment)` сам запишет исходники в пак. Подробнее на странице [Шейдеры](/ui/shaders.md).

## Размеры

Один файл внутри jar может весить до 32 МБ. При этом jar целиком читается в память при каждой перезагрузке, поэтому тяжёлые ресурсы замедляют перезагрузку всех скриптов.


---

# 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://docs.quickclient.cc/extras/assets.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.
