Item that detects a 10x10x10x radius and replaces blocks

Started by herrcookie on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item that detects a 10x10x10x radius and replaces blocks
Mon, 04/21/2025 - 18:03 (edited)

Yo Guys, I was wondering how I could make a detection when you right click an Item, that it checks for blocks and replaces the blocks with a different block in an 10 block radius. I know that the 6x6x6x template exists but that only checks for 1 singular block in that radius.

Edited by herrcookie on Mon, 04/21/2025 - 18:03
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could set it up so it…
Mon, 04/21/2025 - 23:15

You could set it up so it covers the radius you want, then in the If the variable found is true part you set it to replace the block at sx sy and sv with the one you want to change. Then, you disconnect all that procedure from the green start block and put it inside a repeat block  for enough times to cover the whole area, which would be 1000 blocks... That might be a bit too intensive, you could limit the Y (height) axis to maybe 3 layers (-1,0,1) and reduce the area a bit.

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It just places one block and…
Tue, 04/22/2025 - 19:46

It just places one block and that one block like very far away from me