#DeluxeMenu Conditions

1 messages · Page 1 of 1 (latest)

topaz breach
#

Hello, I have been working on a banking system using DM and CheckItem Expasion with Oraxen items.

After a bunch of testing I believe my conditions in DM aren't triggering when the player selects an option. Does anyone have experience with conditions and can help?

Here's the start of my bank.yml file with the conditions

menu_title: 'Alfheim Bank - Deposit'
size: 18
open_command: bank_deposit
items:
  'Deposit Info':
    material: 'basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTY0MzlkMmUzMDZiMjI1NTE2YWE5YTZkMDA3YTdlNzVlZGQyZDUwMTVkMTEzYjQyZjQ0YmU2MmE1MTdlNTc0ZiJ9fX0='
    slot: 0
    display_name: 'Information'
    lore:
      - 'Deposit Krona into your bank account'

  '1 Krona':
    material: 'oraxen-krona1'
    slot: 1
    display_name: 'Deposit 1 Krona'
    lore:
      - ''
    left_click_commands:
      - '[console] if %checkitem_mat:PAPER,custommodeldata:1025,amt:1% {player_name} == true then cmi money give {player_name} 1'
      - '[console] if %checkitem_mat:PAPER,custommodeldata:1025,amt:1% {player_name} == true then oraxen take {player_name} krona1 1'
    no_permission_commands:
      - '[player] tell %player_name% &cYou don’t have 1 Krona in your inventory!'

Here is my test item within that file which says I clicked regardless if I have the item in my inv or not.


  'Test Item':
    material: 'PAPER'
    slot: 8
    display_name: 'Test Condition'
    lore:
    - 'Only works if player has 1 Krona'
    conditions:
      'has_krona1':
        type: 'item'
        material: 'oraxen-krona1'
        custom_model_data: 1025
        amount: 1
        action: 'deny'
    left_click_commands:
    - '[player] tell %player_name% &aYou clicked with 1 Krona!'
    no_permission_commands:
    - '[player] tell %player_name% &cYou don’t have 1 Krona!'

I've also used the parse command with papi (below) to confirm checkitem is working, which it is.
/papi parse me %checkitem_mat:PAPER,custommodeldata:1025,amt:1%

Any help would be appreciated

old holly
#

.... idk if thats even a thing

fresh mortar
#
menu_title: 'Alfheim Bank - Deposit'
size: 18
open_command: bank_deposit
items:
  'Deposit Info':
    material: 'basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTY0MzlkMmUzMDZiMjI1NTE2YWE5YTZkMDA3YTdlNzVlZGQyZDUwMTVkMTEzYjQyZjQ0YmU2MmE1MTdlNTc0ZiJ9fX0='
    slot: 0
    display_name: 'Information'
    lore:
      - 'Deposit Krona into your bank account'

  '1 Krona':
    material: 'oraxen-krona1'
    slot: 1
    display_name: 'Deposit 1 Krona'
    lore:
      - ''
    click_requirement:
      requirements:
        has_item:
          type: string equals
          input: "%checkitem_mat:PAPER,custommodeldata:1025,amt:1%"
          output: "yes"
      deny_commands:
      - '[message] &cYou don’t have 1 Krona in your inventory!'
    click_commands:
      - '[console] oraxen take {player_name} krona1 1'
#

I'm not on computer rn, so I'll check this tomorrow on computer and let you know