question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear documentation on `Minecraft.camera.setFollow(entityId)`

See original GitHub issue

The 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Bigjango13commented, Jul 6, 2022

You see, I only have one Raspberry Pi as of now, so I can’t.

Can’t you launch Minecraft Pi more than once and join on LAN?

I tried out Minecraft.camera.setFollow(entityId) and entityId refers 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 by entityId.

0reactions
xboxone08commented, Jul 6, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found