> For the complete documentation index, see [llms.txt](https://docs.sandbox.game/the-game-maker-academy_kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sandbox.game/the-game-maker-academy_kr/tutorials-1/beginner-tutorials/blocks-that-damage-kill-you.md).

# 데미지/킬이 가능한 블록

게임에 위험 요소를 살짝 추가하여 좀 더 다채로운 환경을 만들어 보겠습니다. 아바타 또는 다른 애셋에 데미지를 주거나 사망시킬 수 있는 블록을 추가합니다.\
이 예시에서는 데미지를 줄 수 있는 용암 (Lava) 블록을 사용해 보겠습니다.

* **L 키를 눌러** 애셋 라이브러리를 오픈합니다.
* 검색창에 '**Lava**'를 입력하여 용암 블록을 찾은 후에 툴바로 드래그합니다.

![](/files/-MP7y4FktkSliUxfALel)

* 툴바에 용암 블록을 추가합니다. 마우스 오른쪽 클릭은 블록을 제거하고 왼쪽 클릭은 블록을 놓습니다.

이제 아바타가 어떤 블록이 데미지를 줄 수 있는지, 받는 데미지는 어느 정도인지 알 수 있도록 해야 합니다.

* 화면 상단의 '**Global Parameters**' 버튼을 클릭합니다.
* '**Controller**' 탭을 클릭합니다.
* '**Components**' 탭을 클릭합니다.

![](/files/-MPiLxKeK-96pKo9J8zK)

* '**Damaging Blocks**' 메뉴에서 '**ADD+**' 버튼을 클릭합니다.
* 블록을 추가합니다. 이 예시에서는 '**Lava**'를 사용했습니다. 대소문자 구분이 있으니 주의하세요.
* '**Blocks damage**' 메뉴에 줄 수 있는 데미지 수치를 추가합니다. 여기서는 아바타가 바로 사망하는 수치인 '**200**'을 사용했습니다.

![](/files/-MPiOzmavE5gqddpaQ-w)

* '**Death Event**' 메뉴에서 드롭다운 화살표를 클릭하고 '**RespawnToTag**'를 선택하여 플레이어가 재생성되게 하거나, '**GameOver**'를 선택하여 용암에 닿았을 경우 게임이 종료되도록 할 수 있습니다.

![](/files/-MPiQIsAGtLXp9dQ1u0x)


---

# 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.sandbox.game/the-game-maker-academy_kr/tutorials-1/beginner-tutorials/blocks-that-damage-kill-you.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.
