Open SniperTVmc opened 1 month ago
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
SLOWNESS exists.
Please provide your item configuration.
The problem seems to be the result of the fact that in 1.19.4, the slowness effect is called SLOW
, look at the screenshot:
Source: https://helpch.at/docs/1.19.4/org/bukkit/potion/PotionEffectType.html#SLOW (*Potion effects for 1.19.4 version)
My config version (addon source: spigotmc.org):
info:
namespace: ax_food_pack
items:
beer:
display_name: Beer
resource:
material: POTION
generate: true
textures:
- ax_food_pack:beer
events:
drink:
potion_effect:
type: SLOWNESS #With 'SLOWNESS', the effect is not recognized by the server, just need to replace by 'SLOW'
amplifier: 1
duration: 3600
I will fix that in the upcoming update, thanks!
Hello! With the ItemsAdder extension, in the list of potion effects, it shows "SLOWNESS" and not "SLOW", which causes this kind of error in console. It would be great if this could be fix ;)
VSCode Screenshot:
Error in console (when trying to trigger potion effet event):