I would like to experiment with the agent on the standard (non-education) edition of Minecraft for iOS. It looks like there is only one way to do it without Code Connection - get it 'with an NBT editor'. But what does it mean? What should I modify there? Will I just get the mob or will I be able to program it?

1 Answer 1


I have made a agent "plugin" using the wsserver library. You can use it by going on https://repl.it/@behavingEffort/agent and using the command /connect agent.behavingeffort.repl.co/ws.

You can spawn the agent using the chat command ".agent tp" and you can use the full list of commands from this documentation: https://education.minecraft.net/wp-content/uploads/Code_Connection_API.pdf

  • Thanks, sounds great! Should it work with non-educational version of Minecraft installed on iPad? My iPad says 'connection failed'.
    – LA_
    May 28, 2020 at 5:57
  • Try to run the command twice, the server sleeps if noone connected to it for a while
    – onflante
    May 28, 2020 at 13:38
  • Yes, it works. Many thanks! Where can I read how it works? Looks like this is some kind of proxy-addon.
    – LA_
    May 30, 2020 at 7:50
  • A guy re-coded the whole Code Connection protocol. The code connection basically works by sending messages back and forth between the server and minecraft, the message will include what the purpose of it is (e.g running a command) and the message itself (e.g "/say hello"). Here's the library: github.com/Sandertv/mcwss and here's the source code of the agent thing i made with it: repl.it/@behavingEffort/agent
    – onflante
    May 30, 2020 at 17:18
  • The URL repl.it/@behavingEffort/agent is 404. Is this available anywhere else?
    – Tim Lewis
    Dec 12, 2021 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .