CookMe - 因为生食并不美味
版本 v4.0.0
功能特性
现在可以控制概率了!0.00% 表示禁用该效果!
当概率为 6.25% 时,你在食用生食(或其他食物)时有几率触发以下效果之一
- 受到随机伤害
- 中毒(类似洞穴蜘蛛的叮咬效果)
- 饥饿值中毒
- 饥饿感增加(饥饿条减少 ;))
- 混乱(传送门效果)
- 虚弱(不再像以前那样强大)
- 失明(头部周围出现黑色雾/烟)
- 挖掘速度变慢
- 移动速度变慢
- 魔法伤害(随机伤害)
- 拒绝食用生食
- 凋零毒素效果
- 运气不佳
- 浮空(向上漂浮到高空)
- 不祥之兆的感觉(如果玩家在村庄中,会触发袭击事件)
- 死亡
此外
- 权限与命令,便于轻松管理
- 控制效果的持续时间!以及冷却时间!
- 禁用原版腐肉和生鸡肉的中毒效果
- 自行控制效果强度,或者让骰子来决定
第三方功能,所有功能均可禁用
请查看下方关于 bStats 的详细信息!
配置文件
# 如需帮助,请参阅
configuration:
# 是否使用权限?
permissions: true
# 食用时是否显示消息?
messages: true
# 效果的持续时间(秒),最小值和最大值
duration:
min: 15
max: 30
# 冷却时间(秒),在下次效果发生前玩家安全的时长。
cooldown: 30
# 是否启用 /cookme debug(会修改饥饿值)
debug: false
# 如果玩家拥有 cookme.safe 权限,是否阻止来自生鸡肉和腐肉的原版中毒效果
preventVanillaPoison: false
# 效果强度是随机的还是由下方控制的(也称为放大器)
randomEffectStrength: true
# 每种效果的百分比。确保总和正好为 100%!0 表示禁用!
effects:
damage: 6.25
death: 6.25
venom: 6.25
hungervenom: 6.25
hungerdecrease: 6.25
confusion: 6.25
blindness: 6.25
weakness: 6.25
slowness: 6.25
slowness_blocks: 6.25
instant_damage: 6.25
refusing: 6.25
wither: 6.25
levitation: 6.25
unluck: 6.25
bad_omen: 6.25
# 在此处输入数字以设置效果强度,仅在 randomEffectStrength 为 false 时使用
effectStrength:
venom: 8
hungervenom: 8
confusion: 8
blindness: 8
weakness: 8
slowness: 8
slowness_blocks: 8
instant_damage: 8
wither: 8
levitation: 8
unluck: 8
bad_omen: 8
# 在这里添加自定义内容,支持物品 ID!
food:
- BEEF
- CHICKEN
- PORKCHOP
- ROTTEN_FLESH
- MUTTON
- RABBIT
- COD
- SALMON
- PUFFERFISH
命令与权限
如果配置中的 permission 值设置为 false,所有人都可以使用这些命令!
如果没有找到权限系统,所有命令仅限 OP 使用!(只要 permissions 设置为 true)
当然,控制台也可以使用这些命令!
节点:cookme.safe
描述:如果玩家拥有此权限,则不会出现任何效果
/cookme reload
节点:cookme.reload
描述:重新加载配置文件
/cookme help
节点:cookme.help
描述:显示帮助信息
/cookme set <effect> <percentage>
节点:cookme.set.<effect>
描述:设置指定效果的百分比
/cookme enable permissions
节点:cookme.enable.permissions
描述:启用权限系统!
/cookme enable messages
节点:cookme.enable.messages
描述:启用消息提示!
/cookme disable permissions
节点:cookme.disable.permissions
描述:禁用权限系统!所有玩家都可以使用命令!
/cookme disable messages
节点:cookme.disable.messages
描述:禁用消息提示!
/cookme set cooldown <value>
节点: cookme.cooldown
描述:设置冷却时间(秒)
/cookme set duration min <value>
节点: cookme.duration
描述:设置持续时间最小值(秒)
/cookme set duration max <value>
节点: cookme.duration
描述:设置持续时间最大值(秒)
/cookme debug
描述:如果启用了调试模式,会降低饱食度和所有效果以进行测试用途
当然,你也可以使用类似 `cookme.*` 或 `cookme.enable.*` 的通配符权限。
下载/源代码/开发版本
此项目的开发版本可从提供的持续集成服务器获取。这些版本未经 BukkitDev 工作人员批准。请自行承担使用风险。
(最新dev构建/边缘构建) - - 来自 Jenkins 的开发构建
(源代码托管在 Github) - - 源代码
未来计划(即待办事项)
已知问题
更新日志
版本 4.0.0
- 更新 bStats 版本
- 将 API 版本提升至 1.18
- 各种代码重构
版本 3.0.4
- 更新 bStats 版本
- 将 API 版本恢复至 1.14
完整更新日志
致谢
感谢 @nisovin 提供了出色的特效代码 :)
感谢 MatthewEnderle 改进了 bukkit-dev 网站上的 Logo!
横幅
欢迎自由使用此横幅!! :)


