Live data from Hacker News

Scripting API now in public beta

minecraft.net

61–70 of 102 posts

Re: Scripting API now in public beta

#61
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…

Check out this topic: https://gaming.stackexchange.com/questions/164341/how-exactl...

Look into Minecraft Forge.

Not sure how relevant all of this is now but we got it up and running on an older iMac pretty easily.

Re: Scripting API now in public beta

#62
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…

Blast from the past. I have a similar story; Eventscripts was how I learned python! was a lot of fun playing with code that you could see take action in game.

Re: Scripting API now in public beta

#64
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…

Way back there used to be Metamod (which IIRC circumvented some limitation of the Half-Life engine regarding how it loaded DLLs into the game), and then AMX Mod layered on top of that, which was later replaced by AMX Mod X. This in turn used a little programming language called "Pawn". You could then write mods in Pawn, compile that to bytecode and dynamically load it into the game server. Later there was Sourcepawn.…

Fun fact, the creator of pawn / sourcemod was one of the guy working on the JIT compiler of spidermonkey (js engine) @ Mozilla : https://www.bailopan.net

Re: Scripting API now in public beta

#65
post #34

Earlier quoted context omitted.

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.

Oh yeah, Twitch should be considered a health hazard for young impressionable kids. Wasting time and life away watching others play is something I just cannot comprehend.

Re: Scripting API now in public beta

#66
Note that release only gives you an API to some UI elements and to entities (animals, monsters). This is not yet a full Bedrock API and the number of things you can do is currently quite limited.

Nice to see a start though!

Re: Scripting API now in public beta

#67
post #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

Do you have a source for that?

From another comment: https://www.gamesindustry.biz/articles/2018-10-02-minecraft-...

Re: Scripting API now in public beta

#68

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 th…

They have in-game error messages and log files, or you can attach Visual Studio's debugger.

https://minecraft.gamepedia.com/Bedrock_Beta_Script_Document...

Re: Scripting API now in public beta

#69
post #14

Earlier quoted context omitted.

Any existing babel setup will already work, you don't need to wait. That being said, I'd be kind of surprised if this doesn't actually support ES6. How likely is it that the Minecraft team built their own Javascript interpreter rather than setting up bindings to an existing one?

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

It uses V8.

Re: Scripting API now in public beta

#70
post #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

Roblox seems to have a pretty good Lua mod ecosystem.
Post reply on HN