1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Schematic decorations: Add 'place_offset_y' placement parameter

For precise control of schematic vertical position relative to the
'place_on' node.
Avoids workarounds that add empty nodes to a schematic and therefore
reduce performance.

Also remove long-unused decoration cutoff code.
This commit is contained in:
paramat 2017-09-06 22:20:09 +01:00 committed by paramat
parent 557bbc6704
commit 51002b1629
4 changed files with 27 additions and 83 deletions

View file

@ -4743,6 +4743,13 @@ The Biome API is still in an experimental phase and subject to change.
-- ^ Flags for schematic decorations. See 'Schematic attributes'.
rotation = "90" -- rotate schematic 90 degrees on placement
-- ^ Rotation can be "0", "90", "180", "270", or "random".
place_offset_y = 0,
-- ^ Y offset of the schematic base node layer relative to the 'place_on'
-- ^ node.
-- ^ Can be positive or negative. Default is 0.
-- ^ If the flag 'place_center_y' is set this parameter is ignored.
-- ^ If absent or 0 the schematic base node layer will be placed level
-- ^ with the 'place_on' node.
}
### Chat command definition (`register_chatcommand`)