Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Item tap ground

Comments in 'Plugin Development' started by ender_kenji, Dec 13, 2015.

  1. ender_kenji
    Offline

    ender_kenji New Member

    Joined:
    Oct 13, 2015
    Posts:
    29
    Minecraft User:
    EnderKenji
    Whts the code? Item tap on ground to run command or event.

    .-.
  2. Joe4047
    Offline

    Joe4047 New Member

    Joined:
    Jun 27, 2015
    Posts:
    25
    Minecraft User:
    OfficialJoey
    Why not use the TapToDo plugin?
  3. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    If you want code, its
    PHP:
    public function onTap(PlayerInteractEvent $event){
    //do whatever you want
    }
  4. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    I don't know how many times someone's asked this question before. It's the same thing every time, and I'm going to give the same answer every time: Take a look at TapToDo's source.
    Joe4047 and HotFireyDeath like this.
  5. Joe4047
    Offline

    Joe4047 New Member

    Joined:
    Jun 27, 2015
    Posts:
    25
    Minecraft User:
    OfficialJoey
    I
    know that -.- I was telling him to use the TapToDo Plugin. Please read the comment before replying.
  6. HotFireyDeath
    Offline

    HotFireyDeath Notable Member Plugin Developer

    Joined:
    Mar 19, 2015
    Posts:
    328
    Plugins:
    1
    Minecraft User:
    HotFireyDeath
    He likely wants a code solution, not to be told to use the plugin.
    If you are trying to tell him to look at TapToDo's source, say that in your context.
    iDirtPlayzMC and Vaivez66 like this.
  7. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    PHP:
    public function onTap(PlayerInteractEvent $ev){
    if(
    $ev->getAction() === PlayerInteractEvent::RIGHT_CLICK_BLOCK){
    //code here
        
    }
    }
    ender_kenji likes this.
  8. ender_kenji
    Offline

    ender_kenji New Member

    Joined:
    Oct 13, 2015
    Posts:
    29
    Minecraft User:
    EnderKenji
    Thanks.

Share This Page

Advertisement