描述
制作毒苹果。在玩家吃蛋糕时杀死他们。在玩家食用蜘蛛之眼时治疗他们。借助 Custom Health 插件,这些以及更多功能皆可实现。
你可以决定玩家在进食时会发生什么。你可以通过添加药水效果、调整食物恢复或造成伤害的量,以及设定是否点燃玩家来奖励或惩罚他们。
你还可以禁用自动心之回复,最大化可填充的食物栏数量,并将你的服务器转变为经典的 Beta 1.8 发布前的 Minecraft 体验。这些只是你可以用来根据需求自定义服务器的部分可能性。
请注意,此插件仍处于Beta阶段。在过去的重大更新中,配置文件不得不重新进行结构调整,请留意未来版本也可能出现类似情况。如果你发现任何 Bug 或有改进建议与想法,请在下方评论区告知我。
特性
- 禁用食物栏满时的自动回复
- 最大化玩家通过进食可填充的食物栏数量
- 更改玩家拥有的生命值(心)数量(v0.7及以上版本)
- 禁用“食物栏消耗”(玩家永远不会饥饿)
- 玩家死亡并重生时,应用相同的饥饿值格数和/或经验值
- 更改食用食物的机制:
- 恢复的生命值(心)量 (可为负数)
- 补充的食物栏量 (同样可为负数)
- 增加的饱和度量 (也可为负数)
- 添加药水效果 (包括强度、持续时间和概率百分比)
- 添加其他效果 (包括爆炸、给予经验等……完整列表见此处)
- 设为特定于世界,或创建自定义物品
安装设置
将 jar 文件放入 plugins 文件夹后,将会创建目录 "plugins/CustomHealth/worlds",其中包含一个模板配置文件以供使用。如果你不对它进行任何操作,则不会干扰原版机制。
命令与权限
括号中的参数("[amount]")为可选参数,无需指定。
要使用所有权限,你可以使用 customhealth.commands.* 。
官方主命令为 /chealth,别名有 /ch 或 /customhealth。
| 命令 | 权限 | 描述 |
|---|---|---|
| /ch create [amount] | customhealth.commands.create | 在 worlds 文件夹中创建新的配置文件。命名为 "groupA.yml"、"groupB.yml" 等,直到 "groupZ.yml" |
| /ch set<#> | customhealth.commands.set | 设置手中物品的数据值。可以在游戏中创建自定义物品。 |
| /ch rename <from> <to> | customhealth.commands.rename | 重命名配置文件。末尾不需要包含 ".yml"。 |
| /ch reset | customhealth.commands.reset | 将所有内容重置为原始值。(做出此决定前会询问两次) |
| /ch reload | customhealth.commands.reload | 重载插件。 |
| /ch plugin | customhealth.commands.plugin | 获取有关插件名称、版本、作者、网站的信息,以及是否有可用更新。 |
可以在 config.yml 文件中禁用更新检查!
check-for-updates: false
配置
在此查看完整的配置文件:此处。
阅读更多关于附加效果的信息。
待办事项
已知 Bug
无已知 Bug。请保持此列表更新,并向发送工单报告你发现的任何其他 Bug!
想法
- 自助餐模式
- 权限数值化
- 在世界间分离“库存”
- 欢迎提供你的想法
支持我
面向用户
我希望这个项目拥有活跃的用户,他们会提出添加功能的建议,告诉我他们喜欢什么以及发现了哪些 Bug。
在下一次大型更新中,将添加动态权限系统,我需要有人愿意花费时间测试开发构建版。
对此感兴趣的人可以给我发一封求职信作为私信,包含以下信息:
- 名称(非必填)
- 所在国家/地区
- 您之前是否托管过 Bukkit 服务器?(无论是私人还是公共服务器,作为所有者或管理员,任何涉及插件和权限管理的经历均可)
- 我们该如何保持沟通?(电子邮件、Skype 等,我需要一种方式来向您发送开发构建版本)
感谢任何考虑提供帮助的人士。
针对开发者
我目前并未寻找其他合作开发的程序员,但 源代码 可供所有感兴趣的人免费使用。如果您发现其中存在可改进的问题,可以联系我。
代码尚未完全添加注释,但我正在着手完善。
Description
Create poisonous apples. Kill players when eating cake. Heal them when eating spider eyes. This and much more is possible with the Custom Health plugin.
You can decide, what should happen when someone eats his lunch. It's up to you to reward or punish the players by adding potion effects, change how much the food items should heal or harm him and if he should be set on fire.
You are also able to disable automatic heart regeneration, maximize the amount of food bars that can be filled up and turn your server into a classic, pre-Beta 1.8 released minecraft experience. These are just some of the possibilities you can use in order to customize your server for your own needs.
Note that this plugin is still in its Beta stage. In the past major updates, the configuration file had to be restructured again, be aware that this could happen as well in future releases. If you happen to notice any bugs or have suggestions and ideas for improvements, let me know in the comments below.
Features
- Disable regeneration when food bar is filled up
- Maximize the amount of food bars that the player can fill up through eating
- Change the amount of hearts that the player can have (v0.7 and up)
- Disable "food bar loss" (player will never be hungry)
- Apply the same amount of hunger bars and/or xp when player dies and respawn
- Change mechanics of eaten food items:
- Amount of hearts restored (can be negative)
- Amount of food bars refilled (can be negative as well)
- Amount of saturation added (could also be negative)
- Add potion effects (including strength, duration and chance percentage)
- Add other effects (including explosions, giving xp,... full list here)
- Set it world specific or create custom items
Set Up
When putting the jar file into the plugins folder, the directory "plugins/CustomHealth/worlds" will be created with a template configuration file to work with. If you don't do anything with it, nothing will interfere with the vanilla mechanics.
Commands and Permissions
Arguments in brackets ("[amount]") are optional and don't have to be specified.
To use all permissions, you can say customhealth.commands.* .
The official command at the beginning is /chealth, aliases are /ch or /customhealth.
| Command | Permission | Description |
|---|---|---|
| /ch create [amount] | customhealth.commands.create | Create new config file in the worlds folder. Calls it "groupA.yml", "groupB.yml", etc. until "groupZ.yml" |
| /ch set<#> | customhealth.commands.set | Set the data value for item in hand. Custom item can be created in-game. |
| /ch rename <from> <to> | customhealth.commands.rename | Rename configuration files. Does not have to include the ".yml" at the end. |
| /ch reset | customhealth.commands.reset | Reset everything to its original value. (asks you twice before making this decision) |
| /ch reload | customhealth.commands.reload | Reload the plugin. |
| /ch plugin | customhealth.commands.plugin | Get information about plugin name, version, author, website and if there's an update available. |
Update checking can be disabled in the config.yml file!
check-for-updates: false
Configuration
Check out the whole configuration file here.
Read more about additional effects.
To Do
Known Bugs
No known bugs. Keep this list updated and send me a ticket for any other bugs you find!
Ideas
- All-you-can-eat
- Values for permissions
- Split "inventories" between worlds
- Your ideas here
Supporting Me
For Users
I like to have active users for this project, who give me suggestions on what to add, tell me what they like and what bugs they find.
For the next large update, there will be a dynamic permission system added and I will need someone who is willing to take the time to test out the development builds.
For anyone interested in this "job" can write an application letter as a private message to me that contains the following information:
- Name (not required)
- Country
- Have you been hosting a bukkit server before? (private or public, owner or admin, anything that included plugin and permission management)
- How are we going to communicate with each other? (e-mails, skype, I need a way to send you the development builds)
Thanks to anyone considering to help.
For Developers
I'm currently not searching for another developer to program with, but the Source code is available for free to anyone interested. You can contact me, if you find some issues in there that could be improved.
It's not fully commented yet, but I'll work on it.
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
下载 Custom Health
0.7
- [ADD] /ch set <#> 允许你设置手中物品的数据值,游戏内的数值可编辑
- [ADD] 添加了爆炸效果(effect: [explosion,<size>,<chance>])
-
[新增] 可以在“死亡后”保存饥饿值和经验等级
-
[新增] 设置玩家可拥有的生命值数量(200 → 100颗心)
-
[CHG] cmd effect 可接受两个变量:@p(本地玩家名称)和 @r(随机玩家名称)
-
[FIX] override 无法移除手中最后一件物品
配置变更:
- 在您的世界配置文件中,您可以在设置里添加 "max-heart-level" 以更改玩家可拥有的生命值数量
- 在 config.yml 文件中,你可以添加两个布尔值 "save-food-level" 或 "save-xp-level",以便在玩家死亡并重生时保存并应用相同的数值。
注意:当 save-food-level 设置为 true 时,如果玩家处于死亡界面,不应重载服务器。若发生此情况,数值将会丢失,而玩家会重新获得其全部的饱和度和饥饿值等。
0.6.1
[ 链接 ]
- [修复] 为玩家添加心数的功能现按预期工作
- [修复] 玩家重生后应用 max-food-level
- [修复] 插件启动时会搜索更新,消除了服务器卡顿问题,并提示 真正 的更新
0.6
[ 链接 ]
- [新增] 新效果!(现已与药水效果分离)效果列表
- [新增] /ch rename <from> <to> 允许你重命名世界配置文件
-
[CHG] 世界配置中缺失的参数、食物项目或区块将被忽略
-
[CHG] 如果设置了可接受的值,设置项中的 max-food-level 现在始终生效
-
[CHG] 物品的数据值现在使用 "@" 表示(附魔金苹果 -> golden_apple@1)
-
[CHG] /ch plugin 将检查是否有可用更新(可在 config.yml 中禁用)
-
[CHG] /ch reset 现在会要求确认
- [REM] /ch set 暂时移除,正在研究更好的使用方式
- [REM] 移除了 /ch info 命令
- [REM] 移除了 config.yml 中的消息
- [FIX] 基本修复了背包问题(目前仅剩的问题)
- [FIX] 设置项中的 max-food-level 现在正常工作
- [FIX] 药水效果持续时间的设置现在正常工作
- [FIX] 大幅提升了稳定性和性能
0.5.1
[ 链接 ]
- [CHG] 世界现在被分组管理。使用 /ch create [数量] 创建新的配置文件。
0.5
[ 链接 ]
- [ADD] 支持多世界!可以为每个独立的世界编辑设置和数值!
- [ADD] 效果 -1 可移除玩家身上的所有效果
- [ADD] 配置文件中添加了 milk_bucket
0.4
[ 链接 ]
- [ADD] 随机值,通过最小值/最大值分隔
- [ADD] 当 change-food-level 为 false 时,可自定义最大食物值
- [ADD][BETA] 通过 /ch set 添加带有自定义数值的自定义物品
- [修复] 当 change-food-level 设置为 false 时,存在一些小问题
- [修复] /ch reload 在特定情况下引发了一些问题
0.3
[ 链接 ]
- [新增] 可自定义食物饱和度
- [新增] 食用食物时给予玩家经验值
- [更改] /ch info 命令再次显示关于该食物的信息
- [更改] /ch plugin 显示有关插件的信息
- [移除] Set 命令导致过多的格式问题,暂时删除
- [修复] 将 "change-food-level" 设置为 false 现在可以正确生效
- [修复] 普通金苹果与附魔金苹果之间的区别现已明确
- [修复] 使用 Tab 自动补全功能时检查权限
0.2.1
[ 链接 ]
- [修复] 右键点击空气时出现的空指针异常
- [修复] 设置食物值并重新加载插件现在能正确更新所有内容
0.2
[ 链接 ]
- [新增] 部分配置可在游戏内编辑
- [新增] Reset 命令 (重置所有心数和食物值)
- [新增] Info 命令 (显示有关插件的信息)
- [新增] 包含 Tab 自动补全功能
- [更改] Info 命令重命名为 get 命令
- [修复] 蛋糕食用
- [修复] 药水概率
0.1
[ 链接 ]
- 首次发布
[新增] - Addition - [更改] - Change - [移除] - Removed / Deleted - [修复] - Bug fix
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