统计信息 (来自 bStats)
捐赠
如果你真的很喜欢我的插件,你可以通过 PayPal 自愿进行捐赠!
捐赠链条:-> 我收到一些钱 -> 买咖啡 -> 工作更久 -> 更快的更新 -> 你的收益!
页面顶部有一个按钮 :)
我也接受比特币! :)

地址: 1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C
许可证
关于 bStats 数据收集的信息
禁用 bStats
文件 ./plugins/bStats/config.yml 中包含一个 退出 选项。
以下数据会被读取并发送到 ,并可在 查看
- 您服务器的随机生成 UUID
- 您服务器上的玩家数量
- 您服务器的在线模式状态
- 您服务器的 Bukkit 版本
- 您系统的 Java 版本(例如 Java 8)
- 您的操作系统名称(例如 Windows)
- 您的操作系统版本
- 您的操作系统架构(例如 amd64)
- 您操作系统的系统核心数(例如 8)
- bStats 支持的插件
- bStats 支持插件的版本
- 已启用的食物列表
合作伙伴
CookMe - 'Cause raw food ain't good
Version v4.0.0
Features
Control now the percentages! 0.00% means disabled!
With a percentage of 6.25% one of these effect will occur when you eat raw (or other) food
- You will get some random damage
- You will get poisoned (like a Cave Spider bite)
- Your foodbar will get poisoned
- Your hunger increases (the bar decreases ;))
- You will get confused (portal effect)
- You will get weak (not as powerful as before)
- You will get blind (black fog/smoke around your head)
- You will mine slower
- You will get slower (movement)
- Magic damage (random damage)
- Refusing of raw food
- The poison of the wither occurs
- You are unlucky
- You fly up high in the air (levitation)
- You feel a bad omen (triggers a raid when the player is in a village)
- DEATH
Additionally
- Permissions & Commands for an easy administration
- Control the time of an effect! And a cooldown, too!
- Disable vanilla poison of RottenFlesh and raw chicken
- Control the strength of an effect yourself or let the dice decide
Third party features, all of them can be disabled
Please take a look at the detailed information about bStats below!
- bStats for usage statistics
Config
# For help please refer to
configuration:
# Should permissions be used?
permissions: true
# Display a message when eating?
messages: true
# The minimum and maximum duration of the effect in seconds
duration:
min: 15
max: 30
# Cooldown in seconds, how long the player is safe before the next effect happens.
cooldown: 30
# Should /cookme debug be enabled (modifies the food level)
debug: false
# Should the vanilla poison from raw chicken and rotten flesh be prevented if the player has the permission cookme.safe
preventVanillaPoison: false
# Should the effect strength be random or controlled from below (also called amplifier)
randomEffectStrength: true
# The percentage for each effect. Make sure all together are exactly 100! 0 means disabled!
effects:
damage: 6.25
death: 6.25
venom: 6.25
hungervenom: 6.25
hungerdecrease: 6.25
confusion: 6.25
blindness: 6.25
weakness: 6.25
slowness: 6.25
slowness_blocks: 6.25
instant_damage: 6.25
refusing: 6.25
wither: 6.25
levitation: 6.25
unluck: 6.25
bad_omen: 6.25
# Put a number here for the strength of an effect, only used when randomEffectStrength is false
effectStrength:
venom: 8
hungervenom: 8
confusion: 8
blindness: 8
weakness: 8
slowness: 8
slowness_blocks: 8
instant_damage: 8
wither: 8
levitation: 8
unluck: 8
bad_omen: 8
# Add your own stuff here, IDs are supported, too!
food:
- BEEF
- CHICKEN
- PORKCHOP
- ROTTEN_FLESH
- MUTTON
- RABBIT
- COD
- SALMON
- PUFFERFISH
Commands & Permissions
If the config value permission is set to false, all people can use the commands!
If no permission system is found, all commands are for OPs only! (as long as permissions is set to true)
Of course the console can use the commands, too!
Node: cookme.safe
Description: No effects will appear, if a player has got this permission
/cookme reload
Node: cookme.reload
Description: Reloads the config
/cookme help
Node: cookme.help
Description: Displays the help
/cookme set <effect> <percentage>
Node: cookme.set.<effect>
Description: Sets the percentage for the specified effect
/cookme enable permissions
Node: cookme.enable.permissions
Description: Enables the permissions!
/cookme enable messages
Node: cookme.enable.messages
Description: Enables the messages!
/cookme disable permissions
Node: cookme.disable.permissions
Description: Disables the permissions! ALL players can use the commands!
/cookme disable messages
Node: cookme.disable.messages
Description: Disables the messages!
/cookme set cooldown <value>
Node: cookme.cooldown
Description: Sets the cooldown value in seconds
/cookme set duration min <value>
Node: cookme.duration
Description: Sets the minimum duration value in seconds
/cookme set duration max <value>
Node: cookme.duration
Description: Sets the maximum duration value in seconds
/cookme debug
Description: If debug is enabled, reduces food level and all effects for testing usage
Of course you can use something like cookme.* or cookme.enable.*
Downloads/Source Code/Dev Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
(Latest dev builds/bleeding edge builds) - - Dev builds from Jenkins
(Source code hosted on Github) - - Source Code
Future Plans (a.k.a. ToDo)
Known Bugs
Changelog
Version 4.0.0
- updates bStats version
- raises API version to 1.18
- various code refactorings
Version 3.0.4
- updates bStats version
- lowers API version back to 1.14
Long changelog
Credits
@nisovin for his awesome code for effects :)
Thanks to MatthewEnderle for the improved logo on the bukkit-dev site!
Banner
Feel free to use this banner!! :)


Statistics (from bStats)
Donations
If you really like my plugin, you can if you want make a donation via PayPal!
Donation chain: -> I receive some money -> Buy coffee -> Work longer -> Faster Updates -> Your benefit!
There is a button on top of this page :)
I'm accepting bitcoins, too! :)

Address: 1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C
License
This plugin is released under the MIT license!
Information about the data usage collection bStats
Disabling bStats
The file ./plugins/bStats/config.yml contains an option to opt-out.
The following data is read and sent to and can be seen under
- Your server's randomly generated UUID
- The amount of players on your server
- The online mode of your server
- The bukkit version of your server
- The java version of your system (e.g. Java 8)
- The name of your OS (e.g. Windows)
- The version of your OS
- The architecture of your OS (e.g. amd64)
- The system cores of your OS (e.g. 8)
- bStats-supported plugins
- Plugin version of bStats-supported plugins
- List of enabled foods
Partnership
评论 0
登录后参与评分
还没有评论,来抢沙发吧