• Chào bạn, hãy đăng ký hoặc đăng nhập để tham gia cùng bọn mình và sử dụng được đầy đủ chức năng của diễn đàn :).
mitbingoMC

Hỏi về server Làm shop bằng Deluxe Menu. Các cao nhân giúp em với ạ

mitbingoMC

THÀNH VIÊN
Tham gia
20/09/2021
Bài viết
163
Dạ em làm cái item trong Deluxe Menu để lúc bấm chuột phải vào nó sẽ lấy 1 end stone của em và cho em 1 point
Nhưng nó bị các vẫn đề sau:
- 1. Bấm xong nó clear hết inventory
- 2. Không đủ endstone nó vẫn cho point
Các cao nhân giúp em với ạ
 
thử bỏ
- '[refresh]'
xem, và up full config
 
Mã:
'1':
    material: GLASS
    slot: 0
    priority: 1
    lore:
    - "§f§l«§e§l«§f§l«§e§l«§f§l« §f§l┊ §c§lThông tin §f§l┊ §f§l»§e§l»§f§l»§e§l»§f§l»"   
    - "§e&l◈ §fGiá mua 1 món: &e3 bạc."
    - "§e&l◈ §fGiá mua 32 món: &e96 bạc."
    - ""
    - "§e&l◈ §fGiá bán 1 món: &e1 bạc."
    - "§e&l◈ §fGiá bán 32 món: &e32 bạc."
    - ""
    - "§f§l«§e§l«§f§l«§e§l«§f§l« §f§l┊ §c§lHướng dẫn §f§l┊ §f§l»§e§l»§f§l»§e§l»§f§l»"
    - "§e&l◈ §fChuột trái để mua &51."
    - "§e&l◈ §fChuột phải để mua &532."
    - ""
    - "§e&l◈ §fSHIFT chuột trái để bán &51."
    - "§e&l◈ §fSHIFT chuột phải để bán &532."
    left_click_commands:
    - '[console] give %player_name% GLASS 1'
    - '[console] eco take %player_name% 3'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
    left_click_requirement:
      requirements: 
        eco:
          type: '>='
          input: '%vault_eco_balance_fixed%'
          output: '3'
      deny_commands:   
        - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn không đủ bạc!'
        - '[sound] BLOCK_ANVIL_PLACE'
    right_click_commands:
    - '[console] give %player_name% GLASS 32'
    - '[console] eco take %player_name% 96'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
    right_click_requirement:
      requirements: 
        eco:
          type: '>='
          input: '%vault_eco_balance_fixed%'
          output: '96'
      deny_commands:   
        - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn không đủ bạc!'
        - '[sound] BLOCK_ANVIL_PLACE' 
    shift_left_click_commands:
    - '[console] clear %player_name% GLASS 1'
    - '[console] eco give %player_name% 1'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'   
    shift_left_click_requirement:   
        requirements:
          has_item:
            type: has item
            material: 'GLASS'
            amount: 1
        deny_commands:   
          - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn cần ít nhất 1 thủy tinh!'
          - '[sound] BLOCK_ANVIL_PLACE'     
    shift_right_click_commands:
    - '[console] clear %player_name% GLASS 32'
    - '[console] eco give %player_name% 32'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
    shift_right_click_requirement:   
        requirements:
          has_item:
            type: has item
            material: 'GLASS'
            amount: 32
        deny_commands:   
          - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn cần ít nhất 32 thủy tinh!'
          - '[sound] BLOCK_ANVIL_PLACE'
thử xem, nhớ copy giống nha
 
Chán ko buồn giúp nữa, ngu gì ngu qtr
 
Mã:
'1':
    material: GLASS
    slot: 0
    priority: 1
    lore:
    - "§f§l«§e§l«§f§l«§e§l«§f§l« §f§l┊ §c§lThông tin §f§l┊ §f§l»§e§l»§f§l»§e§l»§f§l»"  
    - "§e&l◈ §fGiá mua 1 món: &e3 bạc."
    - "§e&l◈ §fGiá mua 32 món: &e96 bạc."
    - ""
    - "§e&l◈ §fGiá bán 1 món: &e1 bạc."
    - "§e&l◈ §fGiá bán 32 món: &e32 bạc."
    - ""
    - "§f§l«§e§l«§f§l«§e§l«§f§l« §f§l┊ §c§lHướng dẫn §f§l┊ §f§l»§e§l»§f§l»§e§l»§f§l»"
    - "§e&l◈ §fChuột trái để mua &51."
    - "§e&l◈ §fChuột phải để mua &532."
    - ""
    - "§e&l◈ §fSHIFT chuột trái để bán &51."
    - "§e&l◈ §fSHIFT chuột phải để bán &532."
    left_click_commands:
    - '[console] give %player_name% GLASS 1'
    - '[console] eco take %player_name% 3'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
    left_click_requirement:
      requirements:
        eco:
          type: '>='
          input: '%vault_eco_balance_fixed%'
          output: '3'
      deny_commands:  
        - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn không đủ bạc!'
        - '[sound] BLOCK_ANVIL_PLACE'
    right_click_commands:
    - '[console] give %player_name% GLASS 32'
    - '[console] eco take %player_name% 96'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
    right_click_requirement:
      requirements:
        eco:
          type: '>='
          input: '%vault_eco_balance_fixed%'
          output: '96'
      deny_commands:  
        - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn không đủ bạc!'
        - '[sound] BLOCK_ANVIL_PLACE'
    shift_left_click_commands:
    - '[console] clear %player_name% GLASS 1'
    - '[console] eco give %player_name% 1'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'  
    shift_left_click_requirement:  
        requirements:
          has_item:
            type: has item
            material: 'GLASS'
            amount: 1
        deny_commands:  
          - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn cần ít nhất 1 thủy tinh!'
          - '[sound] BLOCK_ANVIL_PLACE'    
    shift_right_click_commands:
    - '[console] clear %player_name% GLASS 32'
    - '[console] eco give %player_name% 32'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
    shift_right_click_requirement:  
        requirements:
          has_item:
            type: has item
            material: 'GLASS'
            amount: 32
        deny_commands:  
          - '[message] &8&l[&6 Lưu ý &8&l]&7 Bạn cần ít nhất 32 thủy tinh!'
          - '[sound] BLOCK_ANVIL_PLACE'
thử xem, nhớ copy giống nha
Có loại dùng cho player point thay vì eco ko a?
 
Similar content Most view Xem thêm
Back
Top Bottom