Is what you are doing similar to "Adventures In Minecraft"? [0]. My kid and I went through that and is was great. Last adventure involves hooking up a micro:bit to control in-game elements.
[0] https://www.wiley.com/en-us/Adventures+in+Minecraft,+2nd+Edi...
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.
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 )
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.