Control An IRL Home From Minecraft

Minecraft seems to be a game in which anything is possible, both in the virtual world and in the real one. As a sandbox-style game, we’ve seen all kinds of things implemented in it including arithmetic logic units and microcontroller emulators. On the other end of reality we’ve also seen a lot of projects in which real-world interfaces impact the virtual world in some way. As a game, the lines between these two worlds often seem to blur, and that’s no different for this project that allows for control of a smart home from within the game itself.

The project is called HomeAssistantMC and is built with Forge. The mod interfaces directly with a Minecraft game. From within the game, players can create a model of their home complete with light switches and other control interfaces. A WebSocket API listens to the game for changes to these devices, and interfaces with real-world controllers which control the home in real life. The game uses special state blocks to handle the control, and the entire control system can be configured in-game once all of the appropriate software has been installed.

For anyone willing to experiment with this software, all of the code for this project is available on its GitHub page. One of the other interesting things about this project is the ability to use other creations within Minecraft for home automation. For example, building logic gates allows for nuanced control of the home automation setup with creations we’ve already seen in Minecraft before. And, if you really want to go deep into the weeds, you could even build a complete 6502 processor from within the game as well.

RGB Minecraft Sign Isn’t Just For Looks

This laser cut and LED illuminated version of the Minecraft logo created by [Geeksmithing] looks good enough to occupy a place of honor on any gamer’s shelf. But it’s not just decoration: it can also notify you about your Minecraft’s server status and tell you when players are online by way of its addressable LEDs.

In the first half of the video after the break, [Geeksmithing] shows how the logo itself was built by cutting out pieces of white and black acrylic on his laser cutter. When stacked up together, it creates an impressive 3D effect but also isolates each letter. With carefully aligned rows of RGB LEDs behind the stack, each individual letter can be lit in its own color (or not at all) without the light bleeding into either side.

Once he had a way of lighting up each letter individually, it was just a matter of writing some code for the Raspberry Pi that can do something useful with them. Notifying him when the server goes down is easy enough, just blink them all red. But the code [Geeksmithing] came up with also associates each letter with one of the friends he plays with, and lights them up when they go online. So at a glance he can not only tell how many friends are already in the game, but which ones they are. Naturally this means the display can only show the status of nine friends…but hey, that’s more than we have anyway.

We’ve been seeing people connect the real world to Minecraft in weird and wonderful ways for years now, and it doesn’t seem like there’s any sign of things slowing down. While we recognize the game isn’t for everyone, but you’ve got to respect the incredible creativity it’s inspired in young and old players alike.

Continue reading “RGB Minecraft Sign Isn’t Just For Looks”

Hackaday Podcast 077: Secret Life Of SD Cards, Mining Minecraft’s Secret Seed, BadPower Is Bad, And Sailing A Sea Of Neon

Hackaday editors Mike Szczys and Elliot Williams are deep in the hacks this week. What if making your own display matrix meant a microcontroller board for every pixel? That’s the gist of this incredible neon display. There’s a lot of dark art poured into the slivers of microSD cards and this week saw multiple hacks digging into the hidden test pads of these devices. You’ve heard of Folding@Home, but what about Minecraft@Home, the effort to find world seeds from screenshots. And when USB chargers have exposed and rewritable firmware, what could possibly go wrong?

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 077: Secret Life Of SD Cards, Mining Minecraft’s Secret Seed, BadPower Is Bad, And Sailing A Sea Of Neon”

Finding The Random Seed Of Minecraft’s Title Screen

Minecraft is a game about exploring procedure-generated worlds. Each world is generated from a particular “seed” value, and sharing this seed value allows others to generate the same world in their own game. Recently, the distributed computing project Minecraft@Home set about trying to find the seed value of the world shown in the Minecraft title screen, and have succeeded in their goal.

The amount of work required to complete this task should not be underestimated. 137 users contributed 181 hosts with 231 GPUs to the effort, finding a solution in under 24 hours. The list of contributors to the project is a long one. It appears the method to find the seed involved comparing screenshots from various seed worlds to the original image. This took a lot of reverse engineering in order to calculate the camera FOV and other settings of the original capture, such that the results could be compared accurately. Interestingly, the group found two seeds that can generate the requisite world, suggesting the world generator code has some collisions between seed values.

We’re not sure what’s more astounding, the amount of work that went into the project, or that there’s a distributed computing project tackling advanced Minecraft research. Either way, we’re no strangers to Minecraft hacks around these parts. Video after the break. Continue reading “Finding The Random Seed Of Minecraft’s Title Screen”

