Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Ideas for new categories #153

Open
Platinteufel opened this issue Mar 23, 2017 · 32 comments
Open

Ideas for new categories #153

Platinteufel opened this issue Mar 23, 2017 · 32 comments
Labels
enhancement Also known as new features. good first issue Ideal for first time contributors! help wanted Contributions welcome!

Comments

@Platinteufel
Copy link
Contributor

Platinteufel commented Mar 23, 2017

Hey PyvesB,

I had some ideas for new categories in future versions today. A lot of them are official Minecraft statistics.
Would be awesome if you could give me feedback and tell me if you like some of them. ;-)

  • Animals bred (Breeder): The number of times the player bred two mobs. Done.
  • Distance climbed (Tarzan): The total distance traveled up ladders or vines.
  • Distance crouched (Ninja): The total distance walked while sneaking. Done.
  • Distance dove or swum (Dolphin): The total distance you have walked underwater or swum. Wading through water also increases this number. It does not include vertical distance from bouncing in water. Not really doable. The isSwimming method also takes sprint-swimming into account, not any other water movement.
  • Plants potted (Gardener): The number of plants potted onto flower pots. (Cooldown!)
  • Zombie villager cured (Doctor): The total number of zombie villager the player cured.
  • Mobs named: The total number of mobs the player named by a nametag.
  • Sheeps dyed: The total number of sheeps the player dyed.

Cheers ;-)

@PyvesB
Copy link
Owner

PyvesB commented Mar 24, 2017

Hello Platinteufel,

I do like most of the category ideas! I have simplified large parts of the code recently and will include Wiki instructions so that other developers can easily add new categories to the plugin with only moderate programming required. ;-)

Cheers,

Pyves

@PyvesB PyvesB added the enhancement Also known as new features. label Mar 24, 2017
@Platinteufel
Copy link
Contributor Author

Sounds good! But does that mean you won't add more categories from now on?

@PyvesB
Copy link
Owner

PyvesB commented Mar 24, 2017

Dunno. I've added so many categories over the years, it isn't as instructive or as fun as it used to be for me. Adding them would probably be more beneficial to other developers. 😉

@Platinteufel
Copy link
Contributor Author

Okay, that's understandable. Maybe you could pick one category that you like most, implement it for the next big release and turn down the others. I've just noted them while playing a few hours survival again.
Thank you for your feedback! :-)

@PyvesB PyvesB added the help wanted Contributions welcome! label Nov 5, 2017
@JohOply
Copy link

JohOply commented Dec 5, 2017

Some ideas:

  • Mob build/spawning achievement (Wither, Iron and snow golem)
  • Killed by achievement (reverse of kill achievement)
  • Playtime in a particular world achievement

@PyvesB PyvesB added the good first issue Ideal for first time contributors! label Feb 25, 2018
@enterih
Copy link
Contributor

enterih commented Oct 8, 2018

Maybe more AACH with other Plugins like PocketGames or Jobs Reborn Done.
With ChestShop (Earn Money with Shops) will be also a great idea.
How is the idea with Achievements for survival in a Arena from CoreArena?

Oh this idea will also great:
Achievements for MyPet !

@aurel85
Copy link

aurel85 commented Mar 24, 2019

Hi,

Many interesting ideas here, are any additions of these categories planned in the near future ?
And a new idea of achievement :

  • Thrown tridents

@PyvesB
Copy link
Owner

PyvesB commented Mar 26, 2019

I flagged the issue as "good first issue" as it's something new contributors to the project can easily work on. There's even some guidance on how to implement new categories in the Wiki, anyone can feel free to give it a go. 😉

@PyvesB
Copy link
Owner

PyvesB commented May 6, 2019

Coming soon, new achievement category:

TargetsShot:
  villager:
    10:
      Goal: Throw things at villagers.
      Message: You lapidated villagers 10 times.
      Name: targetsshot_10_villager
      DisplayName: The Stoner
  glass:
    100:
      Goal: Try to break granny's windows.
      Message: You shot 100 projectiles at glass blocks!
      Name: targetsshot_100_glass
      DisplayName: Window Breaker

@Cloman
Copy link

