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

[Idea] better gathering #14

Open
amirparsadd opened this issue Dec 19, 2022 · 3 comments
Open

[Idea] better gathering #14

amirparsadd opened this issue Dec 19, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@amirparsadd
Copy link

When i do mine potato 1 100 it floods the console so i have an idea:
Instead of repeating a message 100 times, it calculates the time for gathering 100 of any item, then while its gathering it just shows a progress bar that is like this:

Gathering : [■■■□□□] + xp | time left :

And it doesnt spam the progress bar, it just changes it in one line

@peter-hunt
Copy link
Owner

Good idea! I agree with you, and yes, it would be much easier to scroll back for info if it's like that. Unfortunately, I have yet to find a library that shows a progress bar like that. But I will look for a clear buffer on the line print later or print the configurable progress bar display fractions to make it!

@peter-hunt peter-hunt added the enhancement New feature or request label Dec 24, 2022
@wendellmeset
Copy link

@peter-hunt
may i suggest this?
https://github.com/tqdm/tqdm

It even has a built in function that calculates time of a for loop and displays the progress bar accordingly. It also is very customizable!

@peter-hunt
Copy link
Owner

That looks like a perfect library for the better gathering system! Thank you for that! I'll add this some time soon!

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

No branches or pull requests

3 participants