Posted September 28, 20178 yr I just can't seem to make it show up Please help. My code: @SubscribeEvent(priority = EventPriority.HIGHEST) //Function: Displays "blood" when an entity is hit public void onHit(LivingHurtEvent e) { if (e.getEntity() instanceof EntityMob) { EntityMob mob = (EntityMob) e.getEntity(); mob.worldObj.spawnParticle(EnumParticleTypes.BLOCK_CRACK, mob.posX, mob.posY, mob.posZ, Math.random() * 0.2 - 0.1, Math.random() * 0.25, Math.random() * 0.2 - 0.1, 137); } } Thanks!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.