Variable Menu
# How to Determine if a Button is Clickable Based on Variables
- Main Nodes
conditions
conditionNotMet 1.7.1+ conditionsHide — Button only shows when condition is met, same usage as conditions 1.9.2+
'conditions':
index: 29
name: ' &8[&cVariable Conditions&8]'
material: ARROW
lore:
- "&f- &7Variable conditions support 6 symbols"
- "&f- &7 = ; !=; >; <; >=; <="
- "&f- &7 = ; !=; no restrictions"
- "&f- &7>; <; >=; <= must be numbers"
- "&f- &7Player name: &a%player_name%"
isEnchant: false
custom-model-data: 0
# Custom conditions
conditions:
- '%player_name% = Rice'
- '%player_money% > 100'
# Custom reminder when click condition is not met
conditionNotMet: "Condition not met, reason: not Rice"
commands:
- '[message] say You clicked this button'