Achievement

Started by InRaiYTS on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Oct 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Achievement

I'm trying to set up so that when a player has 4 different items in his inventory, he is given an achievement. However, it is not given. How to configure?

Active 2 weeks ago
Joined May 2022
Points:
1283

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1143
Use the 'custom trigger'…
Fri, 10/20/2023 - 19:46

Use the 'custom trigger' function where it asks for your achievement's trigger.

Then, create a separate procedure with the 'on player update tick' global trigger. Use an 'if' bracket with 'and' functions to check that each of your four items is in the player's inventory. If all four of these conditions are true, use the 'give achievement' function to give the player your achievement.

Active 6 months ago
Joined Oct 2023
Points:
189

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
It seems to have done, but…
Sat, 10/21/2023 - 12:22

It seems to have done, but when receiving items, the game crashes and does not allow to enter the world in subsequent attempts

Active 2 weeks ago
Joined May 2022
Points:
1283

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1143
It should look something…
Sat, 10/21/2023 - 19:07

It should look something like this. You do need to be careful running things on player update tick, as it's very easy to crash the game if you misplace something.

If you're worried about this, you could also just change the global trigger to 'when entity picks up item.' It wouldn't give the advancement if the items were transferred into the inventory via. a menu, but would still probably work in most cases.

Active 6 months ago
Joined Oct 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Even receiving an item, the…
Tue, 10/24/2023 - 16:41

Even receiving an item, the game crashes, I think it will be easier to remove this achievement

Active 2 weeks ago
Joined May 2022
Points:
1283

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1143
If this is the case, it’s…
Tue, 10/24/2023 - 16:43

If this is the case, it’s more likely that there’s something the item is doing that crashes the game, not the achievement. Nothing in the above procedure, or the ‘picks up item’ variant should really be able to do that. 
What specific error is this giving? And is the actual achievement procedure listed in the crash log as one of the issue sources?

Active 6 months ago
Joined Oct 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
There is nothing in the…
Tue, 10/24/2023 - 18:39

There is nothing in the objects themselves. I wanted to send crash-reports, but I don't understand how to get the file URL

Active 2 weeks ago
Joined May 2022
Points:
1283

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1143
If you look at the crash log…
Tue, 10/24/2023 - 20:24

If you look at the crash log, the actual 'error' should be in light red, and it should be followed by a list of procedures that aren't working. (This is just in the 'console' tab of your workspace, and appears every time the client is run.) If it just says 'memory overload,' for example, then something's looping endlessly without a stop condition. More likely, there's a missing dependency somewhere- something might be using 'nearest entity of type,' but not finding an entity, and then trying to run a procedure on nothing. Just a general idea of what the problem is would be helpful!

Active 6 months ago
Joined Oct 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
if I understood correctly…
Wed, 10/25/2023 - 16:20

if I understood correctly where to look, it says "BUILD FAILED"

 

Active 2 days ago
Joined Feb 2018
Points:
2002

User statistics:

  • Modifications: 1
  • Forum topics: 166
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 766
@InRayYTS Can you screenshot…
Wed, 10/25/2023 - 16:47

@InRayYTS

Can you screenshot your console about the error message you get?

Active 6 months ago
Joined Oct 2023
Points:
189

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
I don't really understand…
Wed, 10/25/2023 - 20:04

I don't really understand how I can send a screenshot here

 

 

Active 2 weeks ago
Joined May 2022
Points:
1283

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1143
You need to upload the file…
Wed, 10/25/2023 - 20:10

You need to upload the file somewhere else, (mediafire, imigur, wix, etc;), and then copy the image URL and link it here. MCreator doesn't store the files itself.

Active 2 weeks ago
Joined May 2022
Points:
1283

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1143
...Haven't really seen…
Thu, 10/26/2023 - 16:11

...Haven't really seen something like this before. It looks like something about the 'Heavenly Lord' procedure is causing problems? Could you maybe upload a screenshot of the procedure itself? If you click any of the links there, it will take you to the specific lines in the code that are causing issues, though it looks like it is specifically the advancement that's the source. (Sorry, this probably isn't very helpful.)