-
How can I use mineflayer-viewer in python? |
Beta Was this translation helpful? Give feedback.
Answered by
themg95
Feb 27, 2023
Replies: 1 comment 2 replies
-
I asked this to bing AI and it gave me this working answer: from javascript import require
mineflayer = require('mineflayer')
viewer = require('prismarine-viewer').mineflayer
bot = mineflayer.createBot({
'host': 'localhost',
'username': 'python'
})
@On(bot, 'spawn')
def onSpawn(*args):
viewer(bot, { 'port': 3000 }) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
themg95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I asked this to bing AI and it gave me this working answer: