DarkSoulsCampFire
一个风格类似《黑暗之魂》的 Paper 1.21 插件:篝火充当检查点。玩家坐在篝火旁等待一段设定时间后,其重生点将被设置为该篝火(即使玩家拥有床)。
依赖项
- Paper 1.21+
- GSit — 允许在篝火方块上坐下
使用方法
- 靠近篝火(配置中指定的
CAMPFIRE 或 SOUL_CAMPFIRE)。
- 主手必须为空,玩家必须站在地面上(脚下是固体方块)。
- 右键点击篝火——玩家会坐下(通过 GSit 实现)。
- 保持坐姿且不受伤害,持续配置的时间(默认 10 秒)。操作栏中会显示计时器。
- 时间结束后——篝火被“点燃”;玩家死亡时将在该篝火处重生。
如果玩家在计时结束前起身、离开、死亡或受到伤害,则篝火不会被设为检查点。
命令
| 命令 |
描述 |
权限 |
/campfires reload |
重新加载配置文件和语言文件 |
darksoulscampfire.reload(默认:OP) |
配置文件
- language — 语言:
en 或 ru
- time — 在篝火旁坐下的所需秒数
- blocks — 篝火方块类型列表(
CAMPFIRE, SOUL_CAMPFIRE)
- title.enabled — 篝火被点燃时显示标题
- sound.enabled, sound.type, sound.pitch, sound.volume — 篝火被点燃时的音效(在篝火位置播放)
数据
- 篝火检查点存储在
plugins/DarkSoulsCampFire/data.json 中。
- 每位玩家对应一条记录(记录其最近一次点燃的篝火)。
- 如果篝火方块被破坏或炸毁——所有与该方块相关的记录都会被移除。
语言支持
语言设置在 config.yml 中。首次运行时,文件 lang/en.yml 和 lang/ru.yml 会被复制到插件文件夹中。字符串内容包括:命令提示、标题、死亡消息(“没能成功坐在篝火旁”)以及操作栏计时器的后缀。
其他特性
- 未点燃的篝火在成功“激活”后会自动变为可点燃状态(Lightable)。
- 当篝火方块被破坏或被爆炸摧毁时,相关记录会被移除并保存。
DarkSoulsCampFire
A Paper 1.21 plugin in the style of Dark Souls: the campfire acts as a checkpoint. The player sits at the campfire and waits for a set time — after that, their respawn point is set at that campfire (even if they have a bed).
Dependencies
- Paper 1.21+
- GSit — sitting on blocks at the campfire
How to use
- Approach a campfire (CAMPFIRE or SOUL_CAMPFIRE from config).
- Main hand must be empty, player must be standing on the ground (solid block under their feet).
- Right-click the campfire — the player sits (via GSit).
- Stay seated and take no damage for the configured time (default 10 seconds). A timer is shown in the ActionBar.
- When the time is up — the campfire is “lit”; on death the player will respawn at that campfire.
If the player stands up, leaves, dies, or takes damage before the timer ends — the campfire is not set.
Commands
| Command |
Description |
Permission |
/campfires reload |
Reload config and language files |
darksoulscampfire.reload (default: OP) |
Config
- language — language:
en or ru
- time — seconds to sit at the campfire
- blocks — list of campfire block types (CAMPFIRE, SOUL_CAMPFIRE)
- title.enabled — show title when campfire is lit
- sound.enabled, sound.type, sound.pitch, sound.volume — sound when campfire is lit (played at campfire location)
Data
- Campfire checkpoints are stored in
plugins/DarkSoulsCampFire/data.json.
- Each player has one entry (their last lit campfire).
- If a campfire block is broken or blown up — all records tied to that block are removed.
Languages
Language is set in config.yml. Files lang/en.yml and lang/ru.yml are copied into the plugin folder on first run. Strings include: commands, titles, death message (“didn’t manage to sit at the campfire”), and ActionBar timer suffix.
Extra
- An unlit campfire is automatically lit (Lightable) when successfully “activated”.
- When a campfire block is broken or destroyed by explosion, related records are removed and saved.
评论 0
登录后参与评分
还没有评论,来抢沙发吧