Live data from Hacker News

Scripting API now in public beta

minecraft.net

51–60 of 102 posts

Re: Scripting API now in public beta

#51
post #14

Earlier quoted context omitted.

Might use Rhino or something, since it’s on the JVM

Bedrock edition is in C++, isn't it?

Yes, they ported it to C++ due to game consoles and mobiles support.

Creating a couple of Java AOT compilers from scratch wasn't properly part of their idea how to best make use of resources.

Re: Scripting API now in public beta

#52
post #17

This kind of thing changes lives. I used to play a lot of counter strike source. One day I found a server mod called EventScripts, and suddenly I could make all kinds of crazy game modes on Python. I found I picked up this programming thing pretty naturally, and without that mod I doubt I would have even dabbled. The feedback loop is phenomenal and is something you simply do not get with other forms of learning. I re…

> The feedback loop is phenomenal and is something you simply do not get with other forms of learning.

Coming off of a BA in the Humanities and studying programming for economic necessity (i.e. getting skills that would help me get a job), this is what hooked me. It felt refreshing to enter a world where my creation worked or didn’t (runtime bugs aside) and I knew it right away.

This isn’t to degrade my Humanities studies. I’ve gotten a lot of value out of them, too.

Re: Scripting API now in public beta

#53
post #18

Earlier quoted context omitted.

I don't understand what drives parents to want their kids to become code monkeys. I would rather my kids be financially savvy and have business skills. It sure doesn't hurt to know how to code, but getting them to program in Python from age 10 does not make them entrepreneurs or creators of business opportunities, it just makes them the labor workers of tomorrow.

Teaching someone to code is teaching them how to automate things, which is useful in many different careers. Being financially savvy is useful too, fortunately people can learn both.

> Being financially savvy is useful too, fortunately people can learn both.

Didn't understand why they imply that being a code monkey means you know nothing about anything else... Must not be a code monkey themselves. Working with programmers you see people of all backgrounds who have a wealth of knowledge in all sorts of topics, some even have financial backgrounds, others business and military, and so on.

Re: Scripting API now in public beta

#54
post #34

Earlier quoted context omitted.

Name one domain that can't be enhanced by knowing how to code.

I have nothing against knowing how to code, but no 10 year old needs to be doing that, just going to make them even more used to a sedentary lifestyle and away from (real) social interaction.

You're better off targeting video games and social media, specifically the latter. Then again, kids don't even play video games, they watch someone else play video games.

Re: Scripting API now in public beta

#55
I looked briefly but didn't see it - does Minecraft scripting have a way to save state and reset to that state instantly, how about stepping through code in real time? If not, most programs are just macros - they simply mimic user-actions, and if somewhere along the script something doesn't go as planned, it's just a mess. It's really hard teaching 10 year olds how to do anything more than the basics if every time they run the program, their entire world is messed up, and there's no way to undo the script they just ran, or understand why it went wrong.

This has been true in Minecraft for years now, it'd be great if it were addressed.

Re: Scripting API now in public beta

#56
post #19
post #15

Does anyone know of a good guide to the Minecraft versions? My daughter wants to get mods and maybe venture into scripting, but it seems confusing as to what each version is capable of. We have it on Xbox and android but it seems none of this works on those. It seemd java edition is best; except this has now been replaced by win10 edition, but that does not support most mods or so it seems. It's quite confusing so if…

Java is the original and I don't think it's fair to say that is has been "replaced" yet. Mods basically only exist for this one. The Windows 10 one (which as here announced just got scripting beta), the XBox one and Android/iOS versions are all based on the same code base and labeled "Bedrock Edition". There's a bunch of other variants for other consoles etc, but less relevant. The Raspberry Pi one also had a (I thin…

I was about to comment to say this is the source of the confusion. The Java based one is the original. Microsoft doesn't have the best history with Java, so my best guess is that eventually Bedrock may indeed replace the original in constant development, but it doesn't appear to be too soon. It doesn't hurt to just invest some time into the Java edition of Minecraft until the Windows 10 catches up with the new mod system.

The Raspberry Pi has a minimalist rendition of Minecraft that let's you script it with Python. Just downloading (or getting n00bs) the official Rapsberry Pi distro Raspbian includes Minecraft with it.

Re: Scripting API now in public beta

#57
post #31

Earlier quoted context omitted.

My issue is not with the act of programming, just as I don't have an issue with the act of writing something on a paper. The issue is that the parents are doing this in order to set the kids up to a career in programming, which IMO is going to be the blue collar work of their future. There is no glory in being a code monkey 10 years from now... just a decently paid blue collar worker making someone else rich. Teach t…

Looking down on being a "decently paid blue collar worker" is not something anyone decent is going to want to teach their kids.

I'm sorry I want more for my kids than them being a car mechanic. Nothing wrong if that ends up happening, but I'm not going to teach them to fix cars at 10 with the intention of them being a mechanic growing up.

Re: Scripting API now in public beta

#58

Earlier quoted context omitted.

Teaching someone to code is teaching them how to automate things, which is useful in many different careers. Being financially savvy is useful too, fortunately people can learn both.

> Being financially savvy is useful too, fortunately people can learn both. Didn't understand why they imply that being a code monkey means you know nothing about anything else... Must not be a code monkey themselves. Working with programmers you see people of all backgrounds who have a wealth of knowledge in all sorts of topics, some even have financial backgrounds, others business and military, and so on.

I've been programming for 20 years... I've come across very few programmers who have decent business/financial skills over this time period.

Re: Scripting API now in public beta

#59
post #50
post #17

This kind of thing changes lives. I used to play a lot of counter strike source. One day I found a server mod called EventScripts, and suddenly I could make all kinds of crazy game modes on Python. I found I picked up this programming thing pretty naturally, and without that mod I doubt I would have even dabbled. The feedback loop is phenomenal and is something you simply do not get with other forms of learning. I re…

This will show my (lack of age). I organically taught myself digital logic as Minecraft slowly added redstone and its features. When it came time to pick a major computer engineering was an obvious choice and I never looked back! Minecraft will always have a special place in my heart for this reason.

Minecraft is pretty much a technical phenomenon. It's a decade old, it's not fancy, but even now people are still playing it and modding it and taking the game to wherever their imagination will go. It's become part of many people's childhoods and even my closest friends, approaching their 30s, are still heavily invested in building their world in there, using various mods to basically recreate Civ and build out each stage of evolution.

You couldn't create such an inspirational game, or even an accidental ecosystem, by actually planning for it.

Re: Scripting API now in public beta

#60

This will get way more young kids interested in programming than all the subsidized school programs combined, by the way

I disagree. This would have been true like 4-6 years ago when Minecraft was still in the spotlight of the mainstream. Kids today have moved onto other games like Roblox and Fortnite
Post reply on HN