Find the amount of a block in a 2x2x2 area

Started by LaTortiia on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Find the amount of a block in a 2x2x2 area

So, I'm doing a nuclear reactor and I need to detect the presence of a custom block (Boron) in a 2x2x2 block radius, but I also need to know how many Boron blocks are in this said radius, is there any way of doing this?

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
there is a template…
Fri, 01/08/2021 - 02:49

there is a template procedure for finding blocks in a 3x3x3 radius, just modify it to your needs

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know about the template,…
Fri, 01/08/2021 - 17:56

I know about the template, is there any way to modify it so it not only tells me if there is a specific block in a radius but also tells me how many of them there are?