#left_click_requirement dont work

1 messages · Page 1 of 1 (latest)

devout sequoia
#

the right/left_click_requirement don't work (It does not detect money and if you have less it does not take anything away from you.

neon wigeon
#

that's not the right format

devout sequoia
#

that's OK?

hot flume
#

yes

#

just remember click_requirement is for click_commands (not left_ and/or right_click_commands)

#

Also, general rule of thumb when asking for help with a config: Send a paste of the config, not a picture.

devout sequoia
#

'cascor':
material: diamond_helmet
slot: 10
display_name: '&cCasco: Protección 4'
lore:
- ' &8Click aqui para'
- ' &8Comprar esta parte'
- ' &7● &fPrecio: &6$25.000'
- ''
- ' &e¡Clic para comprar!'
left_click_requirement:
requirements:
1:
type: has money
amount: 25000
sucesss_commands:
- '[console] eco take %player_name% 25000'
- '[console] give %player_name% 310 1 name:&aCasco_Regular enchants: unbreaking:3, Protection:4'
- '[close]'
deny_commands:
- '[message] &7&l&elSurvival&6&lOP &f¡Necesitas &a$25.000 &fpara hacer esto!'
- '[close]'

#

I want to make it so that when you click left/right it gives you that item, but it doesn't seem to work

neon wigeon
#

instead of using success_commands in the requirement, use click_commands for the item directly, and rename left_click_requirement to just click_requirement so it affects right click as well

devout sequoia
# neon wigeon instead of using success_commands in the requirement, use `click_commands` for t...

items:
'cascor':
material: diamond_helmet
slot: 10
display_name: '&cCasco: Protección 4'
lore:
- ' &8Click aqui para'
- ' &8Comprar esta parte'
- ' &7● &fPrecio: &6$25.000'
- ''
- ' &e¡Clic para comprar!'
click_requirement:
requirements:
1:
type: has money
amount: 25000
click_commands:
- '[console] eco take %player_name% 25000'
- '[console] give %player_name% 310 1 name:&aCasco_Regular enchants: unbreaking:3, Protection:4'
- '[close]'
deny_commands:
- '[message] &7&l&elSurvival&6&lOP &f¡Necesitas &a$25.000 &fpara hacer esto!'
- '[close]'

#

but it still doesn't work

neon wigeon
#

click_commands should be outside of the requirements

#

at the same level as the click_requirement line

devout sequoia
#

'cascor': material: diamond_helmet slot: 10 display_name: '&cCasco: Protección 4' lore: - ' &8Click aqui para' - ' &8Comprar esta parte' - ' &7● &fPrecio: &6$25.000' - '' - ' &e¡Clic para comprar!' click_requirement: requirements: 1: type: has money amount: 25000 click_commands: - '[console] eco take %player_name% 25000' - '[console] give %player_name% 310 1 name:&aCasco_Regular enchants: unbreaking:3, Protection:4' - '[close]' deny_commands: - '[message] &7&l&elSurvival&6&lOP &f¡Necesitas &a$25.000 &fpara hacer esto!' - '[close]'

neon wigeon
#

only click commands, deny commands should stay within the requirement 😅

#

but otherwise that looks OK