Finding center of feature despite rotation

Started by Tazgirl on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Finding center of feature despite rotation

I'm working on a mod that uses features to generate some small rooms but for the generation I need to run some logic from their centremost point of the room, not the corner where the structure block was. The problem is that the rotation would make any hardcoded offset for the checks, stop working. Is there anyway to consistently run code from the centre of my roosm without disablign rotation?