Skip to content

Instantly share code, notes, and snippets.

Created March 2, 2014 12:21
Show Gist options
  • Save anonymous/9305785 to your computer and use it in GitHub Desktop.
Save anonymous/9305785 to your computer and use it in GitHub Desktop.
Display chat message
@SubscribeEvent
public void onItemUse(UseHoeEvent event){
double x = event.entityPlayer.posX ;
double y = event.entityPlayer.posY;
double z = event.entityPlayer.posZ;
for(int i = 0; i <= 30; i++){
event.entityPlayer.worldObj.spawnParticle("portal", x,y,z, 1D, 1D,1D);
}
event.entityPlayer.addChatMessage("Particles spawned!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment