> For the complete documentation index, see [llms.txt](https://1294243258.gitbook.io/untiltheend-introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://1294243258.gitbook.io/untiltheend-introduction/gu-you-shu-xing/tiredness-pi-lao.md).

# Tiredness-疲劳

## 影响疲劳的因素

#### 玩家的状态

* 每两秒计算一次：（可互相抵消、可为小数）
* 疾跑疲劳+1
* 坐下疲劳-2
* 睡觉疲劳-4
* 敲打方块+0.5
* 滑翔+1.5
* 移动+0.2
* 静止-0.2

{% code title="tiredness.yml" %}

```yaml
change: 
  task: #每2秒计算一次
    sprint: 1 #疾跑疲劳+1
    sit: -2 #坐下疲劳-2
    sleep: -4 #睡觉疲劳-4
    block: 0.5 #正在敲打方块疲劳+0.5
    glide: 1.5 #正在滑翔+1.5 
    move: 0.2 #正在移动+0.2
    stop: -0.2 #停在原地较长时间-0.2
```

{% endcode %}

#### 玩家背包物品负重

* 普通物品默认无重量（见下面的default）
* 钻&#x77F3;**+0.1/个**
* 金&#x952D;**+0.2/个**
* **可以无限添加带权重的物品**

{% code title="tiredness.yml" %}

```yaml
change: 
  task: #每2秒计算一次
    item: #背包内物品重量
      #格式:
      #物品Material名: 权重
      DIAMOND: 0.1 #钻石每一个增加的疲劳
      GOLD_INGOT: 0.2 #金锭每一个增加的疲劳
      
      default: 0 #背包其它未定义物品每一个增加的疲劳值
```

{% endcode %}

#### 玩家的行为

* 传送（10格以内的瞬移不算）+1.5
* 破坏方块+0.5
* 发言+0.2
* TAB补全+1
* 攻击+0.5
* 被攻击+0.5
* 附魔+5

{% code title="tiredness.yml" %}

```yaml
change:
  event: #每次事件计算一次
    teleport: 1.5 #传送+1.5
    break: 0.5 #破坏方块+0.5
    chat: 0.2 #发言+0.2
    tab: 1 #TAB补全+1
    damage: 0.5 #伤害别的生物+0.5
    beDamaged: 0.5 #被生物伤害+0.5
    enchant: 5 #附魔+5
```

{% endcode %}

## 玩家疲劳导致的因素

#### 特殊效果

* 疲劳高于50->缓慢
* 疲劳高于50->挖掘疲劳
* 疲劳高于75->饥饿
* 疲劳高于90->凋零
* 疲劳高于50->虚弱
*
* **效果等级见下计算方式**

{% code title="tiredness.yml" %}

```yaml
influence: 
  slowness: 50 #高于多少开始有缓慢效果（效果等级为 (疲劳-该值)/15）
  slowdigging: 50 #高于多少开始有挖掘缓慢效果（效果等级为 (疲劳-该值)/15）
  hunger: 75 #高于多少开始有饥饿效果（效果等级为 (疲劳-该值)/5）
  wither: 90 #高于多少开始有凋零效果（效果等级为 (疲劳-该值)/5）
  weak: 50 #高于多少开始有虚弱效果（效果等级为 (疲劳-该值)/15）
```

{% endcode %}

#### 无法正常操作

* 疲劳高于70->不能说话
* 疲劳高于50->不能疾跑
* 疲劳高于50->不能攻击其他生物
* 疲劳高于70->不能放置方块
* 疲劳高于70->不能破坏方块
* 疲劳高于25->不能传送

{% code title="tiredness.yml" %}

```yaml
influence: 
  event:
    talk: 70 #高于该值则不能说话
    sprint: 50 #高于该值则不能疾跑
    attack: 50 #高于该值则不能攻击
    place: 70 #高于该值则不能放置物品
    break: 70 #高于该值则不能破坏
    teleport: 25 #高于该值则不能传送
```

{% endcode %}

### 疲劳值-完

赞助地址：<https://afdian.net/order/create?plan_id=7cc5be1eb8dd11e9a25e52540025c377>

QQ官方交流群：1051331429


---

# 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:

```
GET https://1294243258.gitbook.io/untiltheend-introduction/gu-you-shu-xing/tiredness-pi-lao.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.
