Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full tutorial on how to install #558

Closed
SuperOP535 opened this issue Jul 10, 2017 · 17 comments
Closed

Full tutorial on how to install #558

SuperOP535 opened this issue Jul 10, 2017 · 17 comments

Comments

@SuperOP535
Copy link
Contributor

I cannot find any good tutorials on how to Install/Run MineFlayer I've installed Nodejs v8.1.3 and I ran npm install mineflayer... but what now?? os: windows 10

@plexigras
Copy link
Member

plexigras commented Jul 10, 2017

run node pathToTheScript.js. to run an example run node node_modules/mineflayer/examples/echo.js

@SuperOP535
Copy link
Contributor Author

ok thx I will try now!

@SuperOP535
Copy link
Contributor Author

It says stuff about URSA where can I get it @plexigras

@SuperOP535
Copy link
Contributor Author

it just joins and when I chat it does nothing then it leaves

@roblabla
Copy link
Member

URSA is an optional dependency, you can safely ignore this issue.

Mineflayer is a library. You need to write scripts that use it. https://github.com/PrismarineJS/mineflayer/blob/master/examples/echo.js this is the script plexigras is making you run. All it does is connect, and repeat everything you say. If it isn't working, you need to tell us what server you're using it with (address or software + version used)

@SuperOP535
Copy link
Contributor Author

127.0.0.1 50324 (lan) mc 1.11.2

@SuperOP535
Copy link
Contributor Author

Do you know how I can install URSA because npm install ursa gives lots of errors

@SuperOP535
Copy link
Contributor Author

And what node.js version is recommended for MineFlayer?

@rom1504
Copy link
Member

rom1504 commented Jul 10, 2017

put "version":"1.12" in the options in echo.js

#551

@roblabla
Copy link
Member

roblabla commented Jul 10, 2017

@rom1504 he's using mc 1.11.2. He needs to put "version":"1.11" no ?

@SuperOP535 You should at least use last nodejs LTS (currently 6.11)

URSA doesn't work on windows (well, it does, but it's a real pain in the ass to install). You don't really need it, so you probably shouldn't bother with it. It just makes auth faster, which is mostly useful for servers. Mineflayer being for writing clients, it's not too useful.

@rom1504
Copy link
Member

rom1504 commented Jul 10, 2017

@roblabla oh yes indeed. Autoversion being broken and all...

@SuperOP535
Copy link
Contributor Author

bild
Is this the right place to have the folder in?

@rom1504
Copy link
Member

rom1504 commented Jul 10, 2017 via email

@SuperOP535
Copy link
Contributor Author

Ok but is that right place for the folder

@rom1504
Copy link
Member

rom1504 commented Jul 11, 2017

No, you don't need to globally install mineflayer.
Just run npm install --save mineflayer in your project directory.

@SuperOP535
Copy link
Contributor Author

I did cd to the folder and then the command you sent but it spammed me errors

@SuperOP535
Copy link
Contributor Author

I finally got it to work, the problem was that I had 3 node_modules folders but now I found the right one and the modifications save. thx for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants