PrismarineJS/prismarine-viewer


The issue has been closed
Unable to create mineflayer viewer with special arguments in Python #233
SpacePython12 posted onGitHub
When I try to initialize the mineflayer viewer through Python, it requires two arguments, the bot and the options. Since Python doesn't have a "primitive value type" (idk, I'm new to this), the class is returned as null.
(Of course I used Viewer = require("prismarine-viewer").mineflayer
.)
I tried self.viewer = Viewer(self.bot, firstPerson=True)
,
and self.viewer = Viewer(self.bot, {firstPerson: True})
,
and also self.viewer = Viewer(self.bot, "{ firstPerson: true }")
Am I missing something?