BasketMC

Requesting Items: Hypermine Modded Episode 4

  • Published on

Episode 4 of Hypermine Modded picks up the turtle storage system. The terminal can now ask StorageCell1 what it holds, and after hours of code a turtle fetches a stack of iron ore on request. Basket also shows a drill, a lumberjack turtle and a database server, then tries chisel glass. When it ends, the retrieval code works but has bugs, and the look of the floor is still undecided.

The terminal talks

There are three computers: a terminal for commands, Master Control, which holds the scripts and passes messages along, and the turtle in the storage cell. When the turtle reboots it gives its name, StorageCell1, and registers as a storage cell, so Master Control knows whom to ask. Picking "Request Items" on the terminal sends the question through Master Control to the cell, and the answer comes back as a paged list.

It is "sort of this clunky interface." Basket can flip pages and search, and "search" with nothing after it clears the search. Actually taking an item out does not work yet. Some numbers look wrong, too. Dirt, sure, "but the one that's standing out to me is this much redstone." The list says 24,301. Two jobs come next: retrieving items, and switching to an advanced computer so the menu takes mouse clicks.

A ComputerCraft terminal screen listing item counts such as 3136x minecraft:dirt, 24301x minecraft:redstone and 124x minecraft:iron_ore, with search and page commands underneath

A stack of iron ore

"I've been banging my head against this program for the last three hours and I made some progress." A request has to carry a table of data, so Basket writes a starter conversation into the BasketNet code: one computer asks to talk, the other agrees on a random channel name, and the request follows. For now every request asks for a full stack.

The first try for iron ore stalls, and the terminal reports "Unable to connect to master control." Basket's guess is a space in the conversation name. "Note to self." After a reboot the request goes through, the turtle heads down the column, and iron ore comes out. "It works. Yay." The count on the terminal does not drop, though, and the turtle's screen ends on an error. Basket climbs down to look, then lets a reboot send it back up home. "There's some bugs to work out."

A drill, and a lumberjack

Basket wants Fortune for ores and went after the iridium drill, building several machines on the way, only to learn that iridium comes only from chests or UU-matter. So the result is a plain drill, "like a rechargeable diamond pickaxe with no enchants."

Underground there is a lumberjack turtle in a small pine farm. Every minute or two it goes up to check whether the tree grew, chops it down if it did, and refills its saplings. It ran overnight. "It's not super efficient," but it is passive wood for all those chests.

A turtle labeled Lumberjack beside a pine sapling on a dirt block in the middle of an underground water pool lined with torches

A database, and room to grow

Up top sits a new computer, the DatabaseServer. The storage cell still keeps its own inventory but sends updates here, so another computer can ask what StorageCell1 holds even while the turtle is busy moving items.

The cell can also grow now. Give the turtle chests, pick "Expand Storage Cell," and it goes to the bottom, takes the torch that keeps mobs from spawning, places the chests, puts the torch back and climbs up.

A gray ComputerCraft computer labeled DatabaseServer next to a black and teal block on a cobblestone floor, with a potted rose bush behind it

Chisel glass

The last part is about looks. Basket hates the default glass texture and tries the chisel, which only works on blocks in hand, not ones already placed. Quite Clear Glass has "not even any lines," but Basket does not want people to feel they could fall through. Bubble glass, borderless glass and a steel frame follow, then a few marble patterns. Marble is "kind of hard to come by."

Looking down through bubble glass set in a pale stone floor into a shaft ringed with chests, with a torch at the bottom

Where it ends

Nothing is final. Basket leans toward one glass and one marble and plans to put it all in and see. Next episode should bring the marble floor, the look of the place, and maybe a simpler way of sending requests.