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 permissions Completed 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:
评论 0
登录后参与评分
还没有评论,来抢沙发吧