Healing iron golem with iron can give you Totem of Unhurting with a small chance
If some player dies it will drop Totem of Hurting.
Everytime you go to sleep and wake up,there is a chance you can get Totem of Night and Totem of Sun
Everytime you get levitation there is a very small chance you can get Totem of Flying.
Everytime you filled an end portal frame there is a chance you can get Totem of Ender
Everytime you killed piglins and wolves like team mobs there is a chance you can get Totem of Genocide.
Everytime you eat a cake there is a chance you can get Totem of Happiness.
When a sapling grows there is a chance you can get Totem of Nature.
When you tame a wolf or cat, there is a chance you can get Totem of Love.
Crafting 9 totems (Totem of Hurting,Totem of Sun,Totem of Happiness,Totem of Nature,Totem of Flying,Totem of Ender,Totem of Love,Totem of Night and Totem of Undying) you will get Totem of Rainbow