rotation/variations for selection box
Posted: Sun Sep 20, 2026 8:00 am
I'm making an elevated entity that is above ground and have 4 directions, I want to do things like elevated rails but with a "simple-entity-with-force"
Problem:
selection box rotate are only defined once and rotate with the entity
Possible solutions:
Problem:
selection box rotate are only defined once and rotate with the entity
Code: Select all
selection_box = { { -0.5, -1.5 }, { 0.5, -0.5 } }- Allow variation to selection_box:
Code: Select all
selection_box = { north={{ -0.5, -1.5 }, { 0.5, -0.5 }}, east={{ -0.5, -1.5 }, { 0.5, -0.5 }}, west={{ -0.5, -1.5 }, { 0.5, -0.5 }}, south={{ -0.5, -1.5 }, { 0.5, -0.5 }}, } - Locking selection box to north:
rotate_shift :: boolean optional
Default: true
Whether to rotate the selection_box alongside entity's rotation.Code: Select all
rotate_selection_box = false - Allow the use of selection_box_shift for any entity with variation/rotation like with RailSignals: