Is it possible to connect a Minecraft Python script to a specific active game window when multiple game windows are currently open?
For example, I have three different open games on one Raspberry Pi connected to another Raspberry Pi hosting as a Minecraft server. The idea is to have two of the active windows follow different players while I play the game with the third window.
#specify ip address and port
mc = minecraft.Minecraft.create("192.168.1.1", 4711)
#set camera mode to follow for a specific player
mc.camera.setFollow(entityId)
The script always attaches to the first active game. I'd like to be able to write different scripts for different active games. If I could target a game in code, great. Otherwise, is there some command line magic or other solution that will do the trick?