#[DeluxeMenus] Requirements & Actions

1 messages · Page 1 of 1 (latest)

odd widget
#

Hi, I'm trying to make a store with custom items from the Nexo plugin

This is my config
https://pastebin.com/j4BZS2DR

The idea is that if you have:
10 red gems
10 pieces of armor shards
10,000 coins
You'll get the item, but nothing happens

If you do not meet the requirements, no command will be executed
It's like a trade

Could someone help me see what is wrong?
Forgive my poor English, I thank in advance those who are going to help me
peepolove

odd widget
#

bump

modest solar
#

Try changing the requirement names to be unique, currently they're all gems:
Also in the commands, try using %player_name% instead of %player% and ensure you have the Player expansion installed:
/papi ecloud download Player /papi reload

idle ruin
# odd widget Hi, I'm trying to make a store with custom items from the Nexo plugin This is m...
open_command: 
  - blacksmith
  - blacksmithtrade
open_commands:
  - '[SOUND] BLOCK_BEACON_ACTIVATE'
size: 54

items:
#######################  ARMAS  ##################################
  "fire_weapon":
    material: nexo-flamos_scythe
    slot: 1
    left_click_requirement:
      requirements:
        red-gem:
          type: has item
          material: nexo-redgem
          amount: 10
        shard:
          type: has item
          material: nexo-armor_shard_cluster
          amount: 10
        money:
          type: has money
          amount: 20000
    left_click_commands:
    - '[sound] ENTITY_FIREWORK_ROCKET_BLAST'
    - '[console] nexo take redgem 10 %player%'
    - '[console] nexo take armor_shard_cluster 10 %player%'
    - '[console] money take %player% 10000'
    - '[console] &c&lPrueba superada'
    - '[console] nexo give flamos_scythe 1 %player%'
    - '[close]'```
idle ruin
#
open_command: 
  - blacksmith
  - blacksmithtrade
open_commands:
  - '[SOUND] BLOCK_BEACON_ACTIVATE'
size: 54

items:
#######################  ARMAS  ##################################
  "fire_weapon":
    material: nexo-flamos_scythe
    slot: 1
    left_click_requirement:
      requirements:
        red-gem:
          type: has item
          material: nexo-redgem
          amount: 10
          deny_commands:
          - '[message] You do not have enough red gems'
          - '[close]'
        shard:
          type: has item
          material: nexo-armor_shard_cluster
          amount: 10
          deny_commands:
          - '[message] You do not have enough shards'
          - '[close]'
        money:
          type: '>=
          input: '%vault_eco_balance%'
          output: 20000
          deny_commands:
          - '[message] You do not have enough money'
          - '[close]'
    left_click_commands:
    - '[sound] ENTITY_FIREWORK_ROCKET_BLAST'
    - '[console] nexo take redgem 10 %player%'
    - '[console] nexo take armor_shard_cluster 10 %player%'
    - '[console] money take %player% 10000'
    - '[console] &c&lPrueba superada'
    - '[console] nexo give flamos_scythe 1 %player%'
    - '[close]'```
#

try using this