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

SignChangeEvent

Discussion in 'Development' started by SuperXingKong, Feb 23, 2017.

  1. SuperXingKong

    SuperXingKong Spider Jockey

    Messages:
    28
    GitHub:
    SuperXingKong
    How to get the sign class??
    I wanna get its position
    P.S: My English is not very wello_O
     
  2. asyven

    asyven Spider

    Messages:
    14
    if you want get tile of sign
    PHP:
    $level->getTile(new Vector3($x,$y,$z))
    if you want detect coords in Event (SignChangeEvent extends BlockEvent)
    PHP:
    $event->getBlock();
     
    Last edited: Feb 23, 2017
    SuperXingKong likes this.
  3. SuperXingKong

    SuperXingKong Spider Jockey

    Messages:
    28
    GitHub:
    SuperXingKong
    Thx:)
     
  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.