Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get a players chunk

Comments in 'Plugin Development' started by ImagicalGamer, May 8, 2016.

  1. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    I'm trying to get the chunk that a players in when they run a command, how can I do this? After I get the chunk I'm changing the biome (already know how to do) I read the docs but couldn't find any help there. Any help is appreciated.
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    PHP:
    $player->getLevel()->getChunk($player->getX() >> 4$player->getZ() >> 4);

Share This Page

Advertisement