check for a block in a radius

Started by LIUKRAST on

Topic category: Help with MCreator software

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check for a block in a radius

So im creating a redstone block to detect if i place a block in a radius of 5 blocks about this redstone block. I created two blocks versions ( on and off ) and already coded the redstone output. I only need the procedure to swap from off to on but idk how to check for a block in a 5 blocks radius. Any idea?

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen What's it called?
Wed, 02/17/2021 - 17:58

@Klemen What's it called?

Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Haven't it idk why
Tue, 08/03/2021 - 13:21

Haven't it idk why

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes i see, but how do i edit…
Tue, 02/22/2022 - 15:04

yes i see, but how do i edit the range? like 4x4? or 8x8? or 5x5x5?

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure that you can…
Fri, 03/04/2022 - 22:21

I'm pretty sure that you can set the sx, sy, and sz variables to half of each number of your range, then make that negative (if you are doing 8x8x8, set sx, sy, sz to -4) Then put the original number into each repeat (if you are doing 8x8x8, make each repeat go 8 times)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you able to make it…
Sun, 12/25/2022 - 19:02

Are you able to make it preset where you're standing?  I am trying to make a boss summonable only if there are no blocks around you in the way, but of course, you're standing on the ground, so I don't want it to include blocks below you.