Cloman commented Aug 2, 2019

Hi,
Would it also be a idea a category hitting mobs/players/blocks with bare hands.
Would be funny to make a achievement that players need to hit a creeper bare hands for some amount of times.

@PyvesB
Copy link
Owner

PyvesB commented Oct 4, 2019

It's Hacktoberfest! Feel free to submit contributions for new categories, it's an easy way to work towards your contribution count! 🎉

@aurel85
Copy link

aurel85 commented Oct 9, 2019

Hi,

With 1.14 we can imagine a lot of new achievements :

  • Make banners (with loom)
  • Disenchant tools (with grindstone)
  • Use a composter
  • Copy a map (with cartography table)
  • Raids won Done.
  • Catch fish with a bucket
  • Number of books read in a lectern

@supertassu
Copy link
Contributor

I need a few Hacktoberfest PRs more so I'll work on some later this week.

@PyvesB
Copy link
Owner

PyvesB commented Oct 14, 2019

Here's a test version containing @supertassu's new RaisWon category! There are also changes to how the classes handling statistic increases are designed internally, let me know if you notice anything odd. 😉
AdvancedAchievements.zip

@BillZhucn
Copy link
Contributor

Hi there, I also have some ideas about the new categories, like:

  • Player Death Event - things like drowned, fell the momentum ...... and count them. (be more specific)
  • Sleep Count - like doesn't sleep for 100 days .....
  • Multi-action - like jump into the lava and then jump into water (This looks like the Mojang's achievement)

@PyvesB
Copy link
Owner

PyvesB commented Sep 27, 2020

Upcoming new category: DistanceSneaking! 🎉

I also implemented DistanceSwimming but later scrapped it. Spigot's isSwimming method only returns true when the player is sprint-swimming, any other movement in the water would not be taken into account. This would be a very confusing category for users as the statistic would not increase if they're swimming at a normal pace in the water for example. Maybe someone could raise a Spigot improvement request about this? Another annoyance is that the aforementioned method was only added recently in Minecraft 1.13: not everyone would benefit from such a category and it made the code slightly more complicated as Advanced Achievements maintains compatibility all the way back to Minecraft 1.7.

@aurel85
Copy link

aurel85 commented Sep 27, 2020

Good news !
For swimming would it be so bad if it involves swimming while sprinting ? Personally that would not bother me, just it will be necessary that I specify it in the achievement.

@PyvesB
Copy link
Owner

PyvesB commented Oct 3, 2020

Might revisit swimming at some point, for now I think there's probably more interesting stuff to implement. For example the Places category now supports custom display names, which effectively adds support to a wide range of third-party plugins! You can keep track of player heads and that kind of stuff! 🍾

@ghost
Copy link

ghost commented Oct 24, 2020

Can someone help me to add Reborn job support ??
I'm trying to add with this: https://github.com/PyvesB/advanced-achievements/wiki/Adding-new-categories
But this is not up to date ...
and I don't know where I can find the necessary listeners ^^
If someone could help me I would take care of making the additions to the plugins :)
if that can help: https: //github.com/Zrips/Jobs
and if that is not enough I can ask the developer directly ^^

@PyvesB
Copy link
Owner

PyvesB commented Oct 24, 2020

But this is not up to date ...

What makes you think it's not up-to-date? It is as far as I can tell, is there qnything I can clarify maybe?

and I don't know where I can find the necessary listeners ^^

Advanced Achievements' existing listeners are in this folder: https://github.com/PyvesB/advanced-achievements/tree/master/advanced-achievements-plugin/src/main/java/com/hm/achievement/listener/statistics

By the way, someone added Job Reborn support back in 2019, but never contributed support back to the main repository. But their code is still available, so that may be a starting point: https://github.com/fabianwennink/AdvancedAchievements 😉

@ghost
Copy link

ghost commented Oct 25, 2020

Not up to date :
Add a new listener class to the com.hm.achievement.listener.statistics package. DropsListener.java is a very simple example you can use as a reference
Now > Broke down listeners into one class per achievement category ^^

and ty for this i check this and if i need help, I say to you =D

Edit :

