#How to make shop gui in Deluxe menu

1 messages · Page 1 of 1 (latest)

river wigeon
#

Hey, I have a shop gui but how can players buy and sell items

silent warren
#

you can use essentials give/clear, vanilla give/clear, or checkitemm expansion

#

It does also have checkitem usage to check if the player has items for selling, but that can be foregone with using the has item requirement instead

craggy lark
#

Be aware of item names, lores, enchants. They satisfy the item requirement but clear command doesnt delete them

silent warren
#

strict should help with that this

silent warren
#

it will make sure the item has no display name, lore, some other things

#

it's implemented in checkitem and in has item

river wigeon
#

Thanks you guys

river wigeon
#

menu_title: 'Farm Merchant'
open_command: 
- fm
- farming
size: 54
items:
      background:
        material: Black_Stained_Glass_Pane
        data: 15
        priority: 2
        slots:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 17
        - 18
        - 26
        - 27
        - 35
        - 36
        - 44
        - 45
        - 46
        - 47
        - 48
        - 50
        - 51
        - 52
        - 53
Wheat:
    material: Wheat 
    slot: 10
    display_name: '&fWheat'
    lore:
    - ''
    - "&8• &7Buy for: &c$&f$1"
    - "&8• &7Sell for: &a$&f$0.5"
    - ''
    - '&8Left click to buy'
    - '&8Right click to sell'
    - ''
    left_click_requirement:
      requirements:
        anything_here:
          type: has money
          amount: 1
      deny_commands:
      - '[message] &6Shop &8> &7You need &c$1 &fto buy &c1 x Wheat &f.'
    right_click_requirement:
      requirements:
        anything_here:
          type: string equals
          input: '%checkitem_mat:Wheat%'
          output: 'yes'
      deny_commands:
      - '[message] &6Shop &8> &fYou don''t have &c1 x Wheat &fto sell.'
    left_click_commands:
    - '[console] eco take %player_name% 1'
    - '[console] give %player_name% Wheat 1'
    - '[message] &6Shop &8> &fYou bought &a1 x Wheat &ffor &a$100&f.'
    right_click_commands:
    - '[console] eco give %player_name% 0.5'
    - '[console] clear %player_name% Wheat 1'
    - '[message] &6Shop &8> &fYou sold &a1 x Wheat'