PotionArrows
When a splash potion is placed in the inventory quickbar slot immediately to the right of a bow, an arrow striking a living entity (player, creeper, etc.) will consume the potion and transfer its effects, as well as the arrow's normal damage, to the entity.
Version 0.2 adds more permission nodes to allow for better plugin configuration. The old configuration file from previous versions is no longer used and can be deleted. There are three nodes that control how splash potion stacking works:
potionarrows.allow
Only splash potions to the immediate right of a bow will be consumed. If the slot contains a stack of splash potions the entire stack will be consumed in one shot.
potionarrows.queue
This node lets players place a stack of splash potions to the immediate right of the bow and use them one at a time. Additional potions or potion stacks of the exact same effect can be placed anywhere to the left of the bow and will be consumed one at a time from left to right.
potionarrows.queue.anytype
This allows additional splash potions/stacks of any type that are queued to the left of the bow to be used one at a time from left to right.
You only need to add one of these three permissions to a group because they automatically include the previous permission. There is one other node that is entirely separate:
potionarrows.nonsplash
This enables non-splash potions to be used and queued according to which of the previous three permissions were set. Non-splash potion effects are always applied to the Player and not the entity hit with the arrow! If this permission is not set to true, non-splash potions will be ignored.
Please be aware that all permissions default to true for OPs. If you do not want non-splash potion effects applied to OP Players, set potionarrows.nonsplash: false
Potions with no effect (water bottles, mundane potions, etc.) are always ignored.
Please note that certain mobs are affected differently by splash potions:
- Spiders and Cave Spiders are Unaffected by Poison.
- Skeletons, Zombies and Zombie Pigmen are Unaffected by Poison and Regeneration, Healed by Instant Harm and Damaged by Instant Health.
Check out a video review of the plugin by OfficialK4G
does this work with the custompotioneffects NBT tag (I think it has capital letters but I can't remember)?
Can you solve the problem?@MrMalm
[18:33:41 ERROR]: Could not pass event EntityDamageByEntityEvent to PotionArrows v0.7 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:302) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:509) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:494) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callEvent(Craf tEventFactory.java:108) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callEntityDama geEvent(CraftEventFactory.java:554) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208- ge0f2e95] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleEntityDa mageEvent(CraftEventFactory.java:467) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-20 8-ge0f2e95] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.handleLivingEn tityDamageEvent(CraftEventFactory.java:586) [spigot1.7.10.jar:git-Spigot-1.7.9-R 0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.EntityLiving.d(EntityLiving.java:1040) [ spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.EntityLiving.damageEntity(EntityLiving.j ava:684) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.EntityMonster.damageEntity(EntityMonster .java:48) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.EntityZombie.damageEntity(EntityZombie.j ava:164) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.EntityArrow.h(EntityArrow.java:243) [spi got1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.World.entityJoinedWorld(World.java:1620) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.World.playerJoinedWorld(World.java:1595) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.World.tickEntities(World.java:1460) [spi got1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.WorldServer.tickEntities(WorldServer.jav a:516) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:7 06) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2 89) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5 84) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java :490) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6 28) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] Caused by: java.lang.NullPointerException at com.tonysoft.PotionArrows.firedArrow(PotionArrows.java:59) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0 _67] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0 _67] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1 .7.0_67] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_67] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:298) [spigot1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] ... 21 more
Heya,
I'd like the option to use nonsplash arrows potions in the same way as splash potions are used. It makes more sense to dip the arrows in bottles than to attach the darn thing to it.
This may not be possible, but an option to use one bottle for multiple shots would also be nice.
@RogueCmdr
I'm not sure if it works with splashcraft as I have never used it. I'm guessing probably not. Sorry :(
@Hhrunting
Just updated it to 1.7.9
Hello, this plugin sounds like a great addition to the Mo'creatures Official server! However the Dev's will not add plugins that haven't updated recently! Please update this for 1.7.2 R0.3! =)
Make the non-splash ones apply to the mob that was hit.
Also does this plugin work with splashcraft?
Can this plugin work with other plugins use bow effects? For example fireworkarrows
@gustebeast
Sorry it took so many months, but I've updated the plugin as requested
Can you change the priority of the entity damage event? Just 2 extra lines of code.
import org.bukkit.event.EventPriority;
@EventHandler (priority = EventPriority.MONITOR, ignoreCancelled = true)
This will make the plugin compatible with worldguard by preventing players from using potion arrows in no-pvp regions.
@KR1dude
I just tested it on 1.6.2 and it works fine. Maybe you didn't set the permissions?
I will update the plugin in a few days
Please fix it :/
Doesn't work for 1.6.2 :( I really wanted to use this Plugin
http://www.youtube.com/watch?v=ugiIDP_cYic
@MrMalm
ohhhh my bad i misread it, haha
no problem at all! :)
@teozfrank
The potion break visual effect was already added to the plugin in the last update. The thing I said wouldn't be possible was to have the potion swirls trail behind the arrow as it flys through the air like Pokachu105 suggested.
Thank you for trying to help though, I appreciate the effort :)
@MrMalm
im pretty sure it is possible with bukkit effect classes, it allows the visual effect of a potion to be specified at a location, which would be where the arrow strikes/hits you could also add the sound effect if needed too :) check out org.bukkit.Effect , must try out this plugin seems interesting !
@EventHandler
public void onArrowShotByPlayer(ProjectileHitEvent e)
{
Entity arrow = e.getEntity();
if(arrow instanceof Arrow)
{
Entity shooter = ((Arrow)arrow).getShooter();
if(shooter instanceof Player)
{
Player player = (Player)shooter;
player.getWorld().playEffect(arrow.getLocation(), Effect.POTION_BREAK, 2002);
}
}
}
I'm sure this may help to add it into the plugin :)
also added a screenshot
@Pokachu105
At your request, I added the potion splash effect in the v0.5 release. That was a great idea! Thanks for suggesting it.
Adding a swirl behind the arrow isn't possible with the Bukkit API as far as I know, though that would look cool.
I would love it if it made the potion splash effect when it hit, so players know if it was a special arrow, and just so it looks cool, lol.
Maybe make it so the potion effect swirl things follow behind the arrow if possible? That would be AWESOME :D