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.
4 Shares
Share
Tweet
Share
Save

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
4 Shares
Share
Tweet
Share
Save

Popular on Engadget

Engadget's 2019 Back-to-School Guide

Engadget's 2019 Back-to-School Guide

View
Canon leaks its EOS 90D DSLR and mirrorless EOS M6 Mark II cameras

Canon leaks its EOS 90D DSLR and mirrorless EOS M6 Mark II cameras

View
Watch the Google Stadia event in 10 minutes

Watch the Google Stadia event in 10 minutes

View
HP's latest gaming headset delivers active cooling, noise cancellation

HP's latest gaming headset delivers active cooling, noise cancellation

View
Samsung's 32-inch Space Gaming Monitor makes room for your PC

Samsung's 32-inch Space Gaming Monitor makes room for your PC

View

From around the web

Page 1Page 1ear iconeye iconFill 23text filevr