Page 1 of 1

next_rotation for entities

Posted: Thu Jul 26, 2018 10:24 am
by darkfrei
Is it possible to make the same thing like it was done in hazard concrete? Just add next_rotation with the next entity.

Example:

Code: Select all

prot_type["entity-N"].next_rotation = "entity-E"
prot_type["entity-E"].next_rotation = "entity-S"
prot_type["entity-S"].next_rotation = "entity-W"
prot_type["entity-W"].next_rotation = "entity-N"

Re: next_rotation for entities

Posted: Thu Jul 26, 2018 10:50 am
by mrvn
And can we then make (mod) e.g. chemical plants that have 8 rotations, 4 like now and 4 with the 2 fluid inputs swapped?

Re: next_rotation for entities

Posted: Thu Oct 18, 2018 10:47 pm
by Rseding91
I don't see the utility in this. If an entity has rotation support then it already works to rotate it and if it doesn't have rotation support it doesn't have rotation support on purpose.

Additionally it would add confusion as to which should be used: what if something with rotation had a next rotation in the prototype as well - when would which be used over the other?

Re: next_rotation for entities

Posted: Mon Nov 12, 2018 7:17 pm
by Staplergun
It can be handled in a similar manner to the minable.result or placeable_by where it overrides default behavior if present in the prototype.

Re: next_rotation for entities

Posted: Fri Nov 16, 2018 1:38 pm
by darkfrei
Rseding91 wrote: Thu Oct 18, 2018 10:47 pm I don't see the utility in this. If an entity has rotation support then it already works to rotate it and if it doesn't have rotation support it doesn't have rotation support on purpose.
Now I can place left-side and right-side hazard concrete with the same item.

I want actually the same, but for entities. For example placeble cliffs or place furnaces 2x2 or 3x3, using the same item.