Only Update When Player in Range

Started by Engineer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Only Update When Player in Range

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?