Started by
Yanis48
on
Topic category: Help with Minecraft modding (Java Edition)
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!
Codding. The only way.
Hum... right
But what about the code itself ?
@#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"
Thank you @CAHEKa, but where are vanilla entities and blocks code in MCreator ?
@#3 Open code editor, and in search type entity or block name
Happy Easter! :D
So sorry, but I find nothing in MCreator. I talk about vanilla code for elytra, shulker box, etc.
Happy easter too :D
@#5 there is code for shulker box: BlockShulkerBox.java
and for Elytra: ItemElytra.java
Thank you :)
@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 :/
Today, three years later, you can do this without coding. Hope you figure it out! :)