64-bit And A Display: Minecraft Computers 10 Years Later

Some people build their own computer to play games, while others play games to build their own computer. Minecraft is the prime candidate for the latter, and while you can certainly arrange the blocks to make them look like a computer, we’re of course talking about replicating the actual functionality of a CPU or parts thereof, and/or external components within the game. Many such creations have spawned in the decade since the first Minecraft-built ALU surfaced, and [Rockfarmor] built a 64-bit specimen to add to that list — and made a video to showcase it.

Instead of emulating a common architecture, [Rockfarmor] went for a more home-made approach, and re-used the architecture from an old school assignment (in Swedish) as basis. The result is a simple yet fully functional 64-bit CPU with 32 registers, 32kB main memory and a separate 16kB stack. The instruction set mostly contains ALU and branching operations, but also a few special opcodes to control an additional 64×64 pixel blocks, 64-color display — including drawing circles, lines, and color fills.

More details on the architecture can be found in its documentation and in an older video (with subpar audio circumstances unfortunately). An additional time-lapse video of the initial build is also available, and you will find all of them after break. To simplify development, [Rockfarmor] also wrote a desktop app to program the computer in assembly and upload it straight to the Minecraft version.

As with all computers built in Minecraft, the driving force is redstone, which essentially allows circuit design within the game, and [Rockfarmor]’s is no difference here. He also uses command blocks to avoid the laboriously and slow “wiring” required otherwise, turning it more into a “wireless redstone” circuit.

No doubt, purists will consider this cheating, but another angle would be to see it as Moore’s Law applied to Minecraft computers, considering the computer’s size and speed compared to the first Minecraft ALU. Or maybe as the equivalent of microcode in real-world CPUs? Or then, maybe we should just accept and embrace different options and preferences.

Continue reading “64-bit And A Display: Minecraft Computers 10 Years Later”

LEGO And Minecraft Team Up For Custom Gaming PC Case

There are probably few parents who haven’t watched their kids sitting on the floor, afloat on a sea of LEGO pieces and busily creating, and thought, “If only they could make a living at that.” But time goes on and kids grow up, and parents soon sing the same refrain as the kids sit transfixed by the virtual equivalent of LEGO: Minecraft.

Finding a way to monetize either LEGO or Minecraft is a bit difficult for the young enthusiast; combining both obsessions into a paying proposition would be a dream come true. [Mike Schropp] did it, and this Minecraft-themed LEGO computer case was the result. Intel wanted a LEGO case for their new NUC mini-PC motherboard, and as a sponsor of the Minefaire event, the case needed to be Minecraft themed.

[Mike] chose the block that any Enderman would choose: the basic grass block. Each of the ten cases he made for the show had about 1000 of the smallest LEGO pieces available, to recreate the texture of the grass block in all its faux 8-bit glory. The 4″ x 4″ (10cm x 10cm) 8th Gen NUC board was a great fit for the case, which included slots for ventilation and SD card access, plus pop-out covers to access the board’s ports. It’s not exactly a screamer, but playing Minecraft on a grass block made from LEGO bricks is probably worth the performance hit.

We’ve seen [Mike]’s work a time or two here, most recently with a full-scale LEGO rack-mount server. Our hats off to him for another fun and creative build, and for proving that you’re never too old to LEGO. Or Minecraft.

Pickaxe Controller Is Great For Minecraft, Just Aim Carefully

Minecraft started out as a lovable indie game, and became an unstoppable billion-dollar juggernaut in a remarkably quick fashion. Over time, it’s become a favorite among modders and those that seek to explore what’s possible with the game. [Eric] decided that the game could be more immersive, and built this awesome pickaxe controller.

The controller is built around an off-the-shelf Minecraft pickaxe toy; a popular piece of merchandise given the tool’s importance in the game. [Eric] added an Arduino, an accelerometer, and buttons. This lets the controller act as a mouse, allowing the user to control the camera by moving the pickaxe. The buttons unlock further functionality, with the red button allowing the user to mine by swinging the axe. Reportedly this is a lot of fun, albeit tiring in long sessions. Other features are still controlled by the keyboard, such as movement and accessing inventory screens. We’d love to try it out; carving out a tunnel block by block would be quite satisfying after all the exertion!

[Eric] is actually giving the controller away to a lucky subscriber, so head over to the Youtube video if you’d like a shot to own the nifty pickaxe. We’ve seen other advanced Minecraft controllers before, too. Video after the break.

Continue reading “Pickaxe Controller Is Great For Minecraft, Just Aim Carefully”