1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

entity event

Discussion in 'Facepalm' started by Teamblocket, Jul 13, 2017.

  1. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    is it possibile to get a block using a entity event? if so how? getBlock() via EntityInventoryChangeEvent isnt a thing
     
  2. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    Hello , anyone?
     
  3. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Which Block do you want to get?
     
  4. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    a block + 1 y away from the player itself
     
  5. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    hello.......?
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Use Event->getEntity()
    And since Entity extends Location you can use ebery function Location provides on the entity
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.