Page 1 of 1
Getting the name of a item on the ground.
Posted: Wed May 08, 2013 9:07 pm
by ficolas
I want to make a container to pick up the small artifacts laying arround everywhere with my mod, so I used game.findentities to search for the items on the ground near the artifact collector, and I used this:
Code: Select all
if artifacts[z].name=="item-on-ground" and artifacts[z].stack.name=="small-alien-artifact" then
But the item on the ground scanned doesnt have the field "stack", how can I do it?
And if I cant, move this to modding interface request plz

Re: Getting the name of a item on the ground.
Posted: Wed May 08, 2013 9:44 pm
by kovarex
ficolas wrote:And if I cant, move this to modding interface request plz

Done

Re: Getting the name of a item on the ground.
Posted: Wed May 08, 2013 9:54 pm
by ficolas
ok thanx

, hope I can do it for the next factorio update, because small alien artifacts everywhere are really annoying.
Re: Getting the name of a item on the ground.
Posted: Thu May 09, 2013 10:10 pm
by Dakkanor
ficolas wrote:ok thanx

, hope I can do it for the next factorio update, because small alien artifacts everywhere are really annoying.
what about building a belt system where the small artifacts drop the most frequently and feed all of them into a set of chests? its not a mod function but it should work if you plan ahead.....
Re: Getting the name of a item on the ground.
Posted: Fri Jun 21, 2013 5:36 pm
by ficolas
did this get added? (not trying to push), but I checked with "stack" and it doesnt work, idk if because it havent been added or because is another key
Re: Getting the name of a item on the ground.
Posted: Sun Jul 14, 2013 10:21 pm
by slpwnd
I think the "done" was meant for moving it into the modding interface requests:)
Anyway I have put it on the list for things for 0.6.x.
Re: Getting the name of a item on the ground.
Posted: Thu Jul 18, 2013 5:46 pm
by slpwnd
Done for the 0.6.0.
Re: Getting the name of a item on the ground.
Posted: Thu Jul 18, 2013 9:31 pm
by n9103
neat, should work well to help the wood harvesting bots that were in the works as well
