Page 1 of 1

Allow 180 rotation of rectangular crafting machines after placement

Posted: Mon Jun 13, 2022 10:38 pm
by TwentyEighty
If you have an entity based on the assembler prototype with a non square collision box and a fluid box, it's not possible to rotate the entity after placement. For entities like boilers and generators, this is possible and it rotates them 180 degrees. The assembler behavior is unexpected and seems arbitrary.

I suggest to allow the assemblers to have similar behavior to boilers for this case.

Re: Allow 180 rotation of rectangular crafting machines after placement

Posted: Thu Jun 05, 2025 11:48 pm
by Honktown
In 2.0, a setting on assembling-machines was added:
fluid_boxes_off_when_no_fluid_recipe which is default false. By default, a non-square / rectangular assembling machine with fluid boxes can rotate after being placed.

Re: Allow 180 rotation of rectangular crafting machines after placement

Posted: Fri Jun 06, 2025 5:33 am
by StephenB
Related: viewtopic.php?t=129252

From my testing rotation works and rotates a 2x1 assembler 180 degrees, but only if it has fluidboxes and fluid_boxes_off_when_no_fluid_recipe == false. Otherwise there's an engine optimization/bug that prevents changing the entity's .direction if it has no fluidboxes. Assigning `entity.direction = 12` and then reading `entity.direction` will still give you the original direction.