#display other material by condition
1 messages · Page 1 of 1 (latest)
use priorities
can you provide me example?
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>'
thank you!
No worries Have Fun Mate
@rapid flower
Linkode is the useful pastebin!
for me its not working
what im doing wrong
show me ur config
.
why dont you just make a new file instead of editing old one
its hard to read this way
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 уровень'```
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
its disappeared
what?
Instead of data 1 trying put data 0
not helped
what is this two items ?
im not uderstand your language
what item you want to display, what perm you currunt have
what is your server version
1.20.1
? what. read the naterial, its in english
or wdym
yeah, i see the material
i want to display red glass pane if i dont have permission, if i have permission i want to display green glass pane
simple
if i set data 1 its not helped
so remove red view_requirement
data is not necessary for version 1.13+