Schematic-Specification icon indicating copy to clipboard operation
Schematic-Specification copied to clipboard

Clarification regarding Entities and Offset?

Open devmattrick opened this issue 4 years ago • 1 comments

In the spec, it says:

The position of the entity relative to the [0, 0, 0] position of the schematic (without the offset applied).

Am I correct in assuming this means Pos for entities doesn't take the Offset value into account at all? Is there a reason for this, I can't really imagine a scenario where someone would want entities to not be placed at offseted positions. I understand tools could just apply the transformation before saving the schematic but it seems like an odd choice if I'm understanding it correctly?

devmattrick avatar Jun 17 '21 16:06 devmattrick

Specifies the relative offset of the schematic from the paster. When pasting, if there is a reasonable location to use as a base position, implementations SHOULD offset the location of the paste by this vector. The default value if not provided is [0, 0, 0]. Example: If a player is pasting from 1, 2, 3, and the offset is 4, 5, 6, then the first block should be placed at 5, 7, 9

The position of the entity relative to the [0, 0, 0] position of the schematic (without the offset applied).

I think this most likely means that the entities Pos value is stored relative to the corner of the schematic, and then gets added to the offset + the "pasters" location when actually being pasted into the world.

pcm1k avatar May 25 '25 00:05 pcm1k