#Is it possible to make input: '%checkitem_mat:sculk,amt:63%' check 2 items?
1 messages ยท Page 1 of 1 (latest)
make two requirements
but how?
view_requirement:
requirements:
'requirement 1':
type: string equals
input: '%checkitem_mat:sculk,amt:63%'
output: 'yes'
'requirement 2':
type: string equals
input: '%checkitem_mat:iron_block,amt:63%'
output: 'yes'
It won't let me save the file, because there is an error
shouldn't
"Duplicated mapping key"
ah, two input ๐
i fixed that
Now whenever I click it, it doesn't do anything nor give me a error message as it's supposed to https://pastebin.com/xGve21cr
Can u give me something to copy and paste to?
'Confirm1':
material: LIME_STAINED_GLASS_PANE
slot: 4
display_name: '&aCONFIRM'
lore:
- "&7Click to convert"
left_click_requirement:
requirements: # just move these thing
'requirement 1': # to the right place
type: string equals #
input: '%checkitem_mat:sculk,amt:63%' #
output: 'yes' #
'requirement 2': #
type: string equals #
input: '%checkitem_mat:iron_block,amt:63%' #
output: 'yes' #
deny_commands: #
- '[message] &6Shop &8> &7You can not afford&f.' #
left_click_commands:
- '[console] clear %player_name% iron_block 63'
- '[console] clear %player_name% sculk 63'
- '[console] si give galacticingot 1 %player_name%'
- '[message] &6Shop &8> &fYou bought &aGalactic Ingot.'
@tacit igloo
Thanks, it worked ๐
np
It works, but the deny message doesn't show