Page 1 of 1

supports_direction on prototypes returning true unintuitively

Posted: Thu Jul 14, 2022 4:48 pm
by Gweneph
Stone furnace entities don't support direction:

Code: Select all

/c game.player.print(game.player.selected.supports_direction)
Returns False. However, the stone furnace prototype does support direction:

Code: Select all

/c game.player.print(game.player.selected.prototype.supports_direction)
returns True.
This seems to be the case for many prototypes, and I'm wondering if this is a bug, or intentional.

Re: supports_direction on prototypes returning true unintuitively

Posted: Thu Jul 14, 2022 11:59 pm
by DaveMcW
Try with an assembling machine. It supports direction only if the recipe involves fluids.

Furnaces work the same way, though I'm not sure you can ever give a stone furnace a fluid recipe.

Re: supports_direction on prototypes returning true unintuitively

Posted: Sun Jul 24, 2022 10:50 am
by Gweneph
Thanks for the reply. I was originally asking because it seemed like the prototypes that supported rotation but whose entities didn't wouldn't change the player's build rotation direction when rotated in hand. However, upon further testing they do indeed affect the player's build rotation, so all is consistent in the world.