Modding Help entityQuery ignoring plants

Discussion in 'Starbound Modding' started by Insentience, Dec 17, 2013.

  1. Insentience

    Insentience Master Chief

    Code:
    world.entityQuery(o, r, {...});
    I'm not 100 percent sure what this does but I think it returns a list of entities that are r units away from o. The third parameter is for certain conditions. I know one condition and that is 'notAnObject = true'. If you add that then it will ignore objects like tables, chairs, etc.

    Does anyone know what I need to insert in order to ignore plants/trees/bushes, the same way that objects are ignored when you use 'notAnObject = true'?

    Thanks
     
  2. Ghostly7526

    Ghostly7526 Tentacle Wrangler

    I actually can't recall off the top of my head what plants/trees/bushes are item type wise, but your best resource for api/code is here --

    https://gist.github.com/jordoh/7864154

    You can always get all the entities with an entityQuery and remove the plants by checking entityType
     
  3. Insentience

    Insentience Master Chief

    Thanks for the link!
     

Share This Page