Underground belt entity.direction incomplete

Bugs that are actually features.
Post Reply
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Underground belt entity.direction incomplete

Post by Mylon »

I tried to copy an underground belt via this code:

Code: Select all

roboport.surface.create_entity{name="entity-ghost", position=belts.position, inner_name="fast-transport-belt", direction = belts.direction, force=roboport.force}
But the underground belt is facing the wrong direction!

Here is an example of a belt created via this method, directly to the left of the player. Notice how the underground belt is facing south (transporting north) instead of north (transporting north).

Image

Rseding91
Factorio Staff
Factorio Staff
Posts: 13256
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Underground belt entity.direction incomplete

Post by Rseding91 »

Direction is only one part of making an underground belt. you have to specify the "type" as "input" or "output" when making the belt to set if items flow into it our out of it.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Not a bug”