(SOLVED) How to make a button display when a player gets an advancement

Started by Onyx12133 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) How to make a button display when a player gets an advancement
Tue, 10/26/2021 - 22:31 (edited)

I'm trying to make a guidebook that has buttons to open GUIs for items. I want the buttons to be invisible until the player has gotten a specific achievement, how could I go about doing this?

Edited by Onyx12133 on Tue, 10/26/2021 - 22:31
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on the button condition if…
Tue, 10/26/2021 - 21:58

on the button condition

if event target entity has achievement unlocked: ADV

 do return true

return false

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello from 2024, but could…
Sun, 05/26/2024 - 23:22

Hello from 2024, but could someone tell me how to do that now-a-days? I tried the code from RexCerv but it's just not working...

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's so sad, nothing is…
Sat, 11/02/2024 - 17:08

It's so sad, nothing is working for me:

I also need to do button display condition, but just nothing works, I tested nbts, guistate, even global variables. Other elements like label tooltip and image works great but buttons and imagebuttons  display condition just doesn't work :(