ToolAndFoodFX
ToolAndFoodFX
Ver. 1.7ToolAndFoodFX is a plugin that lets you add potion effects to tools/weapons, projectiles, and food, and armor. When you eat food with effects applied, you will get those effects. Hitting a mob with a weapon that has an effect will give those effects to the mob. Same goes for projectiles, like arrows, snowballs, etc. Throw a projectile at a mob to give them the effects. This plugin is really great for adventure maps, mini-games, and regular PvP.
Commands
/addeffect <effect type> <level> <duration> [-wear]Run this command when you are holding an item. The effect will get applied to the item. Adding -wear makes the effect wearable.
/deleffect <effect type|all> [-wear]
This command deletes the specified effect from the item you are holding. If the parameter is "all", then all effects will get deleted. Adding -wear only makes it delete wearable effects.
Permissions
toolandfoodfx.command.addeffect.*: this permission allows users to add all effects to items.toolandfoodfx.command.addeffect.[effect name]: this permission allows users to add the specified effect to items.
toolandfoodfx.command.deleffect: this permission allows users to run the /deleffect command.
toolandfoodfx.command.*: this permissiongives users all command permissions.
toolandfoodfx.use.weapon: this permission allows users to use weapons with effects.
toolandfoodfx.use.food: this permission allows users to consume food with effects.
toolandfoodfx.use.wear: this permission allows users use wearable effects.
toolandfoodfx.use.armor: this permission allows users to use armor with effects.
toolandfoodfx.use.*: this permission allows users to use anything with effects.
toolandfoodfx.*: Gives a user all permissions for the plugin.
Source
GithubWhat items can have effects
Tools & weapons
- All types of shovels
- All types of axes
- All types of pickaxes
- All types of swords
- All types of hoes
- All Armor
- Bows
- Fishing rods
- Flint & steel
- Shears
- Sticks
Foods
- Bread
- Carrots
- Potatoes (raw, baked, and poisonous)
- Golden apples and carrots
- Pumpkin pie
- Cookies
- Melon slices
- Mushroom soup
- Raw and cooked meat (beef, pork, chicken, and fish)
- Apples
- Rotten flesh
- Spider eyes
Effect list
- SPEED
- SLOW
- FAST_DIGGING = haste
- SLOW_DIGGING = mining fatigue
- INCREASE_DAMAGE = strength
- HEAL = Ins. health
- HARM = Ins. damage
- JUMP = Jump boost
- CONFUSION = Nausea
- REGENERATION
- DAMAGE_RESISTANCE
- FIRE_RESISTANCE
- WATER_BREATHING
- INVISIBILITY
- BLINDNESS
- NIGHT_VISION
- HUNGER
- WEAKNESS
- POISON
- WITHER
- HEALTH_BOOST
- ABSORPTION
- SATURATION
-
View User Profile
-
Send Message
Posted Mar 18, 2024why dosent the ToolAndFoodFX work on other players
-
View User Profile
-
Send Message
Posted Feb 10, 2021it would be awesome for survival if you could put a sword or armor and the potion in an anvil. and make it that way instead of commands.
-
View User Profile
-
Send Message
Posted Jun 25, 2020Great Plugin Still working on 1.14.4
Thank you are a life saver
-
View User Profile
-
Send Message
Posted Sep 17, 2019Looks cool, but it needs player head support.
-
View User Profile
-
Send Message
Posted May 25, 2017this is the best plugin of its simplicity i have ever found. only with they aloud all items.
-
View User Profile
-
Send Message
Posted May 30, 2016Please add support for Lore.
Would love to be able to name and lore items with the custom effects on them :)
-
View User Profile
-
Send Message
Posted May 19, 2016Great plugin! Loving it, just had one question. Is it possible to make it so the user can just use a "give" command to get a specific item with a potion effect? If I was able to just use a "give" type command with the effect added into that command it would allow me to add potion effect items to my shop menus.
So for example, /FX give <Item ID or Name> <Amount> addeffect <effect type> <level> <duration> [-wear]
^ That would give the player the direct item with the effect added rather than having to have the item in hand to add the effect.
Does this make sense? Lol Anyway if it was possible to add this command to the plugin, that would be AWESOME! It'd instantly fix my dilemma here trying to figure out how to give the item with potion effect in my shops.
-
View User Profile
-
Send Message
Posted Apr 3, 2016Works excellently, thanks a lot!
-
View User Profile
-
Send Message
Posted Apr 1, 2016@ThaLegendCookie
version 1.8 is out now
-
View User Profile
-
Send Message
Posted Mar 31, 2016Yay :D
-
View User Profile
-
Send Message
Posted Mar 30, 2016@ThaLegendCookie
Ok, I'm working on it
-
View User Profile
-
Send Message
Posted Mar 29, 2016Also, I've been encountering a slight issue. With the new support for tipped arrows, players are able to pick them up off the ground and use them for themselves, but I'd like it so the arrows aren't retrievable to ensure only those with a bow that have an effect can use them, would it be possible to do some magic there? Perhaps maybe you could add another flag like -pickup?
-
View User Profile
-
Send Message
Posted Mar 27, 2016Works perfectly, thanks for contributing such an amazing plugin.
Are you planning to re-add support for eggs and snowballs? I don't know if it's possible without causing too many problems, but it's okay either way.
Perhaps a suggestion, but, if possible, it'd be handy if the world guard PvP flag prevented you from applying harming effects to others, cause right now it'll still apply the effect even if pvp is disabled. Unsure if possible.
-
View User Profile
-
Send Message
Posted Mar 27, 2016@ThaLegendCookie
yeah, it seems bukkit has yet to approve it
-
View User Profile
-
Send Message
Posted Mar 27, 2016Alright, thanks a lot :D
Any idea on when a new version will be up? Or does Bukkit still have to approve it?
-
View User Profile
-
Send Message
Posted Mar 27, 2016@ThaLegendCookie
I fixed the errors.
-
View User Profile
-
Send Message
Posted Mar 25, 2016@ThaLegendCookie
Also, I'm not entirely sure what effects on armor is meant to do. I had thought it would apply the effect on whoever hits you, much like thorns does, but it seems like it does nothing? Not sure if it's a bug
Edit:
Seems like the weapons have gotten this property as well, if someone hits me while I'm wielding a sword which has an effect, the effect gets applied. I guess this is supposed to be armour only, but it works on weapons, not armour. Also seems like it's only on certain occasions.
-
View User Profile
-
Send Message
Posted Mar 25, 2016[09:45:44] [Server thread/WARN]: [ToolAndFoodFX] Task #23 for ToolAndFoodFX v1.6 generated an exception java.lang.NullPointerException at com.powder.ToolAndFoodFX.ToolAndFoodFX.ApplyFX(ToolAndFoodFX.java:223) [?:?] at com.powder.ToolAndFoodFX.projectileRemover.run(ToolAndFoodFX.java:410) [?:?] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:729) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
Hope this helps.
Seems like I've been receiving another error swell:
[04:56:30] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to ToolAndFoodFX v1.6 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:89) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:570) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:479) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:602) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityLiving.damageEntity0(EntityLiving.java:1203) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityHuman.damageEntity0(EntityHuman.java:839) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityLiving.damageEntity(EntityLiving.java:817) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityHuman.damageEntity(EntityHuman.java:763) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityPlayer.damageEntity(EntityPlayer.java:512) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityMonster.B(EntityMonster.java:68) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityZombie.B(EntityZombie.java:236) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.PathfinderGoalMeleeAttack.e(SourceFile:122) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.PathfinderGoalZombieAttack.e(SourceFile:28) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.PathfinderGoalSelector.a(SourceFile:129) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityInsentient.doTick(EntityInsentient.java:635) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityLiving.n(EntityLiving.java:1910) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityInsentient.n(EntityInsentient.java:480) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityMonster.n(EntityMonster.java:24) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityZombie.n(EntityZombie.java:175) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityLiving.m(EntityLiving.java:1766) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityInsentient.m(EntityInsentient.java:243) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityMonster.m(EntityMonster.java:28) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.EntityZombie.m(EntityZombie.java:232) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.World.entityJoinedWorld(World.java:1605) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.World.g(World.java:1580) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.World.tickEntities(World.java:1420) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.WorldServer.tickEntities(WorldServer.java:628) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:792) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.jar:git-Spigot-90839e6-0ff499c] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72] Caused by: java.lang.NullPointerException
-
View User Profile
-
Send Message
Posted Mar 25, 2016@ThaLegendCookie
Could you give me the full error?
-
View User Profile
-
Send Message
Posted Mar 24, 2016Hey, I'm enjoying your plugin a lot, good work!
I'm just stuck with one minor issue, and that's the console being spammed with: 25.03 04:51:14 [Server] WARN [ToolAndFoodFX] Task #23 for ToolAndFoodFX v1.6 generated an exception 25.03 04:51:14 [Server] INFO java.lang.NullPointerException
I don't know if this is something on my end or yours, but I'd love to be able to fix it!