Find the amount of a block in a 2x2x2 area

Started by LaTortiia on Fri, 01/08/2021 - 01:30

Topic category: Help with modding (Java Edition)

Last seen on 18:52, 20. Jan 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Find the amount of a block in a 2x2x2 area
Fri, 01/08/2021 - 01:30

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?

Last seen on 03:20, 8. Jan 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 18:52, 20. Jan 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?