The Nether and the End
After the diamonds, the bot's ladder goes on: a portal, the Nether, a stronghold, the dragon. This part is written and still being tested.
Where this stands. The plan below is in the code, and its arithmetic is covered by tests: the shape of the portal frame, finding the stronghold from two throws, the order of the milestones. No part of this road has been played through in a real game yet. Expect it to get stuck. The parts that work in real games are everything up to the diamonds.
How it gets this far
You don't switch it on. It's the next part of its own life: once all of the ladder before it is done, including the full diamond armor, the bot starts on these milestones by itself.
Each milestone is done in the world it belongs to. In the Nether or the End the bot works only on what can be done there; the rest of its list waits.
The road
| Milestone | What it takes |
|---|---|
| Flint and steel | Iron, and flint from digging gravel. |
| A Nether portal | A diamond pickaxe, a water bucket and 10 obsidian. |
| A trip to the Nether | A shield, a diamond sword and a diamond chestplate first. |
| A Nether fortress | Found by its nether bricks. |
| Blaze rods | 8 of them, for 16 eyes. |
| Ender pearls | 16, from endermen. |
| A bow and arrows | A bow and 32 arrows, made at home before the long walk. |
| Eyes of ender | Crafted back in the overworld. |
| The stronghold | Found by throwing eyes. |
| The End portal | An eye in every empty frame. |
| A trip to the End | Full diamond armor, the bow, and 64 blocks to build with. |
| The dragon | The fight. |
| Home from the End | Out through the exit portal. |
The portal
The bot needs 10 obsidian for the smallest frame: 2 wide and 3 tall inside, with no corner blocks.
- It mines obsidian it can see, if that obsidian stands on solid ground and not over a lava pool.
- With none in sight it makes some: it pours its water bucket beside a lava source, waits for the lava to turn, and takes the water back.
- With no lava in sight either, it makes a mining trip to look for some.
It builds the frame on a flat open spot a few blocks from its shelter, lights it with flint and steel, and tells you where it is. It remembers both ends of the portal, and relights one that has gone out.
In the Nether
Before it goes it packs flint and steel, blocks to bridge with, and a gold helmet if it has the gold. The helmet stays on in the Nether, so piglins leave it alone. It never hits piglins, zombified piglins or endermen first.
- The fortress. It looks for nether bricks around it. With none in sight it explores in long legs.
- Blaze rods. It stands near a blaze spawner and fights the blazes that come close. Hurt, it backs off and eats before going back.
- The way home is the portal it came through.
Pearls and eyes
Ender pearls come from endermen in the overworld, by night as well as by day. With a lot of gold to spare it also barters with piglins for a few more.
An eye of ender is one pearl and one blaze powder. It makes 16: twelve for the frame, and spares for the throws that break.
The bow and the arrows
The end crystals on the pillars heal the dragon, so the bot takes a bow and 32 arrows.
- String for the bow comes from its chests, or from spiders. They stay around by day and come out at night.
- Feathers come from chickens, flint from gravel, and the sticks from wood.
- The arrows are made a few at a time, so a try that's cut short keeps what it made.
The trip to the End waits until the bow and the arrows are ready.
Finding the stronghold
An eye of ender, thrown, flies toward the stronghold. The bot uses that the way a player does:
- It throws an eye and notes the direction it flew.
- It walks about 120 blocks to the side and throws another.
- Each throw is a line on the map. Where the two lines cross is its guess.
- It walks to the crossing and throws again. An eye that goes down into the ground means the stronghold is below.
There it digs down in stages, looking for the portal's frame at each depth, then follows the stone bricks to the portal room. If it finds nothing, it forgets the guess and starts again.
In the portal room it puts an eye in every empty frame block. It doesn't start with fewer eyes than there are empty frames. When the portal opens it tells you, and remembers it: from then on it walks back to the portal room from wherever it is.
The dragon
It goes in with full diamond armor, its best sword, the bow and 64 blocks.
- Getting to the island. It bridges to the middle with the blocks it carries.
- The crystals. It shoots the ones it can see from the ground. It doesn't climb the pillars.
- The fight. It waits near the middle of the island and hits the dragon's head when the dragon comes down. It moves out of the dragon's breath and eats when its health gets low.
- The void. It only steps onto end stone, obsidian or bedrock.
When the dragon is dead it tells you, leaves through the exit portal and comes out at home, by its bed.
If it dies in the End, the things it dropped there are given up; it walks back to the stronghold and goes in again. If it dies in the Nether, it goes back through its portal for its things.
What it can't do yet
- Deal with the caged crystals or climb the pillars.
- Use beds, potions or a water bucket in the fight.
- Go to the Nether or the End on your order: there's no command for it, only the ladder.
This road is in the bot's code in src/skills/endgame.