I wanted to make an item that gives you speed boost.
First, I tried it with potions, and that didn't work. Other effects like Haste worked, but not Speed.
So i googled my problem and found some solutions.. that didn't work for me.
When I give myself the item (and go into survival mode etc... what I've specified there) the game crashes OR just nothing happens. No crash, but also no effects.
I currently use this: (events)
https://hastebin.com/okogemecor.java
With this, i can give me the item and the game freezes for a few seconds... then, nothing happens anymore.
I also tried it in the TickEvent.WorldTickEvent event, and that gave me the speed effect for just one or two ticks, then the game crashed. (Ticking world)
pls halp!111