Disclaimer
This answer was written assuming Encode Thoughts was on the Wizard Spell List. While DNDBeyond lists the spell as a Wizard Spell, the Guildmaster's Guide to Ravnica book doesn't actually specify that the spell has an associated class. If your table accepts DNDBeyond's wisdom that the spell is indeed a Wizard spell, then this answer is valid, but if not, you'll need to see my revised answer which I've posted separately.
We can get there without Wish, without Epic Boons
The Character
- Race: Tiefling (Or High Elf if GGR backgrounds aren't permitted at the table)
- Background: Simic Scientist
- Feats
- Magic Initiate [Druid]
- Spell Sniper [Druid]
- Classes: 18 Levels
- Artificer [Any Archetype]: Level 10
- Bard: Level 1
- Cleric [Arcana]: Level 1
- Druid [Land]: Level 2
- Sorcerer [Any Archetype]: Level 1
- Warlock [Celestial]: Level 1
- Wizard [Illusionist]: Level 2
Key Points
There's a few critical things we're gaining:
The Artificer's Right Cantrip for the Job feature
At level 10, an Artificer gains the ability to swap out their Cantrips, one cantrip at a time, per short or long rest. In order to cycle through all 19 Cantrips that an Artificer may prepare, they would need to rest 19 times in 7 days, averaging to about 3 rests per day. That.... is very easily attainable, given 1 long rest and 2 short rests each day.
So far: 19/44 Cantrips
Bard/Cleric/Druid/Sorcerer/Warlock/Wizard
The base Cantrips provided by each of these classes will add up:
- Bard: 2
- Cleric: 3
- Druid: 2
- Sorcerer: 4
- Warlock: 2
- Wizard: 3
Total from this group: 16 Cantrips
So far: 35/44 Cantrips
Archetypes
Some Archetypes of each of these classes will give us some additional Cantrips.
- Arcana Cleric: 2 Cantrips (from the Wizard Spell List)
- Land Druid: 1 Cantrip
- Celestial Warlock: 1 Cantrip—Sacred Flame
- Technically this also gives us Light, but since that's on the Artificer list already, it's not adding a new cantrip, and can be discarded
- Illusionist Wizard: 1 Cantrip—Minor Illusion
From this group: 5 Cantrips
So far: 40/44 Cantrips
Feats
Two feats give us some extra Cantrips
- Magic Initiate: 2 Extra Cantrips. We pick Druid because Druids have the most class-exclusive Cantrips of any class in the game, making it easier to pick up all the cantrips we need.
- Spell Sniper: 1 Extra Cantrip (but only Attack-Roll Cantrips). We pick Druid again for the same reason.
From this group: 3 Cantrips
So far: 43/44 Cantrips
Racial Feature
Many Races offer a Cantrip as a level 1 spellcasting feature. We could have gone with many different races (and see later for why we might have needed to) but Tiefling was my preference, so I went with it.
From this group: 1 Cantrip
So far: 44/44 Cantrips
Background
Each of the Guildmaster's Guide to Ravnica Backgrounds add spells to all of the spell lists that a character has, including 2 or 3 Cantrips.
This doesn't actually increase the number of cantrips we can learn, but it offers us some flexibility in how we allocate the cantrips to each class/feature.
Spell List (And Sources)
Cantrip |
Source |
Feature |
Acid Splash |
Artificer |
Right Cantrip for the Job |
Create Bonfire |
Artificer |
Right Cantrip for the Job |
Dancing Lights |
Artificer |
Right Cantrip for the Job |
Fire Bolt |
Artificer |
Right Cantrip for the Job |
Frostbite |
Artificer |
Right Cantrip for the Job |
Guidance |
Artificer |
Right Cantrip for the Job |
Light |
Artificer |
Right Cantrip for the Job |
Mage Hand |
Artificer |
Right Cantrip for the Job |
Magic Stone |
Artificer |
Right Cantrip for the Job |
Mending |
Artificer |
Right Cantrip for the Job |
Message |
Artificer |
Right Cantrip for the Job |
Poison Spray |
Artificer |
Right Cantrip for the Job |
Prestidigitation |
Artificer |
Right Cantrip for the Job |
Ray of Frost |
Artificer |
Right Cantrip for the Job |
Resistance |
Artificer |
Right Cantrip for the Job |
Shocking Grasp |
Artificer |
Right Cantrip for the Job |
Spare the Dying |
Artificer |
Right Cantrip for the Job |
Thorn Whip |
Artificer |
Right Cantrip for the Job |
Thunderclap |
Artificer |
Right Cantrip for the Job |
Blade Ward |
Bard |
|
Vicious Mockery |
Bard |
|
Gust |
Cleric |
Arcana |
Infestation |
Cleric |
Arcana |
Toll the Dead |
Cleric |
|
Word of Radiance |
Cleric |
|
Druidcraft |
Cleric |
Simic Scientist |
Control Flames |
Druid |
Circle of Land (Level 2) |
Primal Savagery |
Druid |
|
Produce Flame |
Druid |
Spell Sniper |
Shape Water |
Druid |
|
Shillelagh |
Druid |
Magic Initiate |
Mold Earth |
Druid |
Magic Initiate |
Booming Blade |
Sorcerer |
|
Chill Touch |
Sorcerer |
|
Friends |
Sorcerer |
|
True Strike |
Sorcerer |
|
Thaumaturgy |
Tiefling |
|
Eldritch Blast |
Warlock |
|
Green-Flame Blade |
Warlock |
|
Sacred Flame |
Warlock |
Celestial |
Encode Thoughts |
Wizard |
|
Lightning Lure |
Wizard |
|
Minor Illusion |
Wizard |
Illusionist (Level 2) |
Sword Burst |
Wizard |
|
"But what if the GGR Backgrounds aren't allowed?"
There's an easy fix. Go with a High Elf instead, and pick Mold Earth as your Wizard Cantrip. The Druid then replaces Mold Earth with Druidcraft, and the Cleric picks up Thaumaturgy. Personally, I just like the Tiefling better, so that's what I went with.