Описание
# VillagerPhrases
Adds personality to villagers and Iron Golems with contextual chat phrases — interact, proximity, nighttime, rain, hit & death responses. Multi-Language.
---
---
### 🌐 Multi-Language
| Language | Main | Variants |
|------------------------------|---------|----------------------------------|
| English | `en_us` | — |
| Español | `es_es` | `es_ar`, `es_mx`, `es_cl`, `...` |
| Portuguese | `pt_br` | `pt_pt` |
| Français | `fr_fr` | `fr_ca`, `fr_ch`, `fr_be` |
| Deutsch | `de_de` | `de_at`, `de_ch` |
| Русский | `ru_ru` | — |
| Italiano | `it_it` | — |
| हिन्दी (Hindi) | `hi_in` | — |
| Bahasa Indonesia (Indonesia) | `id_id` | — |
| Bahasa Melayu (Malaysia) | `ms_my` | — |
| Polski | `pl_pl` | — |
| Nederlands | `nl_nl` | — |
| Türkçe | `tr_tr` | — |
| Tiếng Việt | `vi_vn` | — |
| 简体中文 | `zh_cn` | — |
| 繁體中文 | `zh_tw` | `zh_hk` |
| 日本語 | `ja_jp` | — |
| 한국어 | `ko_kr` | — |
| Українська | `uk_ua` | — |
| Svenska | `sv_se` | — |
| Čeština | `cs_cz` | — |
| Magyar | `hu_hu` | — |
| Suomi | `fi_fi` | — |
| Dansk | `da_dk` | — |
| Norsk bokmål (Norge) | `no_no` | — |
| Română | `ro_ro` | — |
| български | `bg_bg` | — |
| ไทย | `th_th` | — |
| Ελληνικά | `el_gr` | — |
| Slovenčina | `sk_sk` | — |
| Hrvatski | `hr_hr` | — |
| Српски | `sr_sp` | `sr_cs` |
| Lietuvių | `lt_lt` | — |
| Latviešu | `lv_lv` | — |
| Eesti | `et_ee` | — |
---
## ⚡ Features
### 🗣️ Contextual Phrases
Villagers respond in different situations:
| Situation | Trigger | Toggle |
|-------------|-----------------|-------------------------|
| Interact | Right-click | enableNormalPhrases |
| Proximity | Stand near | enableNormalPhrases |
| Night | Proximity | enableNightPhrases |
| Rain | Proximity | enableRainPhrases |
| Hit | Attack villager | enableHitPhrases |
| Death | Kill villager | enableDeathPhrases |
Iron Golems guarding a village also have their own phrases:
| Situation | Trigger | Toggle |
|-------------|-------------------|-------------------------|
| Proximity | Stand near | enableIronGolemPhrases |
| Hit | Attack Iron Golem | enableIronGolemPhrases |
| Death | Kill Iron Golem | enableIronGolemPhrases |
### 🔗 Compatibility
* **VillagerNames**: fully compatible — custom names appear as the message prefix automatically
---
## ⚙️ Configuration
The easiest way to configure VillagerPhrases is in-game: open **Mod Menu** (Fabric) or the **Config** button in the mods list (NeoForge) to toggle phrase categories and adjust cooldowns without touching any files.
If you prefer editing manually, or don't have Mod Menu installed:
```text
config/villagerphrases.json
```
Available options:
```json
{
"enableNormalPhrases": true,
"enableHumorPhrases": true,
"enableNightPhrases": true,
"enableRainPhrases": true,
"enableHitPhrases": true,
"enableDeathPhrases": true,
"globalMessageCooldownTicks": 160
}
```
Each toggle independently controls its corresponding phrase category.
`globalMessageCooldownTicks` sets the minimum gap between messages (20 ticks = 1 second, so 160 = 8s by default; 0 disables the cooldown). Death phrases always fire regardless of the cooldown.
Iron Golem phrases have their own switch and cooldown:
```json
{
"enableIronGolemPhrases": true,
"ironGolemMessageCooldownTicks": 160
}
```
`ironGolemMessageCooldownTicks` is independent of the villager cooldown, and Iron Golem death phrases always fire regardless of it.
---
## 📦 Requirements
### Fabric
* Fabric API
* Mod Menu (optional)
* (+26.X) Java 25 or newer
### NeoForge
* (+26.X) Java 25 or newer
---
## 💬 Suggestions & Issues
If you have an idea, a suggestion, or found a bug, feel free to leave a comment on the CurseForge page or open an issue on the GitHub repository.
---
## ❓ FAQ
**Can I use this mod in a public modpack?**
Yes! You're free to include it in any public or private modpack, no permission needed.
---
## 📜 License
This project is licensed under the MIT License.