I'm having some troubles with WE, more specifically with rotating a Clipboard content.
The issue: I need to be able to test if a certain schematic is inside a certain region, or in other words, if there's any place in the region that matches a given schematic (by comparing all blocks in it excluding air blocks).
How I planned to solve this issue: Store all BlockStates that are not air in a map alongside their offset (effectively creating a Map<BlockVector3, BlockState>), then use that to search in the region for that specific building (that is represented in schematic).
A build would only be considered there if all blocks in the schematic were found, with the exact offset. The issue is that it should work independently of the current rotation of the building, that's why I want to copy the same clipboard 4 times, to have all possible 90° Y axis rotation of the same building.
I'm not sure if WE provides such functionality (searching for a group of blocks in a bigger group of blocks), but I don't think so 'cause I never saw anyone talking about or using it in any of the plugins I saw, so I would need to implement that manually.
Does anyone have already done this kind of thing, and if so, how did you solve the issue?