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 Guide to Privacy

Engadget's Guide to Privacy

View
Google WiFi successor could include Assistant-enabled beacons

Google WiFi successor could include Assistant-enabled beacons

View
'Dragon Ball Z: Kakarot' arrives on January 17th, 2020

'Dragon Ball Z: Kakarot' arrives on January 17th, 2020

View
Nintendo is holding an online 'Mario Kart 8 Deluxe' tournament this Sunday

Nintendo is holding an online 'Mario Kart 8 Deluxe' tournament this Sunday

View
LinkedIn's new quizzes can prove you're not lying on your resume

LinkedIn's new quizzes can prove you're not lying on your resume

View

From around the web

Page 1Page 1ear iconeye iconFill 23text filevr