Set player.mining_state.position when hand-mining resources.

Things that already exist in the current mod API
Post Reply
blueblue
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Apr 11, 2017 7:39 pm
Contact:

Set player.mining_state.position when hand-mining resources.

Post by blueblue »

The player.mining_state.position value is currently {0, 0} when I'm mining iron ore with the player. The relevant events also dont return the ore entity or its position. Can you set this to the location of the iron ore patch instead please?
unique_2 on discord and mod portal

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

Re: Set player.mining_state.position when hand-mining resources.

Post by Rseding91 »

Position is only used when mining terrain. If you want the entity being mined that's just the selected entity for the player.
If you want to get ahold of me I'm almost always on Discord.

blueblue
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Apr 11, 2017 7:39 pm
Contact:

Re: Set player.mining_state.position when hand-mining resources.

Post by blueblue »

Duh. Thank you!
unique_2 on discord and mod portal

Post Reply

Return to “Already exists”