How to create achievements triggered by vanilla things ?

Started by Yanis48 on

Topic category: Help with Minecraft modding (Java Edition)

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!

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.

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 ?

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"

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 ?
 

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

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

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.

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

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

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

Joined Sep 2015
Points:

User statistics:

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

Thank you :)

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 :/

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! :)