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

Sign Close Event

Discussion in 'Facepalm' started by SamJakob, Jul 5, 2017.

  1. SamJakob

    SamJakob Spider

    Messages:
    7
    GitHub:
    SamJakob
    How do I get the contents of a sign when the X is pressed, not when the sign is updated?
     
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    As of the 1.1 update of MCPE, you cannot. It updates everytime you type on the sign now, not when it's finished.
     
    SamJakob likes this.
  3. SamJakob

    SamJakob Spider

    Messages:
    7
    GitHub:
    SamJakob
    Shame.
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    You can have something along the line of a delayedtask, basically checking if it hasent been edited for example 1 min
    and fire the necessary events like usual
     
  5. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    If Mojang don't give us an event for sign completion soon it's probably best to switch to a different mechanism whereby you activate signs by command/tap after they've been written.
     
  6. SamJakob

    SamJakob Spider

    Messages:
    7
    GitHub:
    SamJakob
    Ah, good idea.
    I was going about that in a different approach (checking the sign as it was typed but delaying the messages) but I realized I could just check it all once the player smacks the sign...

    Thank you for guiding me towards my epiphany :)
     
  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.