#display other material by condition

1 messages · Page 1 of 1 (latest)

buoyant verge
#

hello, i have a levels gui, i need to display the green glass pane instead of yellow if level is completed (player have permission) how to do that?

rapid flower
#

use priorities

buoyant verge
rapid flower
#

sure

#

let me check i think they got one on there website

#

Like this items: 'cooldown': material: ORANGE_CONCRETE slot: 13 priority: 1 update: true view_requirement: requirements: permission: type: has permission permission: essentials.kits.example available: type: string equals ignorecase input: '%essentials_kit_is_available_example%' output: 'no' display_name: ' ' lore: - "&8• &bKit: &7Example" - "&8• &bStatus: &7On Cooldown" - "&8• &bAvailable In: &7%essentials_kit_time_until_available_example%" - "" left_click_commands: - "[refresh]" right_click_commands: - "[refresh]" 'available': material: LIME_CONCRETE slot: 13 priority: 2 update: true view_requirement: requirements: permission: type: has permission permission: essentials.kits.example available: type: string equals ignorecase input: '%essentials_kit_is_available_example%' output: 'yes' display_name: ' ' lore: - "&8• &bKit: &7Example" - "&8• &bStatus: &7Available" - "" - "&8» &b&nClick to Claim" - '' left_click_commands: - '[player] essentials:kit example' - '[refresh]' - '[refresh]<delay=100>' right_click_commands: - '[player] essentials:kit example' - '[refresh]' - '[refresh]<delay=100>'

buoyant verge
#

thank you!

rapid flower
#

No worries Have Fun Mate

buoyant verge
#

for me its not working

#

what im doing wrong

rapid flower
rapid flower
#

its hard to read this way

buoyant verge
# rapid flower why dont you just make a new file instead of editing old one
        material: GREEN_STAINED_GLASS_PANE
        data: 1
        slot: 10
        priority: 1
        view_requirement:
           requirements:
               permission:
               type: has permission
               permission: bending.ability.eartharmor
        display_name: '&f&lУровень 1'
        lore:
            - '&e&l[ОТКРЫТО]'
            - '&e&lОткрывает способности:'
            - '&e&lEarthArmor'
            - '&a&lЦена 5000$ и 10 уровень'


'level1_closed':
        material: RED_STAINED_GLASS_PANE
        data: 1
        slot: 10
        priority: 2
        view_requirement:
           requirements:
               permission:
               type: has permission
               permission: bending.ability.eartharmor
        display_name: '&f&lУровень 1'
        lore:
            - '&e&l[ЗАКРЫТО]'
            - '&e&lОткрывает способности:'
            - '&e&lEarthArmor'
            - '&a&lЦена 5000$ и 10 уровень'```
rapid flower
#

hmm try using this

  material: GREEN_STAINED_GLASS_PANE
  data: 1
  slot: 10
  priority: 1
  view_requirement:
    requirements:
      permission:
        type: has permission
        permission: bending.ability.eartharmor
  display_name: '&f&lУровень 1'
  lore:
    - '&e&l[ОТКРЫТО]'
    - '&e&lОткрывает способности:'
    - '&e&lEarthArmor'
    - '&a&lЦена 5000$ и 10 уровень'

'level1_closed':
  material: RED_STAINED_GLASS_PANE
  data: 1
  slot: 10
  priority: 2
  view_requirement:
    requirements:
      permission:
        type: has permission
        permission: bending.ability.eartharmor
  display_name: '&f&lУровень 1'
  lore:
    - '&e&l[ЗАКРЫТО]'
    - '&e&lОткрывает способности:'
    - '&e&lEarthArmor'
    - '&a&lЦена 5000$ и 10 уровень'```
#

according to validator your mapping was wrong

#

so i fixedit

#

@buoyant verge

buoyant verge
rapid flower
#

what?

buoyant verge
rapid flower
buoyant verge
supple ocean
supple ocean
rapid flower
#

Same

#

But I can say that it's glass pane

supple ocean
#

what item you want to display, what perm you currunt have

#

what is your server version

buoyant verge
buoyant verge
#

or wdym

supple ocean
#

yeah, i see the material

buoyant verge
#

simple

supple ocean
buoyant verge
supple ocean
supple ocean