Sphere procedure freezes the game

Started by ImNotHuman on

Topic category: Mod design feedback

Last seen on 21:50, 24. Mar 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sphere procedure freezes the game
Thu, 03/23/2023 - 08:06 (edited)

I've been trying to make a procedure that removes obsidian inside a sphere centered at XX, YY and ZZ. In theory, it cycles through all blocks within a cube and checks if they are wiwhin a radius. When I try it, it freezes all the entities except the player.

Code image

Image should be here

Edited by ImNotHuman on Thu, 03/23/2023 - 08:06