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

Chest's face

Discussion in 'Development' started by BruhLol, Jun 17, 2019.

  1. BruhLol

    BruhLol Baby Zombie

    Messages:
    122
    How to get the sign tile attached to the chest's front face?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Just loop through all surrounding blocks and check if it's a sign?
     
  3. BruhLol

    BruhLol Baby Zombie

    Messages:
    122
    but isn't there an easier way? wouldn't it cause performance loss?
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Technically, everything causes a performance loss :p
    You could load the chunk into an async task and check the blocks there, but I think serialising is slower than just checking 4 blocks lol
    I don't think there is an easier way, however I'm far from an expert in the PMMP field.
     
    Muqsit and BruhLol like this.
  5. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Last edited: Jun 19, 2019
    HimbeersaftLP likes this.
  6. BruhLol

    BruhLol Baby Zombie

    Messages:
    122
  7. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    BruhLol likes this.
  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.