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

entities

Discussion in 'Development' started by Angel, May 2, 2018.

  1. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    When I try todo
    PHP:
    $chunk->getEntities();
    it just returns an empty array even tho there's entities in the chunk. Am using a villager to check this, I even tried spawning zombie's but it still returned an empty array.
     
  2. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    Bump!
     
    RyanShaw likes this.
  3. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    Anyone want to help me.o_O
     
  4. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    You need to run that chunk and load the level to get the entities
     
  5. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    All the entities are in a spawn chunk so it doesn't matter because when I join and retry to get the entities it still doesn't work.
     
  6. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Show us how you declared $chunk.
     
  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.