Cannot get the enderman's block

Discussion in 'Plugin Development' started by JoshuaBehrens, Oct 3, 2011.

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

    JoshuaBehrens

    Hey guys,

    I'm trying to access the block the enderman has in its hands. But getCarriedMaterial is always null. Using the latest recommand craftbukkit and build on its devbukkit.

    How can I get this on an other way ?
     
  2. Offline

    Pasukaru

    Not sure what you wanna do, but maybe you can use the pickup/place events?
    EntityListener -> onEndermanPlace/onEndermanPickup -> event.getBlock()/event.getType()
     
  3. Offline

    JoshuaBehrens

    I don't use one of those events but thx ;)
     
Thread Status:
Not open for further replies.

Share This Page