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

Started by Onyx12133 on

Topic category: Help with modding (Java Edition)

Last seen on 00:48, 15. Nov 2021
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
Last seen on 03:32, 22. Jul 2024
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

Last seen on 17:02, 14. Sep 2024
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...