Removing Damage Indicator Particles

Discussion in 'Spigot Plugin Development' started by Griffdragon, Dec 4, 2019.

Thread Status:
Not open for further replies.
  1. Hello im trying to make an RPG plugin and its been going rather well. However i have mobs in the game with 1MIL+ health and people doing that much damage sometimes. However when someone deals that much damage with a melee attack it spawns so many black heart particles the player begins to lose frames.

    Anyone have an idea how to fix this?

    What i have tried:
    1) cancelling damage instead damaging the mob from the player with LivingEntity.damage(amount, player)
    - this creates an infinite loop because it therefore activates the EntityDamageByEntity event over and over.

  2. Just make an if statement. If you damage them from code (.damage) it'd return with the reason "CUSTOM"
  3. I'm not sure what particles you're talking about. Can't you just cancel out the particles only?
  4. Instead of LivingEntity.damage(amount, player), why not use LivingEntity.setHealth(current - amount)?

    I'm sure there are ways to prevent the particles with packets, but I'm not well enough versed in packets to give an answer on that
  5. I dont think so because im assigning the damager to player!
  6. Tried that, for some reason it still shows particles
  7. How do i do that?
Thread Status:
Not open for further replies.