Unclear documentation on `Minecraft.camera.setFollow(entityId)`
See original GitHub issueThe official API reference’s documentation upon the aforementioned method is ambiguous.
In the description it says:
“Set camera mode to follow an entity ([entityId])”
While in the code, the comment suggests that entityId is that of the entity who’s camera is being changed:
#set camera mode to follow for a specific player
mc.camera.setFollow(entityId)
So, does entityId refer to that of the player to follow or the player whose camera view is changed?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Minecraft API - <Stuff about="code" />
This is a reference of Minecraft Python API Library, which is supported on Minecraft: Pi edition ... "Set camera mode to normal Minecraft...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can’t you launch Minecraft Pi more than once and join on LAN?
I tried out
Minecraft.camera.setFollow(entityId)andentityIdrefers to the entity to follow, it sets the camera of the player that is using the API to hover above the entity that is specified byentityId.@Bigjango13 can you? I didn’t know that. That’s cool. I’ve been waiting for so long for another Raspberry Pi and it turns out I can join my own LAN game. Huh. Not sure if my puny Raspberry Pi Zero W can handle it though. Thank you for the clarification on
entityId.