Plugin using NBT tags for giving poison and wither effects to enemy. Plugin is for Minecraft 1.18.1. You can give NBT tag to any item or weapon, and ever hit by that item/weapon will apply Wither or Poison effect.
A value of NBT tag is time of the effect duration in seconds.
To get an item with the desired effect of the potion and the desired duration of the effect, you need the command:
/give <Nickname> <minecraft:item> {<NBTtag: "<Time in seconds>">}
The example below creates a diamond sword with a poison effect for 5 seconds:
/give AlwaysProg minecraft:diamond_sword{EffectPoison:"5"}
Exists BNT tags:
Wither
- EffectWither
Wither LvL2
- EffectWither2
Poison
- EffectPoison
Poison LvL2
- EffectPoison2
Slowness LvL
- EffectSlowness
Code is here: https://github.com/Always-prog/Poison-plugin/tree/main/src/main
Plugin in .jar is here: https://github.com/Always-prog/Poison-plugin/blob/main/plugin/Poison-1.18.1.jar.jar
1. Download both plugins from
plugin
directory2. Move plugins to your plugins directory (https://www.alphr.com/spigot-how-to-add-plugins/)
3. Restart the server.