TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: TeachCraft – Learning Python Through Minecraft

129 点作者 emeth大约 9 年前

9 条评论

jackhack大约 9 年前
Is this project related to the book: &quot;Learn to Program with Minecraft: Transform Your World with the Power of Python&quot; ? <a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Learn-Program-Minecraft-Transform-Python&#x2F;dp&#x2F;1593276702" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Learn-Program-Minecraft-Transform-Pyth...</a> I ask because the concept appears to be substantially similar.<p>re: the approach -- My kids are crazy about Minecraft, and being able to build very simple python programs that modify the world (build block structures, control creatures, etc.) is much more gentle yet engaging than the typical programming 101 tasks.
bpchaps大约 9 年前
Neat, I&#x27;d also recommend something like opencomputers for learning. The learning curve and asinine amount of time it takes to get started is a bit of a hurdle or thirty, but it helps to have more than one person involved.<p>At the end of my adventure with it, I had some code that would read a png from github from minecraft, then use the 3d printer to create a series of blocks by using the &#x27;pixels&#x27; from all server allowed blocks. The personal requirement was to not do any sort of color manipulation and only use what was available. The pixel position from block to block doesn&#x27;t change, and transparency could be coded outside of the png, so it became pretty damn difficult really quickly.<p>In the process I got to learn about png, cv2, jit (to pull the available blocks&#x27; pngs and eventually for an attempt in finding consistent transparency logic. Flowers.....), minecraft&#x27;s internals, voxels, some lua, more python and some interesting algorithm stuff.<p>Life got in the way and I never actually finished, but the block directly to the left of the cursor was the last block created. Despite its ugliness, I&#x27;m actually pretty pleased with it. <a href="https:&#x2F;&#x2F;imgur.com&#x2F;dqwnnL2" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;dqwnnL2</a> which is part of <a href="https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;giajLha" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;giajLha</a> (dickbutt baby, nsfw kinda)
hakcermani大约 9 年前
This is awesome. Much more engaging than finding the first 100 primes.
评论 #11600134 未加载
diimdeep大约 9 年前
There is also ComputerCraft mod with Lua programmable blocks and visual code editor (ComputerCraftEdu) <a href="http:&#x2F;&#x2F;www.computercraft.info&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.computercraft.info&#x2F;</a> and <a href="http:&#x2F;&#x2F;computercraftedu.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;computercraftedu.com&#x2F;</a>
markdavis33大约 9 年前
Hey emeth...thanks for making this awesome project. As a father of 2 sons (aged 9 and 11, both Minecraft fanatics) this is a perfect platform to get them interested in coding. Starting with Python is a nice easy on-ramp for them, and they&#x27;ll even start using GitHub with this project, which is great too. Keep up the cool work :)
asimuvPR大约 9 年前
This is actually something I was looking for. Very nice! Do you mind adding a license to the work?
评论 #11600395 未加载
soared大约 9 年前
Give me screenshots.
deepnet大约 9 年前
Is there a good GPLed substitute for Minecraft ?<p>I am required to use a Free license as an educator and the massive appeal of voxels is undisputable.
评论 #11601823 未加载
justifier大约 9 年前
A gateway to 3d rendering with scripts<p>once you&#x27;ve exhausted these lessons you can show them blender