HNHacker News
TopNewBestAskShowJobs

gilesknap

71 karma · joined July 12, 2019

Developer for the UK Synchrotron.
submissionscomments
gilesknap··on Show HN: Response – Learn Python with Minecraft
See the Reddit discussion for a video of an MCIWB build.

https://www.reddit.com/r/Minecraftbuilds/comments/11rqauh/bu...

gilesknap··on Show HN: Learn Python with Minecraft
I've taken a detailed look at MC EE vs MCIWB and taken some notes here: https://gilesknap.github.io/mciwb/main/user/explanations/mce...
gilesknap··on Show HN: Learn Python with Minecraft
I've looked into MC EE and MakeCode.

Here is my summary of findings https://gilesknap.github.io/mciwb/main/user/explanations/mce...

gilesknap··on Show HN: Learn Python with Minecraft
Thanks for the link. I did not know about raspberry juice.

It does provide a similar capability to MCIWB. It recreates the Education edition python interface which does let you set and get blocks and see when a player hits something.

Its a solution for people who learn education edition and then want to run the same code at home on a BUkkit server. (Bukkit is a Java server mod )

gilesknap··on Show HN: Learn Python with Minecraft
Before I started MCIWB I hosted Minecraft servers on my Raspberry Pi during lockdown. My son would meet up with friends on these servers every day.

I was impressed how low resource requirements are for the server.

We had quite big world's with 5 or more players running pretty well.

The client is a different story and the graphics capability of a pi is five for pi edition but struggles with the others.

gilesknap··on Show HN: Learn Python with Minecraft
Yes, you could absolutely do that. I've even used it to create moving structures that players can get inside and be carried around in.
gilesknap··on Show HN: Learn Python with Minecraft
Believe it or not I did not know about this. I'm aware of Education Edition but the projects in MakeCode look more sophisticated than I expected.

I'm going to take a look into it and come back to you on this question!

gilesknap··on Show HN: Learn Python with Minecraft
It won't be MCIWB :-) Nobody had heard of it until last week! :-)

They may be using Minecraft Education Edition which as come up a few times in the above conversations.

gilesknap··on Show HN: Learn Python with Minecraft
Well that's a shame because I am pretty sere education edition supports RCON so I could adapt MCIWB to use it.

I happen to know that EE commands include the elusive 'GetBlock' that let's you query the contents of the world. I had to jump through some embarrassing hoops to provide this function for MCIWB.

gilesknap··on Show HN: Learn Python with Minecraft
So this sounds like fun.

What kind of interface - operator commands? or something more low level? The operator commands that MCIWB uses are really poor for querying the state of the world - hopefully this API would give us that?

gilesknap··on Show HN: Learn Python with Minecraft
It looks like this book will be using the education edition of minecraft. It does have a limited python programming interface.

My approach uses a remote interface called RCON to send Minecraft operator commands to the world. It can do everything you could do with Command Blocks or Operator commands and more because of the Python constructs like loops and branching.

The other benefit is that you get to use the latest developer tools such as VSCode and the latest version of Python as you are working outside of the Minecraft game to write your code.

gilesknap··on Show HN: Learn Python with Minecraft
This sounds quite interesting. I've really only spent much time with Java and although it has a great modding scene it is unofficial and nothing ever works with updated versions (My Python approach is immune to this issue as it uses official RCON interface).

I have always been put off by how commercial Bedrock seems as soon as you open it. But at the same time it sounds like interesting and official modding is available there.

gilesknap··on Show HN: Learn Python with Minecraft
So we should be good for a while. The RCON interface this uses is always forward compatible with new Java editions.

Bedrock also uses RCON but there are subtle differences with the commands available.

If Microsoft ever does drop Java Edition I'd likely rework this to support Bedrock. I'm hoping this won't happen - they are keeping Java up to date with Bedrock presently but the new editor mode for Bedrock is a worrying development (maybe).

gilesknap··on Show HN: Learn Python with Minecraft
To be fair. My instruction page is setting up Minecraft, Docker to run a minecraft server in, Python and VSCode.

So I have quite a few prerequisites for my Python tutorials and this makes the first page intimidating.

However, installing and running MC java edition has got more fiddly since Microsoft took over. There was a horrible transition phase where accounts were being migrated from Mojang.

It's kind of OK now. But I'm sad that Microsoft is pushing hard on Bedrock Edition and look like they may try to ditch Java. This project could be adapted to Bedrock without much trouble but there is a whole class of things {NBT related} that you don't seem to be able to do via the remote interface in Bedrock.

gilesknap··on Show HN: Learn Python with Minecraft Interactive World Builder
Yes the tutorials are intended to be accessible to a complete novice.

I recommend some help from someone with a little experience for the 1st tutorial that discusses installing all the prerequisites. But the rest should be OK for children from around 10 years (I've tested it on my 9 year old)