Special Items

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

  1. Offline

    Alex3543

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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?

    This post has been edited 1 time. It was last edited by TnT Jun 19, 2013.
  2. Online

    ZeusAllMighty11 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I know how to create explosions , but I only want eggs to explode which I got with the /grenade command
  4. Offline

    historio

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you paste the current code and i'll see if i can help :D
  5. Offline

    Alex3543

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

Share This Page