#Playtime Rewards Gui Help

1 messages · Page 1 of 1 (latest)

west path
#

Hello, I want to create a gui with deluxe menus where I can only click on the item when I have reached the XX playing time. Could someone tell me the best way to do this?

ivory tangle
#

do you know how to use placeholder ?

#
# download 'statistic' expansion
'playtime reward':
  material: clock
  display_name: 'Playertime reward'
  slot: 0
  lore:
    - 'Your playtine: %staitstic_hours_played% hours'
    - 'Require: 1 hour'
  click_requirement:
    requirements:
      '1 hours':
        type: '>='
        input: '%statistic_hours_played%
        outputt: 1
      #'1h 30m':
      #  type: '>='
      #  input: '%statistic_minutes_played%
      #  outputt: 90
  click_commands:
    - '[close]'
    - '[message] You claimed [1 hour playtime] reward'