Glitched Mobs After Kill

Discussion in 'Plugin Development' started by MrBakbuki, May 1, 2021 at 5:25 AM.

  1. Offline


    Hey, I'm trying to create a custom mobs plugin, and when I'm killing the mob it glitches out.
    Here's how I kill the mob:
    public static void killEntity(Entity entity){
            Creature creature = (Creature) entity;
            CraftCreature craftCreature = (CraftCreature) creature;
            EntityCreature entityCreature = craftCreature.getHandle();
    And it glitches out like that:
    The only way I can kill these glitched entities is by removing (entity.remove()) the entity, even the Vanilla /kill command doesn't work. Any help appreciated!
  2. Offline


  3. Offline


    Tried that, still glitched


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 1, 2021 at 12:26 PM
  4. Offline


    If you can use .remove() to get rid of the entity just make a delayed task that removes it after like 5 ticks or so and you will have your animation, You can also add particles to imitate the white particles made when something dies.

Share This Page