I have tried to make a code that looks for TOMBSTONES not have energy but have minerals. I haven't found a way. For dropped sources yes:
Game.spawns["Spawn1"].room.find(FIND_DROPPED_RESOURCES, {filter: (x) => {return (x.resourceType != RESOURCE_ENERGY)}})
But for TOMBSTONES non.
If someone could help me to find TOMBSTONES with minerals I would greatly appreciate it.