Latest in Gaming

Image credit:

'Minecraft' fan finds a way to program BASIC code in-game

It'll even tell virtual robots to perform tasks for you.
Jon Fingas, @jonfingas
January 18, 2016
Share
Tweet
Share

Sponsored Links

You may have seen Minecraft used to teach programming or even mods that allow some in-game programming, but writing BASIC code inside Minecraft? That's virtually unheard of... until now. SethBling has developed a BASIC interpreter that lets you compile and run simple programs and scripts within Mojang's world-building game. It boils down to using many, many command blocks, but it really works. You can not only print text, but have in-game robots ("turtles") perform tasks. Need to dig a long tunnel? Just start a digging script and let the bot do all the hard work.

Suffice it to say that you won't be writing elaborate software in a game world that was never meant for it. Code is inherently slow due to Minecraft's 20Hz operation clock (you can never perform more than 20 commands per second), and it bogs down the more you use it. However, you won't have to spend weeks recreating the interpreter yourself -- SethBling has posted the necessary material, so it's just a matter of installing the add-on and brushing up on your IF/THEN statements.

All products recommended by Engadget are selected by our editorial team, independent of our parent company. Some of our stories include affiliate links. If you buy something through one of these links, we may earn an affiliate commission.
Comment
Comments
Share
Tweet
Share

Popular on Engadget

Elon Musk warns that Tesla's 'Battery Day' tech is two years away

Elon Musk warns that Tesla's 'Battery Day' tech is two years away

View
Microsoft’s Bethesda deal: Great for Game Pass, troubling for exclusives

Microsoft’s Bethesda deal: Great for Game Pass, troubling for exclusives

View
Microsoft keeps the same price for its new wireless Xbox controllers

Microsoft keeps the same price for its new wireless Xbox controllers

View
Logitech’s new MX Anywhere 3 mouse has buttons to control Zoom calls

Logitech’s new MX Anywhere 3 mouse has buttons to control Zoom calls

View
The Xbox's redesigned Microsoft Store is now available to all

The Xbox's redesigned Microsoft Store is now available to all

View

From around the web

Page 1Page 1ear iconeye iconFill 23text filevr