PotionCommands

是否曾想过施加一种无法通过酿造获得的药水效果?忘记了酿造配方?没问题!使用 PotionCommands,只需输入一条命令,即可向任何玩家施加几乎任意药水效果!
关于问题反馈和功能请求的重要通知
请将错误报告、功能请求等提交至以下页面:
命令:
/potion [user] <effect> [duration] [amplifier]:向玩家施加药水效果。
- <user>:选择要施加效果的目标
- <effect>:从下方列出的药水效果中选择一个
- [duration]:选择效果的持续时间(以刻为单位)。如果未指定值,将使用配置文件中的值(同样以刻为单位)
- [amplifier]:允许你调整每种效果的强度,包括正面和负面效果(例如,负面的挖掘速度加快 = 挖掘速度减慢)
/potion effects:列出所有药水效果。
- 需要 PotionCommands.effects 权限
/rpotion <effect> <user>:移除指定用户的效果。
- 目前错误检查很少,你必须提供用户参数(它尚不会自动使用命令发送者)
- 需要 PotionCommands.remove 权限——需为此添加按效果划分的权限节点
/particle <player> <hexcolor> <duration ticks (seconds / 20)>:为玩家添加粒子效果,而不施加药水效果。
- 仅限高级用户使用
- 示例 — /particle lol768 #ffff00 100(为名为 lol768 的玩家施加黄色气泡效果,持续 5 秒)
- 需要 PotionCommands.particle 权限
药水效果:
| 药水效果 | 可接受名称 | 权限节点 |
|---|---|---|
| 失明 | Blindness, blind | PotionCommands.effect.blindness |
| 困惑 | Confusion, confuse, nausea | PotionCommands.effect.confusion |
| 伤害抗性 | Dmgresist, dr | PotionCommands.effect.damageresistance |
| 急迫 | Haste, fastdig, digspeed, dig | PotionCommands.effect.haste |
| 火焰抗性 | Fireresistance, fr | PotionCommands.effect.fireresistance |
| 伤害 | Harm, harming | PotionCommands.effect.harming |
| 治疗 | Heal, healing | PotionCommands.effect.healing |
| 饥饿 | Hunger | PotionCommands.effect.hunger |
| 跳跃提升 | Jumpboost, highjump, jump | PotionCommands.effect.jumpboost |
| 中毒 | Poison | PotionCommands.effect.poison |
| 再生 | Regeneration, regen | PotionCommands.effect.regeneration |
| 迟缓 | Slowness, slow | PotionCommands.effect.slowness |
| 速度 | Swiftness, swift, speed | PotionCommands.effect.swiftness |
| 力量 | Strength, strong | PotionCommands.effect.strength |
| 水下呼吸 | Waterbreathing, breathing, wb | PotionCommands.effect.waterbreathing |
| 虚弱 | Weakness, weak | PotionCommands.effect.weakness |
其他效果:
这些是我在实验中发现的酷炫“效果”。
| 其他效果 | 可接受名称 | 权限节点 |
|---|---|---|
| 惊吓 | Freakout, scare | PotionCommands.effect.scare |
| 闪烁 | Flicker | PotionCommands.effect.flicker |
关于权限的说明:用户必须拥有 PotionCommands.use 权限才能使用任何效果。除了各单独效果的权限节点外,你还必须赋予他们 PotionCommands.use 权限。
待办事项:
- 添加最大持续时间限制以避免错误
添加按效果划分的权限已在 v1.1 中完成
其他:
- 请注意,持续时间并非绝对精确。你可能会受到游戏允许药水效果存在的最长时间的限制
- 伤害和治疗:由于输入单位为秒而非刻,目前它们分别表现为即死和完全治疗。我正在尝试修复此问题。
- 请报告你所发现的任何错误!*
特别感谢:
特别感谢 th3cleaner@mcservers 创建徽标和横幅!
源码与开发版构建
源代码可在以下位置获取:
PotionCommands

