#Is it possible to make input: '%checkitem_mat:sculk,amt:63%' check 2 items?

1 messages ยท Page 1 of 1 (latest)

tacit igloo
#

I want it to check for Iron_block and Sculk

clever basin
#

make two requirements

tacit igloo
clever basin
#
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'
tacit igloo
tacit igloo
clever basin
#

ah, two input ๐Ÿ˜†

clever basin
tacit igloo
clever basin
#

why you just copy and paste @@

#

its just a example

tacit igloo
clever basin
#
  '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

tacit igloo
clever basin
#

np

tacit igloo