> 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/sanity-li-zhi-zhi.md).

# Sanity-理智值

## 影响玩家理智的因素

#### 衣物（穿着在身上影响）

* 花环（+1理智/10秒）
* 眼球伞（+3理智/10秒）

#### 物品（背包中有物品影响）

* 噩梦燃料（每个 -1理智/10秒）
* 花伞（每个+2理智/10秒）

#### 噩梦/理智光环

* 噩梦光环-玩家在怪物身边-1理智/2秒
* 理智光环-玩家在玩家身边+1理智/2秒
* 自定义光环-玩家在其它生物身边变化T理智/2秒

注意：这里2秒即为下面自定义内容的 "auraPeriod: 40" 刻

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

```yaml
auraPeriod: 40 
#一个周期的单位时间（刻）
monsterChangeSanity: -1 
#玩家周围有怪物时 单位时间auraPeriod 变化的理智值
playerChangeSanity: 1 
#玩家周围有别的玩家 单位时间auraPeriod 内变化的理智值
auraRangeX: 5.0 
#光环判定范围（东西）
auraRangeY: 3.0 
#光环判定范围（上下）
auraRangeZ: 5.0 
#光环判定范围（南北）

#不同怪物给玩家的光环效果（以单位时间auraPeriod为周期变化）
creatureAura:
  #格式
  #生物EntityType名: 每单位时间改变的理智值
  GHAST: -1 
  #例如这个是恶魂：-1理智每auraPeriod刻
  #可以再添加
```

{% endcode %}

#### 湿度过高

* 设玩家湿度为T，则理智变化情况：(-T/10)理智/5秒

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

```yaml
humidityPeriod: 100 
#玩家湿度影响理智多少刻计算一次(默认是5秒)
```

{% endcode %}

#### 黄昏与黑夜

* 黄昏（MC时间刻13000-16000）：-1理智/15秒
* 黑夜（MC时间刻16000-23000）：-1理智/7.5秒

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

```yaml
timePeriod: 150 
#世界时间影响理智多少刻计算一次（黑夜为该值*2）（黄昏为该值）
evening: 13000 
#黄昏开始的时间（MC世界时间刻）
night: 16000 
#黑夜开始的时间（MC世界时间刻）
day: 23000 
#白天开始的时间（MC世界时间刻）
```

{% endcode %}

#### 变质的食物

* 若食物的新鲜度F低于60，则玩家的理智值就会 **(-F/100)\*15/个**
* 若食物已经腐烂或本来就只腐肉，则玩家理智值 **-30/个**

## 玩家理智值导致的结果

#### 反胃

* 玩家理智低于角色最大理智值的60%时：
* 出现反胃效果

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

```yaml
confusionSanity: 0.6
#玩家理智低于最大理智值的百分之几，开始反胃
```

{% endcode %}

#### 晕头转向

* 玩家理智低于角色最大理智值45%时：
* 每移动一小步就有几率出现方向的偏转，移动的卡顿
* 理智越低越明显

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

```yaml
moveWronglySanity: 0.45
#玩家理智低于最大理智值的百分之几,移动有几率晕头转向
moveWronglyPercent: 0.05 
#晕头转向的几率(0-1)
```

{% endcode %}

#### 说话乱码

* 玩家理智低于角色最大理智值的30%时：
* 他在聊天栏发出的信息将会乱码

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

```yaml
chatablessSanity: 0.3 
#玩家理智低于最大理智值的百分之几，说出的话是乱码
```

{% endcode %}

#### 生物变形（需要前置插件【ProtocolLib、LibsDisguises】）

* 玩家理智低于角色最大理智值的15%时：
* 在他眼中，周围的生物会变形
* 例如其它玩家的样子变成僵尸，僵尸样子变成Steve

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

```yaml
disguiseRangeX: 10.0 
#变形范围（东西）
disguiseRangeY: 5.0 
#变形范围（上下）
disguiseRangeZ: 10.0 
#变形范围（南北）
disguiseSanity: 0.15 
#玩家理智低于最大理智值的百分之几，生物开始在玩家眼中变形
```

{% 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/sanity-li-zhi-zhi.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.
