How to create achievements triggered by vanilla things ?

Started by Yanis48 on Sun, 04/16/2017 - 09:55

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to create achievements triggered by vanilla things ?
Sun, 04/16/2017 - 09:55

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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

Thank you :)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 18:21, 24. Sep 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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! :)