https://github.com/fabianwennink/AdvancedAchievements/blob/master/advanced-achievements-plugin/src/main/java/com/hm/achievement/listener/statistics/JobsRebornListener.java

This is the only file that contains jobs reborn in it, is there anything else I need? I've seen that I need to do this too:

Add a new binding method in ReloadableModule.java, similar to the existing ones.
Add a new default permission value in plugin.yml (achievement.count. followed by the category name in lower case). This file is situated in the resources folder.

So if the listener is good I can test it and use it? ^^

@PyvesB
Copy link
Owner

PyvesB commented Oct 25, 2020

Not up to date :
Add a new listener class to the com.hm.achievement.listener.statistics package. DropsListener.java is a very simple example you can use as a reference
Now > Broke down listeners into one class per achievement category ^^

Well yeah, that's why it's indicated that you need a new class! :D

I'll try to reword at some point.

https://github.com/fabianwennink/AdvancedAchievements/blob/master/advanced-achievements-plugin/src/main/java/com/hm/achievement/listener/statistics/JobsRebornListener.java

This is the only file that contains jobs reborn in it, is there anything else I need?

You'll probably need to modify it a tiny bit so that it's compatible with new versions of the plugin, but nothing major: take a look at BreedingListener.java, you'll notice that the category name has moved for example. You'll need to add the corresponding entry in MultipleAchievements.java, as well as the three last bullet points listed in https://github.com/PyvesB/advanced-achievements/wiki/Adding-new-categories

An additional thing you need for Jobs Reborn is the Maven dependency setup, as described here:

  • in the root pom.xml, add the following dependency, for example under the placeholderapi one:
    <dependency>
        <groupId>com.github.Zrips</groupId>
        <artifactId>Jobs</artifactId>
        <version>4.16.2</version>
        <scope>provided</scope>
    </dependency>
  • in advanced-achievements-plugin/pom.xml, add the following dependency, for example under the placeholderapi one:
    <dependency>
        <groupId>com.github.Zrips</groupId>
        <artifactId>Jobs</artifactId>
    </dependency>

@ghost
Copy link

ghost commented Oct 27, 2020

I'm sorry I tried to make proposals to add everything but I screwed up somewhere and I know absolutely nothing about java ^^...
Could you explain me or did I miss something ? Thanks in advance =D
If needed : n54b#83 (discord ^^)

@PyvesB
Copy link
Owner

PyvesB commented Oct 27, 2020

You made one pull request for each file, that's a bit annoying but it's something we can work with.

Things are probably not working because JobsRebornListener is missing it extension (.java) and you have to add the new entry in MultipleAchievements.java. :)

@ghost
Copy link

ghost commented Oct 28, 2020

I'm really sorry for all these requests x) I'm really not getting away with github >_<.
I'm stuck here and I don't know what to do to make it work. I've tried everything but I've got some mistakes I can't solve :'( Could you help me Oh great and powerful PyvesB <3

@PyvesB
Copy link
Owner

PyvesB commented Oct 28, 2020

Thanks for the efforts, I'll have a look tomorrow. I'll probably try to squash all pull requests into one, so don't panic if you see things getting closed. Could you please double check that "Allow edits from maintainers" is ticked in #874?

There's probably some decent documentation to use GitHub, I'll see if I can dish something out for you. :)

@ghost
Copy link

ghost commented Oct 28, 2020

Thanks a lot ^^, I just checked and yes the box is well checked at home :)

@PyvesB
Copy link
Owner

PyvesB commented Oct 31, 2020

New JobsReborn category released, thanks for the help @n54b ! 🍾

@ghost
Copy link

ghost commented Oct 31, 2020

Especially thank you to you for the resolution of the concerns: D

@farum12
Copy link

farum12 commented Mar 30, 2021

Would love Player Death Event achievement category :)

@PyvesB
Copy link
Owner

PyvesB commented Oct 15, 2021

New achievement categories: BooksEdited and EffectsHeld (feature request from #853)! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Also known as new features. good first issue Ideal for first time contributors! help wanted Contributions welcome!
Projects
None yet
Development

No branches or pull requests

9 participants