Only Update When Player in Range

Started by Engineer on Thu, 04/14/2022 - 21:24

Topic category: Help with modding (Java Edition)

Last seen on 16:26, 16. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Only Update When Player in Range
Thu, 04/14/2022 - 21:24

So I've made a custom infinite structure generator block that updates and spreads infinitely, but it gets pretty laggy once it gets to the edge of generation. I made it in a superflat dimension, and I have heavy fog on, is there a way to make it so that the block only tries to spawn a structure if the player is 40 blocks or less away?