#Menu Help Request

1 messages · Page 1 of 1 (latest)

subtle lance
#

Hi, I made this menu but for some reason it's not working. Could someone tell me what I'm doing wrong?

I'm using DeluxeMenus version 1.14.1-DEV-199 and my server is 1.21.4.

Here's what I configured:

items:
  # === 10 ===
  10:
    material: DEEPSLATE_COAL_ORE
    slot: 10
    display_name: "&fProtection: &8[Carbon]"
    lore:
      - ""
      - "&7Use a protection block to"
      - "&7prevent theft or griefing."
      - ""
      - "&7Information:"
      - "&8 - &fProtect: &d10x10"
      - "&8 - &fPrice: &a$1,000"
      - ""
      - "%changeoutput_>=_input:{vault_eco_balance}_matcher:1000_ifmatch:&e► Click to buy!_else:&c► You don't have enough money!%"
    click_requirement:
      requirements:
        requirement-1:
          type: has money
          amount: 1000
          success_commands:
          - "[sound] ENTITY_PLAYER_LEVELUP"
          - "[takemoney] 1000"
          - "[console] protectionstones give 10 %player_name% 1"
          - "[message] &aYou have purchased a &8[Coal]&a protection."
          - "[close]"
          deny_commands:
          - "[sound] ENTITY_VILLAGER_NO"
          - "[message] &cYou don't have enough money to buy this protection!"
still echo
#

@subtle lance can you be a bit more specific about what doesn't work?

subtle lance
still echo
#

Try moving success_commands to click_commands. Like this:

items:
  # === 10 ===
  10:
    material: DEEPSLATE_COAL_ORE
    slot: 10
    display_name: "&fProtection: &8[Carbon]"
    lore:
      - ""
      - "&7Use a protection block to"
      - "&7prevent theft or griefing."
      - ""
      - "&7Information:"
      - "&8 - &fProtect: &d10x10"
      - "&8 - &fPrice: &a$1,000"
      - ""
      - "%changeoutput_>=_input:{vault_eco_balance}_matcher:1000_ifmatch:&e► Click to buy!_else:&c► You don't have enough money!%"
    click_requirement:
      requirements:
        requirement-1:
          type: has money
          amount: 1000
          deny_commands:
          - "[sound] ENTITY_VILLAGER_NO"
          - "[message] &cYou don't have enough money to buy this protection!"
    click_commands:
    - "[sound] ENTITY_PLAYER_LEVELUP"
    - "[takemoney] 1000"
    - "[console] protectionstones give 10 %player_name% 1"
    - "[message] &aYou have purchased a &8[Coal]&a protection."
    - "[close]"
subtle lance
#

Thanks!

subtle lance
# still echo Try moving success_commands to click_commands. Like this: ```yml items: # ===...

Currently, my configuration is working fine, but I've run into a small issue: the changeoutput expansion only supports two outputs, and I need to add a third one to display a "inventory full" message. What would you recommend in this case?

items:
  10:
    material: DEEPSLATE_COAL_ORE
    slot: 10
    display_name: "&fProtection: &8[Coal]"
    lore:
      - ""
      - "&7Protect your territory with a"
      - "&7protection block and prevent"
      - "&7theft or griefing."
      - ""
      - "&7Information:"
      - "&8 - &fProtects: &d10x10"
      - "&8 - &fPrice: &a$1,000"
      - ""
      - "%changeoutput_>=_input:{vault_eco_balance}_matcher:1000_ifmatch:&e► Click to purchase!_else:&c► You don't have enough money!%"
    click_requirement:
      requirements:
        requirement-1:
          type: has money
          amount: 1000
          deny_commands:
            - "[sound] ENTITY_VILLAGER_NO"
            - "[message] &cYou don't have enough money to buy this protection."
            - "[close]"
        requirement-2:
          type: string equals
          input: "%player_has_empty_slot%"
          output: "yes"
          deny_commands:
            - "[sound] ENTITY_VILLAGER_NO"
            - "[message] &cYour inventory is full. Free up space before buying."
            - "[close]"
    click_commands:
      - "[sound] ENTITY_PLAYER_LEVELUP"
      - "[takemoney] 1000"
      - "[console] protectionstones give 10 %player_name% 1"
      - "[message] &aYou have purchased a &8[Coal]&a protection."
      - "[close]"