How to get the minecart that activates detector rail?

Discussion in 'Plugin Development' started by Maltheus, Aug 10, 2012.

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

    Maltheus

    I'm looking for the most efficient way to get the minecart that runs over a detector rail. I would have assumed that I'd use the EntityInteractEvent (just like PlayerInteractEvent does for buttons), but that doesn't trigger. I can listen for a BlockRedstoneEvent, but that doesn't give me easy access to the minecart and I'd rather not listen for every redstone event anyway. Any ideas? Thanks!
     
  2. Offline

    travja

    Listen for redstone, and if the redstone triggered is a detector rail....... then I don't know how to get the minecart...
     
Thread Status:
Not open for further replies.

Share This Page