How to create achievements triggered by vanilla things ?

Started by Yanis48 on

Topic category: Help with modding (Java Edition)

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create achievements triggered by vanilla things ?

Hi!

I'm creating a mod in 1.11.2 and I added 5 achievements. The problem is I don't know how to trigger these achievements, because they're about vanilla items and mobs.

The achievements are :

  • Killing an Evoker
  • Killing an Elder Guardian
  • Craft an EnderChest
  • Craft a Shulker Box
  • Pick up Elytra

If someone knows how to do that, thank you so much!

Last seen on 13:30, 23. Jul 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Codding. The only way.
Sun, 04/16/2017 - 10:01

Codding. The only way.

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hum... right
Sun, 04/16/2017 - 12:51

Hum... right

But what about the code itself ?

Last seen on 13:30, 23. Jul 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Hum... right
Sun, 04/16/2017 - 13:02

@#2 You can make an achievement, then in entity's code you need add code that would say

"Do 1 time(Only 1 Use), to get achievement"

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you @CAHEKa, but where
Sun, 04/16/2017 - 13:08

Thank you @CAHEKa, but where are vanilla entities and blocks code in MCreator ?
 

Last seen on 13:30, 23. Jul 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Thank you @CAHEKa, but where
Sun, 04/16/2017 - 13:12

@#3 Open code editor, and in search type entity or block name

Last seen on 13:30, 23. Jul 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Happy Easter! :D
Sun, 04/16/2017 - 13:12

Happy Easter! :D

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So sorry, but I find nothing
Sun, 04/16/2017 - 13:18

So sorry, but I find nothing in MCreator. I talk about vanilla code for elytra, shulker box, etc.

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Happy easter too :D
Sun, 04/16/2017 - 13:27

Happy easter too :D

Last seen on 13:30, 23. Jul 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:So sorry, but I find nothing
Sun, 04/16/2017 - 13:31

@#5 there is code for shulker box: BlockShulkerBox.java

Last seen on 13:30, 23. Jul 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and for Elytra: ItemElytra
Sun, 04/16/2017 - 13:31

and for Elytra: ItemElytra.java

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you :)
Sun, 04/16/2017 - 16:47

Thank you :)

Last seen on 22:31, 14. Mar 2020
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@CAHEKa I'm so sorry, but I
Mon, 04/17/2017 - 13:20

@CAHEKa I'm so sorry, but I don't know where I have to put the code and what is exactly the code. I tried several things but the recompilation doesn't work :/

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Today, three years later,…
Sat, 05/16/2020 - 14:23

Today, three years later, you can do this without coding. Hope you figure it out! :)