materials can now have arbitrary numbers of wood, stone, and metal types.