Get/set direction of currently non-rotatable entity
Posted: Tue May 23, 2017 8:29 pm
Some entities such as the assembling table have no direction unless we change their settings (eg set it to a fluid recipe).
When in that state, the direction property always returns 0 and assignments to it are ignored. But the entity actually has a direction, it's just not exposed.
If you set a fluid recipe, then rotate, then reset the recipe, the rotation is still kept (but always exposed as 0 in the mod API when the recipe is cleared).
It would make sense for the real direction to always be exposed and allow it to be changed in that case.
When in that state, the direction property always returns 0 and assignments to it are ignored. But the entity actually has a direction, it's just not exposed.
If you set a fluid recipe, then rotate, then reset the recipe, the rotation is still kept (but always exposed as 0 in the mod API when the recipe is cleared).
It would make sense for the real direction to always be exposed and allow it to be changed in that case.