How Do You Find Radius'?

Discussion in 'Plugin Development' started by lx3krypticx, Jul 25, 2012.

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

    lx3krypticx

    Hey guy. I'm working on a plugin so if someone is near a player and they do a command they get set on fire. How would I check if someone is like 10 blocks away then set them on fire if they are.
     
  2. Offline

    Firefly

    player.getNearbyEntities(radius x, radius y, radius z)
     
  3. Offline

    lx3krypticx

    Alright so how would I set near players on fire?
     
  4. Offline

    Firefly

    Iterate through that List<Entity>, check if the currently "iterated" entity is an instance of Player, then set the fire ticks of the entity to whatever you want.
     
  5. Offline

    lx3krypticx

    How would I find who shot the Projectile?
     
  6. Offline

    Firefly

    projectile.getShooter()
     
  7. Offline

    lx3krypticx

    Anyone know how I would check if a player is on fire?
     
  8. Offline

    SnowGears

    player.getFireTicks()
     
  9. Offline

    Taco

Thread Status:
Not open for further replies.

Share This Page