This was a plot in the fantasy sword and magic novel," The Iron Cavalry." A similar novel was " The Modern War of the Three Realms ", a fantasy novel about modern people who transmigrated to another world of cultivation and cultivated their souls and magic. I hope you like my recommendation.😗