How To Get The Position Of A Certain Block?

Started by Xamrey on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To Get The Position Of A Certain Block?

I was wondering if there's a way to get the position of a block.

I'm currently working on a block that will spawn a mob above it and before that, destroy the blocks around it to avoid killing the mob easily. To do both of these I need the position of the block.

Hopefully someone can help with this   :)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you don't need position of…
Thu, 10/14/2021 - 02:51

you don't need position of block for this, just get the blocks around it