Thank you for your response, but im fairly new in Minecraft modding and I dont have a ton for resources, if you could send me the vanilla example as you said so I dont have to ask more it would be very useful!
I am trying to spawn a vanilla entity on the players position when a custom event triggers, but my world variable dosnt have the spawnEntityInWorld(), I dont know what I am doing wrong.