Possible integration with MakeCode?
blackburied opened this issue ยท 2 comments
https://minecraft.makecode.com seems like a simple way to teach a younger audience, but the architectural and licensing requirements are daunting, and for me, insurmountable. But, at that site, kids can easily generate the javascript... which would be great to plug into ScriptCraft, if compatible with ScriptCraft.
I've tried, but the underlying classes/functions are missing. For example, the first tutorial generates:
player.onChat("Chicken", function () {
for (let i = 0; i < 100; i++) {
mobs.spawn(mobs.animal(AnimalMob.Chicken), positions.create(0, 10, 0))
}
})
... but ScriptCraft knows nothing about the "mobs" class.
Would there be any (easy) way to get compatibility?
You can use Scriptcraft with https://play.magikcraft.io. It is a hosted solution with the entire Scriptcraft API available.
The editor supports TypeScript and transpiles the code when it streams it to the Minecraft server, although we don't have complete typings for Bukkit or ScriptCraft yet, so autocomplete / intellisense is not 100%.
There is an introductory guide here: https://magikcraft.github.io/magik-users-guide/