Special Items

Discussion in 'Plugin Development' started by Alex3543, Jun 19, 2013.

  1. Hello,

    I am quite new to bukkit and I would like to know something.
    I know how to let Eggs explode when they hit the ground.
    Now only the eggs which I get with the command /grenade should explode,
    the other ones should be normal eggs.
    Is that possible? When yes then how can I do that?
     
  2. Don't bump your topic so soon, people have real life stuff and can't be on Bukkit 24/7.

    I usually go through and reply to threads with 0 or little replies or unsolved ones. So trust me, questions will be answered ASAP. Actually, a simple google search would've shown you how to do this.


    You need to track when projectiles hit, on ProjectileHitEvent. If the projectile is an egg, then get the world the egg is in and create an explosion
     
  3. I know how to create explosions , but I only want eggs to explode which I got with the /grenade command
     
  4. Can you paste the current code and i'll see if i can help :D
     
  5. I dont have code yet.I know how to do everything except how to only let eggs explode which i got with /grenades
     
  6. *bump*
     

Share This Page