-
Notifications
You must be signed in to change notification settings - Fork 20
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
HCCore first pull request #176
base: master
Are you sure you want to change the base?
Conversation
Changed the command to make you active command to be /notafk instead of /afk
not done
NEW advancement: Master mob Slayer Achieved by killing Each hostile mob 10 times
Nerw advancement mine 10 pieces of obsidian by hand
no sleep gotten by not sleeping for a full week
Hi, thanks for the pr
|
YAY!!!!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good, just needs some slight changes
src/main/java/com/hackclub/hccore/playerMessages/afk/RunAFKMessage.java
Outdated
Show resolved
Hide resolved
updated to refer to the fixes that were made by 456dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the advancements!! In order to get them to show up in the advancements panel, you'll have to add them in the registerAdvancements()
method of HCCorePlugin.java
.announceChat() | ||
.showToast() | ||
.description("Kill EVERY hostile Mob 10 times"); | ||
static final int maxProgression = 640; // 10 times for each of the 64 hostile mobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this mean that I could just kill 640 endermen in a farm and get the advancement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont know
i thought it meant that you need to kill 10 of each hostile mob to get the advancement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I haven't tested it, but from what I see, it's not tracking how many of each mob you've killed, just how many mobs in total
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polypixeldev i dont know how to make it count 10 of each mob death tho...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is a bit of a tough one to do. The only way I can think of would be to add a map to the PlayerData class which stores how many of each mob they've killed, and update it accordingly in the EntityDeathEvent handler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't really need a map as player stats are already stored
I wanted to get into java mod/plugin making and so i decided to start simple by creating some new advancements
i mostly copied the code from other advancements and used bing when needed for help
i hope they are cool lol