⚠️ 兼容性说明: 本插件基于 Minecraft 1.21.5 Purpur 构建。我在 Purpur 1.21.5 和 Spigot 1.21.1 上进行了测试。它应该可以在 1.21.1-1.21.5 的 Spigot/Purpur/Paper/Bukkit 上正常运行。
如果你想报告错误或建议新的插件,请加入我的 Discord 服务器。
这是我从 SmpMechanics 插件中裁剪并改进的一个片段,并与 CustomDayNightTime 和 BetterSleep 形成和谐的整体。
? CozyCampfire
将营火变为治疗站:可配置的群体治疗效果、药水效果和 RPG 增益。
CozyCampfire 将普通的 Minecraft 营火转变为战略性的休息点。点燃的营火不再仅仅是用来烹饪食物,现在它们还能为附近的玩家提供温暖、治疗和其他可配置的增益效果!非常适合 RPG 服务器、生存模式大厅,或者只是让你的基地更具生机。
✨ 主要特性
- ❤️ 动态治疗: 自动为靠近点燃营火休息的玩家授予可配置的药水效果(例如:生命恢复)。
- ? 智能逻辑: 插件会尊重现有的药水效果。如果玩家已经拥有更强的放大器或更长的持续时间,它绝不会覆盖玩家的现有效果(例如,它不会破坏黄金苹果带来的无敌效果)。
- ? 智能射线检测: 包含一个可配置的
through-blocks(穿透方块)系统。你可以决定温暖是否穿透墙壁,或者是否需要直接的视线。
- ? 3D 区域控制: 完全自定义的检测范围。可以独立配置圆形
radius(半径)、height-up(向上高度)和 height-down(向下高度)。
- ? 多语言支持(按玩家): 完全支持英文和波兰语。玩家可以通过命令随时切换自己的界面语言!
- ☠️ 真实的火焰: 直接站在点燃的营火上会使玩家着火(可配置)。
- ?️ 旁观者保护: 处于旁观者模式的玩家会被系统自动忽略。
⚙️ 配置
插件可通过 config.yml 或游戏内命令进行完全配置:
- 效果: 添加多种效果(速度、生命恢复、抗性提升等),并自定义其强度和持续时间。
- 半径与高度: 定义营火周围确切的“温暖区域”。
- 射线检测: 根据你的服务器风格,开启或关闭
through-blocks。
- 燃烧: 启用或禁用踩在营火上时的火焰伤害。
? 命令与权限
主命令:/cozycampfire 或 /cp
| 命令 |
描述 |
权限 |
/cp help |
显示可用命令列表。 |
cozycampfire.help |
/cp lang [en/pl] |
切换你的个人消息语言。 |
cozycampfire.language |
/cp add <effect> <amp> <time> |
向营火添加新效果。 |
cozycampfire.add |
/cp remove <effect> |
从配置中移除效果。 |
cozycampfire.remove |
/cp radius <value> |
设置水平半径。 |
cozycampfire.radius |
/cp height-up <value> |
设置向上的检测高度。 |
cozycampfire.height |
/cp height-down <value> |
设置向下的检测高度。 |
cozycampfire.height |
/cp tb |
切换“穿透方块”(射线检测)模式。 |
cozycampfire.throughblocks |
/cp fire |
切换接触时燃烧玩家的功能。 |
cozycampfire.fire |
/cp reload |
重新加载配置和消息。 |
cozycampfire.reload |
通配符权限(完整管理员): cozycampfire.*
? 安装
- 下载
.jar 文件。
- 将其放入服务器的
/plugins/ 文件夹中(Spigot/Paper/Purpur 1.21+)。
- 重启服务器。
- 完成!默认情况下,营火现在提供生命恢复效果。
- 提示:如果你更喜欢波兰语消息,请在游戏中使用
/cp lang pl!
? 生成的文件
config.yml - 主要设置。
messages_en.yml - 英文翻译文件。
messages_pl.yml - 波兰语翻译文件。
⚠️ Compatibility Note: This plugin is built for Minecraft 1.21.5 Purpur. I tested it on Purpur 1.21.5 and Spigot 1.21.1. It should work on 1.21.1-1.21.5 Spigot/Purpur/Paper/Bukkit.
If you want to report a bug or suggest a new plugin, join my Discord server.
This is a cut-out and improved fragment of my SmpMechanics plugin and forms a harmonious whole with CustomDayNightTime and BetterSleep.
? CozyCampfire
Turn Campfires into Healing Stations: Configurable AOE Regeneration, Potion Effects, and RPG Buffs.
CozyCampfire transforms ordinary Minecraft campfires into strategic resting spots. Instead of just cooking food, lit campfires now provide warmth, healing, and other configurable buffs to nearby players! Perfect for RPG servers, Survival lobbies, or just making your base feel more alive.
✨ Key Features
- ❤️ Dynamic Healing: Automatically grants configurable potion effects (e.g., Regeneration) to players resting near a lit campfire.
- ? Smart Logic: The plugin respects existing potion effects. It will never overwrite a player's effect if they already have a stronger amplifier or longer duration (e.g., it won't ruin a God Apple effect).
- ? Smart Raytracing: Includes a configurable
through-blocks system. You decide if warmth penetrates walls or requires a direct Line-of-Sight.
- ? 3D Area Control: Fully customizable detection range. Configure the circular
radius, height-up, and height-down independently.
- ? Multi-Language (Per-Player): Full support for English and Polish. Players can switch their own interface language anytime via command!
- ☠️ Realistic Fire: Standing directly on a lit campfire sets the player on fire (configurable).
- ?️ Spectator Safety: Players in Spectator mode are automatically ignored by the system.
⚙️ Configuration
The plugin is fully configurable via config.yml or in-game commands:
- Effects: Add multiple effects (Speed, Regeneration, Resistance) with custom power and duration.
- Radius & Height: Define the exact "warmth zone" around the campfire.
- Raytracing: Toggle
through-blocks to true or false depending on your server style.
- Burning: Enable or disable fire damage when stepping on the campfire.
? Commands and Permissions
Main command: /cozycampfire or /cp
| Command |
Description |
Permission |
/cp help |
Shows the list of available commands. |
cozycampfire.help |
/cp lang [en/pl] |
Switches your personal message language. |
cozycampfire.language |
/cp add <effect> <amp> <time> |
Adds a new effect to campfires. |
cozycampfire.add |
/cp remove <effect> |
Removes an effect from the config. |
cozycampfire.remove |
/cp radius <value> |
Sets the horizontal radius. |
cozycampfire.radius |
/cp height-up <value> |
Sets the detection height upwards. |
cozycampfire.height |
/cp height-down <value> |
Sets the detection height downwards. |
cozycampfire.height |
/cp tb |
Toggles "Through Blocks" (Raytracing) mode. |
cozycampfire.throughblocks |
/cp fire |
Toggles burning players on contact. |
cozycampfire.fire |
/cp reload |
Reloads the configuration and messages. |
cozycampfire.reload |
Wildcard Permission (Full Admin): cozycampfire.*
? Installation
- Download the
.jar file.
- Place it in the
/plugins/ folder of your server (Spigot/Paper/Purpur 1.21+).
- Restart the server.
- Done! Campfires now provide regeneration by default.
- Tip: Use
/cp lang pl in-game if you prefer Polish messages!
? Generated Files
config.yml - Main settings.
messages_en.yml - English translation file.
messages_pl.yml - Polish translation file.
评论 0
登录后参与评分
还没有评论,来抢沙发吧