I made a script that detect custom structure summon with multiple orientations.
the script support custom patterns like:
const patternTypes = {
"*": undefined,
"a": "minecraft:air",
"s": "minecraft:stone",
"p": "minecraft:pumpkin",
};
const pattern = [
["asa"],
["sss"],
["ppp"]
];
or even 3D ones like:
const patternTypes = {
"*": undefined,
"a": "minecraft:air",
"s": "minecraft:stone",
"p": "minecraft:pumpkin",
};
const pattern = [
[
"asa",
"asa",
"asa",
],
[
"sss",
"sss",
"sss",
],
[
"ppp",
"ppp",
"ppp",
]
];
the size is customizable too. the function need a bit of optimization, the first example lag spike is between 5ms to 20ms