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.

Show HN: TeachCraft – Learning Python Through Minecraft

129 pointsby emethabout 9 years ago

9 comments

jackhackabout 9 years ago
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.
bpchapsabout 9 years ago
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)
hakcermaniabout 9 years ago
This is awesome. Much more engaging than finding the first 100 primes.
评论 #11600134 未加载
diimdeepabout 9 years ago
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>
markdavis33about 9 years ago
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 :)
asimuvPRabout 9 years ago
This is actually something I was looking for. Very nice! Do you mind adding a license to the work?
评论 #11600395 未加载
soaredabout 9 years ago
Give me screenshots.
deepnetabout 9 years ago
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 未加载
justifierabout 9 years ago
A gateway to 3d rendering with scripts<p>once you&#x27;ve exhausted these lessons you can show them blender