Ever wanted to apply a potion that you can’t brew? Forgot a brewing recipe? Not a problem! With PotionCommands, just type a command, and apply almost any potion effect to anyone!
Important notice regarding issues, feature requests
Please submit bugs, feature requests etc to this page:
Commands:
/potion [user] <effect> [duration] [amplifier]: Applies potion effect to player.
- <user>: Choose who to apply the effect to
- <effect>: Choose from one of the potion effects below
- [duration]: Choose how long the effect will last (in ticks). If you don’t specify a value, it will use the config file values (also in ticks)
- [amplifier]: Allows you to adjust the strength of each effect, both positive and negative (e.g. negative fastdig = slowdig)
/potion effects: Lists all potion effects.
- Requires PotionCommands.effects
/rpotion <effect> <user>: Removes effect from specified user.
- Very little error checking yet, you must supply the user (it won't yet use the command sender)
- Requires PotionCommands.remove — need to add per-effect permissions to this one
/particle <player> <hexcolor> <duration ticks (seconds / 20)>: Adds particle effects to player without adding a potion effect.
- Advanced users only
- Example — /particle lol768 #ffff00 100 (applies yellow bubbles to player lol768 for 5 seconds
- Requires PotionCommands.particle
Potion Effects:
| Potion Effect | Acceptable Names | Permission Node |
|---|---|---|
| Blindness | Blindness, blind | PotionCommands.effect.blindness |
| Confusion | Confusion, confuse, nausea | PotionCommands.effect.confusion |
| Damage Resistance | Dmgresist, dr | PotionCommands.effect.damageresistance |
| Haste | Haste, fastdig, digspeed, dig | PotionCommands.effect.haste |
| Fire Resistance | Fireresistance, fr | PotionCommands.effect.fireresistance |
| Harm | Harm, harming | PotionCommands.effect.harming |
| Heal | Heal, healing | PotionCommands.effect.healing |
| Hunger | Hunger | PotionCommands.effect.hunger |
| Jump Boost | Jumpboost, highjump, jump | PotionCommands.effect.jumpboost |
| Poison | Poison | PotionCommands.effect.poison |
| Regeneration | Regeneration, regen | PotionCommands.effect.regeneration |
| Slowness | Slowness, slow | PotionCommands.effect.slowness |
| Swiftness | Swiftness, swift, speed | PotionCommands.effect.swiftness |
| Increase Damage | Strength, strong | PotionCommands.effect.strength |
| Water Breathing | Waterbreathing, breathing, wb | PotionCommands.effect.waterbreathing |
| Weakness | Weakness, weak | PotionCommands.effect.weakness |
Other Effects:
These are cool “effects” that I found while experimenting.
| Other Effect | Acceptable Names | Permission Node |
|---|---|---|
| Scare | Freakout, scare | PotionCommands.effect.scare |
| Flicker | Flicker | PotionCommands.effect.flicker |
Note on permissions: Users MUST have PotionCommands.use to be able to use ANY of the effects. You must give them PotionCommands.use in addition to the per-effect nodes.
To Do:
- Add a maximum duration to avoid errors
Add per-effect permissionsCompleted as of v1.1
Other:
- Please note that durations aren’t perfect. You may be limited by the maximum amount of time that the game allows you to have the potion effect
- Harming and healing: These are currently instant kill and full heal, respectively, due to the input of seconds, not ticks. I am trying to fix this.
- Please report any and all bugs you may find!*
Special Thanks:
Special thanks to th3cleaner@mcservers for creating the logo and banner!
Source and dev builds
Source code is available here:
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
下载 PotionCommands
v1.4
- 修复 1.4.6 兼容性问题
v1.3.2
- 允许隐藏药水效果(/potionf、PotionCommands.potionf)
v1.3.1
- 修复权限异常问题
v1.3
- 添加 1.4 版本的效果(隐身、凋零、夜视)
v1.2.1
- 修复一些报告的不稳定问题。
v1.2
- 全新的命令格式(参见主页面)
- 自动更新器 :)
- 添加对放大器参数的支持
- 添加对不提供用户名的支持
- 新增配置选项以选择不加入自动更新
- 药水现在互相覆盖(时间等不再累加,而是直接替换)
- 新的权限格式(PotionCommands.effect.blindness.other + PotionCommands.effect.blindness.self)
- 移除旧代码
- 改进错误处理
- 支持控制台作为命令发送者(如果提供了有效的玩家)
- 清理新代码以便未来更快速地进行开发
v1.1.2.1
- 真正去测试并修复 /rpotion 命令 :)
v1.1.2
- 使用 CB 1.3.2-R1.0 重新编译
- 新作者
- 新命令(/particle [player] <hexcolour> <duration (ticks)>,PotionCommands.particle)
- 为 1.4 做准备的新配置设置
- 一些用于改进命令的新工作(目前似乎已损坏且未使用)
- 可能已经修复了 /rpotion 命令,但尚未有机会测试
v1.1.1
- 使用 CB 1.3.1-R2.0 重新编译
v1.1
- 更新至 RB 5.0
- 添加了 /potion effects 命令,列出所有效果
- 添加了按效果划分的权限节点,但用户必须拥有 PotionCommands.use。
- 清理了代码
v1.0
- 初始发布
- 所有命令现在都使用刻(ticks)(秒数 / 20)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
评论 0
登录后参与评分
还没有评论,来抢沙发吧