Thanks! I will try your code. One weird thing is though, that this code runs perfectly fine..
@SubscribeEvent
public void onItemUse(UseHoeEvent event){
double x = event.entityPlayer.posX ;
double y = event.entityPlayer.posY;
double z = event.entityPlayer.posZ;
event.entityPlayer.addChatMessage(new ChatComponentText("Particle spawned"));
for(int i = 0; i <= 30; i++){
event.entityPlayer.worldObj.spawnParticle("portal", x,y,z, 1D, 1D,1D);
}
}
That's kind of odd right? Using a hoe on grass does spawn the particles.. Maybe it's send within the same packet?