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

Solved how to get the entity in x=1, z=3 to dx=3, dz=5

Discussion in 'Development' started by wenshitao, Jul 30, 2021.

  1. wenshitao

    wenshitao Spider

    Messages:
    6
    GitHub:
    doraeclub
    how to get the entity in x=1, z=3 to dx=3, dz=5
    thanks
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    Could you rephrase that, and explain what you're trying to accomplish?
     
    minijaham likes this.
  3. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    you want to get all entitys in that area?
     
  4. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    PHP:
    /** @var Level $level */
    $entities $level->getNearbyEntities(new AxisAlignedBB($x$y$z$dx$dy$dz));
    Is this what you want ^^"?
     
    wenshitao likes this.
  5. wenshitao

    wenshitao Spider

    Messages:
    6
    GitHub:
    doraeclub
    yes,thanks i will try it
     
  6. wenshitao

    wenshitao Spider

    Messages:
    6
    GitHub:
    doraeclub
    thanks,it's work!:D
     
    NTT 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.