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

Lock door - how to handle the post-break event?

Comments in 'Plugin Development' started by ishitatsuyuki, Feb 6, 2015.

  1. ishitatsuyuki
    Offline

    ishitatsuyuki New Member

    Joined:
    Jan 24, 2015
    Posts:
    3
    Minecraft User:
    Tatsuyuki
    About a door, I think there is 3 type of event:
    Touch(PlayerInteract)
    Break(BlockDestroy)
    Post-Break(Try to hold it and the door will be open, maybe client-only)
    What's the 3rd event? How can I handle it or I can't?
  2. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    PlayerInteractEvent
  3. ishitatsuyuki
    Offline

    ishitatsuyuki New Member

    Joined:
    Jan 24, 2015
    Posts:
    3
    Minecraft User:
    Tatsuyuki
    If it is, i can handle, but it isn't.
    Also, if doors are opened by post-break, pocketmine won't do a collision-detection.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I think there is no event for the first one.
    For the second one, it should be PlayerAnimateEvent
    For the third one, it should be blockbreakevent
    If what you mean is the breaking action.

Share This Page

Advertisement