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

Solved Rotation + Throwing emeralds

Comments in 'Plugin Development' started by Kvetinac97, Jul 18, 2015.

  1. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Maybe it's
    PHP:
    $this->modifiers $damage;
    item::EMERALD => $damage;
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    No it's not the right code. Where did you see EntityDamageByEntityEvent::getTaker()?
  3. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    No just please stop posting random code.
    PEMapModder, MCPEPIG and FuryTacticz like this.
  4. FuryTacticz
    Offline

    FuryTacticz New Member

    Joined:
    Aug 31, 2015
    Posts:
    23
    Minecraft User:
    FuryTacticz
    help meh please :D
  5. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    No thanks, I'm busy right now. Please leave a message after the beep. *beep*
    Taha_The_Hacker likes this.
  6. FuryTacticz
    Offline

    FuryTacticz New Member

    Joined:
    Aug 31, 2015
    Posts:
    23
    Minecraft User:
    FuryTacticz
    [​IMG]
    PEMapModder and Taha_The_Hacker like this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It's harder than you imagined, because Item is not a subclass of Entity.

    @Taha_The_Hacker please don't post if you don't know what you're talking about. And you obviously don't realize at all that we are talking about dropped items not inventory items.
    MCPEPIG likes this.
  8. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    I made this error cause I learned from Slapper plugin:
    PHP:
    $taker $ev->getEntity();
    All other parts of the code worked with the variable $taker, so I thought method is $ev->getTaker()...
  9. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    :oops:
  10. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    However, thank you for Slapper plugin. All base things about entities I learned from Slapper
    TheKofola12 and Minecrafter9203 like this.

Share This Page

Advertisement