Help deleting experienceorb

Discussion in 'Plugin Development' started by oBigCreepz, Jan 26, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    oBigCreepz

    Can anyone help me delete the entity experienceorb? My code atm is.
    Code:
        if (ent.getType() == EntityType.EXPERIENCE_ORB) {
            ent.remove();
            }
     
  2. Offline

    RealDope

    That should work assuming you have it properly setup, can we see more of your code?
     
  3. Offline

    oBigCreepz

    That's all I have, I just started creating plugins, I found that used for something else.
     
  4. Offline

    Haribo98

    You shouldn't use "==" you should use ".equals(EntityType.EXPERIENCE_ORB)"
     
  5. Offline

    RealDope

    It shouldn't matter.
     
  6. Offline

    Bench3

    When are you trying to delete the orb?
     
  7. Offline

    oBigCreepz

    I am trying to delete it completely 24/7
     
  8. Offline

    Bench3

    But where are you getting the orb from? What is it's spawn cause?
     
  9. Offline

    RealDope

    Well there is no event for entity spawns, only LivingEntities, so I think you'll have to setup some listeners for mobs dying, players dying, blocks breaking, and things being taken out of a furnace and then cancel the exp or something.
     
Thread Status:
Not open for further replies.

Share This Page