#how can I show another item in the same slot if it does not have a certain requirement?

1 messages · Page 1 of 1 (latest)

blazing holly
#

how can I show another item in the same slot if it does not have a certain requirement?

iron shale
#

With priorities and view requirements.

#

Check the wiki for examples

vocal magnet
#

@iron shale

iron shale
#

Ping me and provide zero context, nice

vocal magnet
#

Sorry bro, could you help me with something?

blazing holly
#
  'iron_tool_off':
    material: RED_STAINED_GLASS_PANE
    slot: 15
    display_name: "&f&lhoe"
    lore:
    - "&aYou can buy it!"
    priority: 4
    view_requirement:
      minimum_requirements: 1
      requirements:
        balance:
          type: "!has money"
          amount: 200000000
          output: "yes"
        level:
          type: javascript
          expression: "%core_player_level% < 60"
          output: "yes"

why is it that if I put %core_player_level% < 60 it opens the gui and if I put %core_player_level% > 60 it does not open it for me?

#

@vocal magnet @iron shale

iron shale
#

Dont ping people. They respond when appropriate for them

blazing holly
iron shale
#

I would personally recommend the use of the >= requirement type

blazing holly
#

ok..

iron shale
#

We’ll replace “yes” with 60

#

You also don’t need output: yes for your has money requirement