Bedrock Edition Scripting Commands in MakeCode
Hey there! I've been looking into the ability to create custom blocks for use in MakeCode with JavaScript and while the process looks relatively straightforward, I've noticed very little documentation specifically relating to creating/scripting custom-blocks for use in Minecraft itself.
Looking through the documentation on Bedrock's scripting API, I've found several critically important commands that are simply not provided in MakeCode's block format. The process of creating custom MakeCode blocks with these commands certainly doesn't seem like it should be too incredibly difficult, but the lack of virtually any documentation on custom MakeCode blocks with regard to Minecraft has left me scratching my head when it comes to bringing these two pieces of the puzzle together.
The key areas I'm looking to create blocks for relate to location, with the goal being to give my students at least a few more tools at their disposal when it comes to sensing the locations of blocks, entities, etc. one of the API commands that's most caught my attention on this front is:
minecraft:hit_result_continuous
This command is an absolutely perfect fit, with output being both the type of entity a player's reticle is aimed at as well as its location in the world.
My team and I are so excited by Minecraft's unique positioning to motivate students through goals they want to achieve in-game, because as anyone involved in coding will tell you, classes, assignments, and grades are one thing, but you really learn when you are motivated to work towards a goal that genuinely interests you. This is the reason we are so motivated to work towards coding these tools in for our students' use in MakeCode, because while the smaller more gimmicky activities are certainly fun and educational, the missing basic sensing features currently leave our students at a complete dead-end when they look beyond these intro activities to most of the actual in-game goals they'd like to achieve. The needed features themselves are extremely basic, but they are positively essential tools our students need in order to meet the goals their interests dictate for them.
Any guidance would be greatly appreciated, and thanks so much for taking the time to read this lengthier-than-first-intended post!
-
Good questions, though a bit above my familiarity level and what I do in 6th grade coding with my students. However, I'm definitely interested in what comes out here!
And would love to share ideas with you.
0
Please sign in to leave a comment.
Comments
1 comment