Virtual Reality technology is increasingly being used in mining data visualization, accident simulation, miner training, equipment simulation, and risk evaluation in mining industry. However, little attention has been paid on modeling risk behaviors in underground coalmine. Based on Multi-agent technology, a hierarchical architecture for modeling the risk behaviors in coalmine virtual environment was discussed, which consists of Hardware and operating system layer, Multi-agent environment layer, and man-machine interface layer. The proposed multi-agent framework can effectively model the emergent characteristics of risk behaviors. To make multi-agent based framework more precise, related concepts and agent properties also were formal defined. Finally, an application case was introduced, which shows the robustness of our method and the capability to simulating risk behaviors of coalmine safety.