Chunk edge calculation

Discussion in 'Spigot Plugin Development' started by Bence990707, Apr 24, 2017.

  1. The title mostly explains what i need, but here is a more indepth description:
    I'm making a faction plugin that utilizes the chunk claiming system similar to the original factions'. For the /f map i'd like to highlight the edges of the chunk with bedrock, but i don't know how to exactly calculate it.

    Tapatalkkal küldve az én LG-K120 eszközömről
     
  2. Go to massive craft's github page and look at the seechunk command it's pretty easy to replicate.


    Sent from my iPhone using Tapatalk
     
  3. Doesn't that make pillars on the four corners of the chunk?

    Tapatalkkal küldve az én LG-K120 eszközömről
     
  4. Yes but their code finds the edges first and only displays it if it's a corner.


    Sent from my iPhone using Tapatalk
     
  5. Oooh thanks, also, you were pretty fast with the answer, will test out the code and tell if it succeeded or not.

    Tapatalkkal küldve az én LG-K120 eszközömről
     
  6. The edges of the chunk are the columns along 0 and 15.. What more is there to calculate?
    If you want to convert block coordinates to chunk coordinates, just do x>>4 and z>>4.
     
  7. So a for(i1=0;i1<16;i1++) loop an all 4 side?

    Tapatalkkal küldve az én LG-K120 eszközömről