#requirement comparator doesnt work

1 messages · Page 1 of 1 (latest)

worthy glen
#
  '1-yes':
    material: ORANGE_CANDLE
    slot: 10
    update: true
    display_name: '&#70e510Milestone &#70e510&lI &8[&725,000 Earnings&8]'
    priority: 2
    view_requirement:
      requirements:
        check-level:
          type: '>='
          input: '%minegens_statistics_earnings%'
          output: '25000'
    lore:
    - '&8Interactive Item'
    - ''
    - '&7You will get rewards depending on how'
    - '&7much time you earn on this server.'
    - ''
    - ' &8◊ &fEarnings: &#70e510%minegens_statistics_earnings%'
    - ''
    - ' &#70e510→ Click to access get rewards'
    left_click_commands:
    - '[sound] ENTITY_PLAYER_LEVELUP'
    - '[console] eco give %player_name% 2000'
    - '[console] crates key give %player_name% mysterys 3'
    - '[console] gens addmax %player_name% 2'
    - '[console] lp user %player_name% permission set milestonetycoon.satu'
    - '[console] sendtitle %player_name% <#70e510>Successfully; &7You''ve collect a Milestone reward'
    - '[close]'```
#

when check on papi parse

alpine berry
timid hedge
#

Always send both parts

#

We can't tell from just 1 (in most cases)

worthy glen
#
    material: RED_CANDLE
    slot: 10
    update: true
    display_name: '&#70e510Milestone &#70e510&lI &8[&725,000 Earnings&8]'
    priority: 3
    lore:
    - '&8Interactive Item'
    - ''
    - '&7You will get rewards depending on how'
    - '&7much time you earn on this server.'
    - ''
    - ' &8◊ &fEarnings: &#70e510%minegens_statistics_earnings%'
    - ''
    - ' &#d92625→ You haven''t met the requirements'
    left_click_commands:
    - '[sound] ENTITY_VILLAGER_NO'
    - '[console] sendtitle %player_name% <#d92625>Access Denied; &7You haven''t met the requirements'
    - '[close]'

  '1-claimed':
    material: LIME_CANDLE
    slot: 10
    update: true
    display_name: '&#70e510Milestone &#70e510&lI &8[&725,000 Earnings&8] &7'
    priority: 1
    view_requirement:
      requirements:
        check-level:
          type: has permission
          permission: 'milestonetycoon.satu'
    lore:
    - '&8Interactive Item'
    - ''
    - '&7You will get rewards depending on how'
    - '&7much time you earn on this server.'
    - ''
    - ' &8◊ &fEarnings: &#70e510%minegens_statistics_earnings%'
    - ''
    - ' &#70e510→ Already claimed this reward'
    left_click_commands:
    - '[sound] BLOCK_ANVIL_LAND'```
worthy glen
#

anyone?

nimble obsidian
#

the value might be rounded to like 25k and thats why it doesnt check it properly

#

💀 oh u litteraly did a pai parse already. sorry just woke up

nimble obsidian
#

so thats a string, not an int value

#

you need a placeholder that would return it as 71597

worthy glen
#

this is the part that is responsible on the placeholder

worthy glen
timid hedge
#

Do one thing, use this command and tell me the output:
/papi parse me %math_0_{minegens_statistics_earnings}%

#

And tell me what it shows

nimble obsidian
worthy glen
#

thanks