Описание
# Kiss Mod Unofficial Version
This mod is based on the [Kiss Mod Transplant](https://github.com/Xiaoyu-2009/kiss-mod-transplant) resources and adds new features.
In accordance with the license requirements, the original license text and author attribution are retained.
---
## New Features
### 1. Custom Message Texts
- **Kiss Message Customization**: Customize the public message format sent when performing a kiss
- **Response Message Customization**: Customize the automatic response message format for the kissed player
**Command Support:**
```
/kissmod-kissmsg # Set the kiss message format
/kissmod-responsemsg # Set the response message format
```
---
### 2. Cooldown Control
- **Configurable Cooldown**: Set the cooldown time for the kiss action (default is 10 seconds)
**Command Support:**
```
/kissmod-cooldown # Set the cooldown time
```
---
### 3. Do Not Disturb (DND) Mode
- **Do Not Disturb Mode**: Players can enable DND mode to avoid being disturbed by kisses
- If another player tries to kiss someone in DND mode, they will receive a notification message
**Command Support:**
```
/kissmod-dnd [true|false] # Enable/disable DND mode
```
---
### 4. Additional Configurable Features
- **Configuration File Location**: `config/kissmod.properties`
| Config Key | Default Value | Description |
|-----------------------|---------------|-------------|
| rightClickEnabled | true | Enable sneak-right-click to trigger kiss |
| chatMessageEnabled | false | Enable chat message functionality |
| kissMessage | `%s kissed %s and said "I love you~"` | Public message format for a kiss |
| doNotDisturb | false | Enable DND mode |
| responseMessage | `%s loves you too~` | Automatic response message format |
| kissCooldown | 10 | Cooldown time for kiss action (seconds) |
| playerOnly | true | Action only affects players |
---
## Placeholder Explanation
- `%s` (first): Represents the **kiss initiator** (the player performing the kiss)
- `%s` (second): Represents the **kiss recipient** (the entity being kissed)
---
## Configuration Requirements
- Boolean values: must be `true` or `false`
- Cooldown time: must be an integer (unit: seconds)
- Message formats: the number of `%s` placeholders must be correct
---
## Error Recovery Mechanism
- If the configuration file is corrupted or incorrectly formatted, the mod will use the **default values**
# Kiss Mod非官方版
本模组基于[Kiss Mod Transplant](https://github.com/Xiaoyu-2009/kiss-mod-transplant)资源进行制作,并增加了新的功能。
按照许可协议要求,保留原许可协议文本与作者署名。
---
## 新增功能
### 1. 自定义消息文本功能
- **亲吻消息自定义**:可自定义亲吻时发送的公共消息格式
- **回应消息自定义**:可自定义被亲吻玩家自动回应的消息格式
**命令支持:**
/kissmod-kissmsg # 设置亲吻消息格式 /kissmod-responsemsg # 设置回应消息格式
---
### 2. 冷却时间控制
- **可配置冷却时间**:可以设置亲吻操作的冷却时间(默认 10 秒)
**命令支持:**
/kissmod-cooldown # 设置冷却时间
---
### 3. 免打扰功能
- **免打扰模式**:玩家可以开启免打扰模式,避免被亲吻时的打扰
- 当其他玩家尝试亲吻开启免打扰的玩家时,会收到提示消息
**命令支持:**
/kissmod-dnd [true|false] # 开启/关闭免打扰模式
---
### 4. 更多可配置功能
- **配置文件位置**:`config/kissmod.properties`
| 配置值 | 默认值 | 说明 |
|----------------------|--------|------|
| rightClickEnabled | true | 是否启用潜行右键触发亲吻功能 |
| chatMessageEnabled | false | 是否启用聊天消息功能 |
| kissMessage | `%s对%s亲了亲并说爱你呦~` | 亲吻时发送的公共消息格式 |
| doNotDisturb | false | 是否开启免打扰模式 |
| responseMessage | `%s窝也爱你喵~` | 被亲吻者自动回应的消息格式 |
| kissCooldown | 10 | 亲吻操作的冷却时间(秒) |
| playerOnly | true | 行为仅玩家|
---
## 占位符说明
- `%s`(第一个):代表 **亲吻发起者**(执行亲吻的玩家)
- `%s`(第二个):代表 **亲吻接收者**(被亲吻的实体)
---
## 配置要求
- 布尔值:只能是 `true` 或 `false`
- 冷却时间:必须是整数(单位:秒)
- 消息格式:`%s` 占位符数量必须正确
---
## 错误修复机制
- 如果配置文件损坏或格式错误,模组会使用 **默认值**