Guest User

Untitled

a guest
Sep 24th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. So, check the chunk first for torches, glowstone, sky, whatever gives off a light source. Give those blocks their respective light levels. Then you want to make the blocks around that light source have a decreasing light value, as seen below.
  2.  
  3. Air = a, Torch = t, Number is light level (this chart might be a little hard on the eyes)
  4. a,4 | a,5 | a,5 | a,5 | a,4
  5. ----+-----+-----+-----+-----
  6. a,5 | a,5 | a,6 | a,5 | a,5
  7. ----+-----+-----+-----+-----
  8. a,5 | a,6 | t,7 | a,6 | a,5
  9. ----+-----+-----+-----+-----
  10. a,5 | a,5 | a,6 | a,5 | a,5
  11. ----+-----+-----+-----+-----
  12. a,4 | a,5 | a,5 | a,5 | a,4
  13.  
  14. Now, make it so a solid block (like stone) stops light completely. (s = Stone)
  15. a,4 | a,5 | a,5 | a,5 | a,4
  16. ----+-----+-----+-----+-----
  17. a,5 | a,5 | a,6 | a,5 | a,5
  18. ----+-----+-----+-----+-----
  19. a,5 | a,6 | t,7 | a,6 | a,5
  20. ----+-----+-----+-----+-----
  21. s,0 | s,0 | s,0 | s,0 | s,0
  22. ----+-----+-----+-----+-----
  23. a,0 | a,0 | a,0 | a,0 | a,0
  24.  
  25. This essentially means that the light level decreases by one for each block away from a light source.
  26. t,7 | a,6 | a,5 | a,4 | a,3 | a,2 | a,1 | a,0
  27.  
  28. It also means, when a person breaks a block, you only have to check whether the sky is now shining on it, or if there are light sources within 15 blocks of it, then adjust the block's (air) light level accordingly.
  29.  
  30. Of course, I could be rambling nonsense, I don't know much about 3d =)
Add Comment
Please, Sign In to add comment