Special Items

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

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

    Alex3543

    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. Offline

    ZeusAllMighty11

    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. Offline

    Alex3543

    I know how to create explosions , but I only want eggs to explode which I got with the /grenade command
     
  4. Offline

    historio

    Can you paste the current code and i'll see if i can help :D
     
  5. Offline

    Alex3543

    I dont have code yet.I know how to do everything except how to only let eggs explode which i got with /grenades
     
  6. Offline

    Alex3543

    *bump*
     
Thread Status:
Not open for further replies.

Share This Page