#Bug with view requirement

1 messages · Page 1 of 1 (latest)

restive crater
#

Hey, is someone know why "crocodile_1_no" is not displayed, even without permission and with meta? However, if I have permission, “crocodile_1_yes” is displayed.

"crocodile_1_no":
    material: RED_DYE
    lore: 
      - "Récompense crocodile 1"
    slot: 28
    view_requirement:
      requirements:
        crocodile:
          type: "has meta"
          key: "CROCODILE"
          meta_type: BOOLEAN
          value: true
        not_claimed:
          type: "!has permission"
          permission: "succes.safari.crocodile.1"
    click_requirement:
      requirements:
        mobs_killed:
          type: ">="
          input: "%papi_safari_crocodile%"
          output: 1
      deny_commands:
        - "[minimessage] <red>Vous n'avez pas les conditions remplies pour recevoir la récompense"
      success_commands:
        - "[givepermission] succes.safari.crocodile.1"
        - "[refresh]"        
  "crocodile_1_yes":
    material: GREEN_DYE
    lore: 
      - "Récompense crocodile 1 claim"
    slot: 28
    view_requirement:
      requirements:
        crocodile:
          type: "has meta"
          key: "CROCODILE"
          meta_type: BOOLEAN
          value: true
        claimed:
          type: "has permission"
          permission: "succes.safari.crocodile.1"
    click_commands:
      - "[minimessage] <red>Vous avez déjà reçu votre récompense"
random tiger
restive crater
#

Both have a view-requirment

random tiger
#

Well which one do you want to show first?

#

the "crocodile_1_no"?

restive crater
#

What I'd like is for them both to be hidden by default, and for clicking on an item to display them (crocodile_1_no by default, and crocodile_1_yes if you have permission)

random tiger
#

Clicking on an item in the GUI? If so- what item would they be clicking

#

Either way- In this case I would suggest adding Priority: 5 to the crocodile_1_no, and then adding a Priority lower than 5 to the crocodile_1_yes item.

#

It can be any numbers, just make sure the "no" item has a higher number set