PotionCommands
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:
https://github.com/np98765/PotionCommands/issues
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: https://github.com/np98765/PotionCommands/
1.5.1?
Maybe in the future have it applicable in Node form, so a whole group would be affected
@G_CODE649B It is listed above.
/rpotion <effect> <user>: Removes effect from specified user.
Is there a way to remove all potion effect from a player?
@ZzSniperzZzzZ
For unlimited potions in the duration part just use a stupidly high number like 300000000 i'm pretty sure that will have the same effect.
Is the command "/potionf swiftness 8000 10" meant to give you a potion with that effect? Because at the moment if I type that command I don't get an error message or a potion, it just does nothing.
However when I do just "/potionf" I get a blank water bottle.
Also can you add a global permissions so somebody can use all the potion effects? Like Potioncommands.effect.all
Cheers.
Can you put the effects on for unlimited time? If so, how?
If im using battlekits, and I want to add blindness to the player that chooses that kit. How would I go about doing this?? Like what would I type in to make it so that this kit would have the same effects every time?
Make a code the removed ALL potions from a certain player, so it can be used in command blocks
Make a plugin or update this one to be the Potions from Harry Potter "Polly Juice Potion"
Please it would be amazing for my server :)
Awesome plugin! Maybe add a command to remove the effect?
@deleted_8579151
Please use the latest dev build:
http://199.241.30.86/builds/index.php?id=2
I cant rpotion the nightvision and the invisibility so how can i do this ?
@Byamarro
Try fastdig with a negative amplifier while I look into it.
@thudog77
Try invisibility or invisible. I did add them.
@S1lverK3y
Particle effects are not really 'my code' so there's not a lot I can do about it.
@Byamarro
Looking into it, pretty sure it's possible.
@Byamarro I think you want the particle-type that appears by BeaconBeams right? :D I think they're very semi-transparent!
@lol768 Could you fix the stability of particles and potion effects? My Server crashed multiple times caused by applying particles and also happened after applying potion effects. :/
Is it possible to do transparent particles? I just want to turn off particles. Or to just make them less?
When You drink potion of invisibility there are particles but not many.
What about Slow Digging?
What would be invisibility?
@Byamarro
Just use a big number: 2147483647 will last for 3 years. It's unlikely you'll need anything bigger than that. When you use big numbers, the potions display as infinite (00:00) in the inventory, so it doesn't make that much of a difference.
Is it possible to make potion effect infinity?