@monikozi Yuccas, Agaves, and Aloes....they all look sorta similar, but, yes, it is Agaves that die after they bloom. Some here are called "century plants" because they (seem to) take 100 years to bloom!
This scene reminds me of the story in your book of getting lost and being sooooooo thirsty - so glad you made it out! Love your Arizona pix what a fascinating place. PS. almost done with your book, will leave a review as promised, sorry its so late
Could it be it?