How to specify bags in the management condition interface

dwarf-fortress

Having located the magma layer as well as a good source for sand, I'm eager to get glass production up and running, for trade and defense purposes.

In order to better automate things, I set up a glass furnace that doesn't take general orders, but has a specific order to gather sand 10 times whenever there are less than 50 sand-bearing-items available.

However, in order to avoid running completely out of bags I also want to add a conditional not to start the job if there are less than 20 empty bags available, and this is where I run into trouble.

You can specify 'empty items' as a trait, and 'boxes and bags' as a category, but that category includes wooden chests and rock or metal coffers, neither of which are suitable. On the other hand, material doesn't have categories like 'all leather' or 'all yarn' but only specific 'aardvark leather' or 'sheep yarn' or 'ramie cloth'.

This makes the latter test essentially useless since I have a different work order to make sure I always have at least 20 rock coffers available for when I need to create a new bunch of rooms.

Any suggestions?

Best Answer

You could try removing the condition for empty bags and instead have the stockpile set to [g]ive resources (and perhaps take as well, I am unsure if the empty bags produced are considered "produced" by the furnace) to that glass furnace, and ensure that it can contain 50 or so sand bags.

This will require that you also ensure it has fuel, but since you mentioned magma I am presuming you intend to make a magma glass furnace so that should not pose an issue.

This way, you will always have 50 bags either empty or full in that stockpile but they will only ever be used by that glass furnace for collecting sand or making glass, so you are free to put other bags elsewhere and they will not be used.

Do note that eventually your glassmakers will become very fast at crafting and will likely outpace your sand collection unless you have many dwarves on it.