TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Programming Minecraft on the Raspberry Pi

155 pointsby foxwoodsalmost 7 years ago

11 comments

gavanwooleryalmost 7 years ago
I used to joke that Voxel Quest was just a fancy 3d graphing calculator. I think the entryway for a lot of students to become interested in math is to make rendering more accessible. Shadertoy is one step towards this, but SDF equations are much more difficult to grok than binary on/off voxel plotting, and they have to be mathematically sound or you get buggy looking results.
评论 #17469020 未加载
评论 #17468849 未加载
Confiksalmost 7 years ago
Another interesting environment to explore related to Minecraft is an open-source clone of that game: Minetest [1].<p>It allows extensions in the form of Lua scripts. There is an extension [2] that opens up a TCP socket which can be used to modify the environment in any language across the network. There is an accompanying Python library [3] that is quite accessible (I had to use the 2to3 tool to seamlessly convert it to Python 3 because of some dependency problem).<p>I&#x27;ve been trying to get it to work in WebAssembly (some notes here [4]) and maybe connect Blockly &#x2F; Scratch to it, but unfortunately the WebAssembly shared memory model is postponed due to the Spectre and Meltdown debacle [5].<p>[1] <a href="https:&#x2F;&#x2F;www.minetest.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.minetest.net&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;sprintingkiwi&#x2F;pycraft_mod" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sprintingkiwi&#x2F;pycraft_mod</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;sprintingkiwi&#x2F;pycraft_lib" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sprintingkiwi&#x2F;pycraft_lib</a><p>[4] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14855176" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14855176</a><p>[5] <a href="https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;meetings&#x2F;blob&#x2F;master&#x2F;2018&#x2F;CG-01-09.md#update-on-webassembly-atomics" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WebAssembly&#x2F;meetings&#x2F;blob&#x2F;master&#x2F;2018&#x2F;CG-...</a>
kbouckalmost 7 years ago
Lots of fun stuff you can program in Minecraft Pi Edition.<p>My son and I made a minecraft version of snake&#x2F;tron where each player would leave behind a trail of TNT blocks as they ran around a closed arena. Hitting a TNT would set off such huge chain reaction of explosions that the raspberry pi couldn&#x27;t handle it. After a few rounds of these explosions the minecraft world looks like a total wasteland.
评论 #17470532 未加载
klinskycalmost 7 years ago
This is fantastic. Minecraft is one of the big factors that made me want to learn Java (back when the game first came out), and indirectly spurred a lot of my own personal development. The easier they can make it, the better.
评论 #17469438 未加载
评论 #17469346 未加载
评论 #17472211 未加载
DonHopkinsalmost 7 years ago
Snap! is an awesome scheme-like visual programming language that runs in the browser, which is a lot like Scratch (visual Logo), but like Scheme in that everything is first class, including functions, lexical closures, continuations, macros, special forms, user defined functions, control structures, etc.<p><a href="https:&#x2F;&#x2F;snap.berkeley.edu" rel="nofollow">https:&#x2F;&#x2F;snap.berkeley.edu</a><p>ProgKids is a Russian site that integrates Snap! (and Python) with Minecraft, so kids can visually program 3d turtles that move around in the world and build things!<p><a href="https:&#x2F;&#x2F;progkids.ru" rel="nofollow">https:&#x2F;&#x2F;progkids.ru</a><p>ProgKids. Строим дом, а потом ещё пару (Building a house, then another couple)<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=muNpsk4UH7c" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=muNpsk4UH7c</a><p>ProgKids. Куда же без зверей? (Why do you not have animals?)<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1iBFwaUSDYI" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1iBFwaUSDYI</a><p>ProgKids. Как работает Snap? (How does Snap work?)<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lh0mrqxFImQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lh0mrqxFImQ</a>
itronitronalmost 7 years ago
Minecraft added a full set of command blocks (impulse, repeat, and chain) back in version 1.9 which allow players to make similar modifications to worlds, as well as create and equip entities with various items and behaviors. Basically you add a command to a command block in game, and then it executes when the command is activated. I think command blocks are an easier foray into coding in Minecraft although it would be nice to see more capabilities added in the future.
snekalmost 7 years ago
anyone know what API wolfram is using here to communicate with the minecraft client?
评论 #17468958 未加载
评论 #17469504 未加载
评论 #17469459 未加载
pcunitealmost 7 years ago
If you own the Minecraft Windows 10 Edition, you can download their &quot;Code Connection&quot; server and start coding right away in JavaScript.<p>Links:<p><a href="https:&#x2F;&#x2F;minecraft.makecode.com&#x2F;setup" rel="nofollow">https:&#x2F;&#x2F;minecraft.makecode.com&#x2F;setup</a><p><a href="https:&#x2F;&#x2F;aka.ms&#x2F;meeccwin10" rel="nofollow">https:&#x2F;&#x2F;aka.ms&#x2F;meeccwin10</a>
JustSomeNobodyalmost 7 years ago
Off topic:<p>What are some decent general tutorials for programming voxel games?
emethalmost 7 years ago
A related project, not limited to the Raspberry Pi: <a href="https:&#x2F;&#x2F;teachcraft.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;teachcraft.net&#x2F;</a>
sdanalmost 7 years ago
Imagine running the winning MARLÖ model on this. That&#x27;s going to turn a lot of heads (most likely going to attract attention from kids as well).