Çözüldü minecraft menüde belli şeyler karşılığında olan eşyayı alma

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Efe_71

Fırında Isıttığım İlk Taş
Katılım
24 Kasım 2022
Mesajlar
80
Elmaslar
4
Puan
3.995
Yaş
26
Konum
Trabzon
Minecraft
Efe_71

Discord:

DoctorSton#9999

Merhaba Arkadaşlar Bunu Nasıl Bir Menüde Yapabilirim Direk Açıkliyim

/menü(örnek komud) yazınca bir menüye atcak orda eşya olcak ve onun altında gerekli öğe belli para ve level yazcak ona tıklayınca onları senden alcak ve ordaki eşyayı vericek

şöylede bir örnek atiyim
image.webp
 
Deluxe menu zaten bunun için bir örnek hazırlamış; bunu kullanarak menünüzü genişletebilirsiniz.

Kod:
# ---------------------------------------------------------------------- #
#              THIS MENU WAS MADE USING DELUXEMENUS v1.13.7              #
# ---------------------------------------------------------------------- #
#                                                                        #
# NOTE: This menu was made for a seperate yaml-file!                     #
#       Add the following code to the config.yml of DeluxeMenus and      #
#       reload the plugin (/dm reload).                                  #
#                                                                        #
# gui_menus:                                                             #
#   store:                                                               #
#     file: store.yml                                                    #
#                                                                        #
# Add the above code in the config.yml and the content for the right     #
# shop (from "items:" to "### End of <...> shop") in the store.yml, that #
# you'll be finding in the newly created gui_menus folder.               #
# ---------------------------------------------------------------------- #

##########################################################################
# + ------------------------------------------------------------------ + #
# |                            VAULT ECONOMY                           | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
  '0':
    material: GRANITE
    slot: 0
    display_name: '&fGranite'
    lore:
    - ''
    - "&8• &7Buy for: &c$&f100"
    - "&8• &7Sell for: &a$&f25"
    - ''
    - '&8Left click to buy'
    - '&8Right click to sell'
    - ''
    left_click_requirement:
      requirements:
        anything_here:
          type: has money
          amount: 100
          deny_commands:
          - '[message] &6Shop &8> &7You need &c$100 &fto buy &c1 x Granite&f.'
    right_click_requirement:
      requirements:
        anything_here:
          type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
          material: 'GRANITE'
          strict: true
          deny_commands:
          - '[message] &6Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
    left_click_commands:
    - '[console] eco take %player_name% 100'
    - '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a$100&f.'
    right_click_commands:
    - '[console] eco give %player_name% 25'
    - '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a$25&f.'
### End of the vault economy shop

##########################################################################
# + ------------------------------------------------------------------ + #
# |                       TOKEN ENCHANT ECONOMY                        | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
  '0':
    material: GRANITE
    slot: 0
    display_name: '&fGranite'
    lore:
    - ''
    - "&8• &7Buy for: &f100 &cTokens"
    - "&8• &7Sell for: &f25 &aTokens"
    - ''
    - '&8Left click to buy'
    - '&8Right click to sell'
    - ''
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%tokenenchant_token_long%'
          output: '100'
          deny_commands:
          - '[message] &6Shop &8> &7You need &c100 Tokens &fto buy &c1 x Granite&f.'
    right_click_requirement:
      requirements:
        anything_here:
          type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
          material: 'GRANITE'
          strict: true
          deny_commands:
          - '[message] &6Shop &8> &7You don''t have &c1 x Granite &fto sell.'
    left_click_commands:
    - '[console] te remove %player_name% 100'
    - '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a100 Tokens&f.'
    right_click_commands:
    - '[console] te add %player_name% 25'
    - '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a25 Tokens&f.'
### End of the token enchant shop

##########################################################################
# + ------------------------------------------------------------------ + #
# |                       PLAYER POINTS ECONOMY                        | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
  '0':
    material: GRANITE
    slot: 0
    display_name: '&fGranite'
    lore:
    - ''
    - "&8• &7Buy for: &f100 &cPoints"
    - "&8• &7Sell for: &f25 &aPoints"
    - ''
    - '&8Left click to buy'
    - '&8Right click to sell'
    - ''
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '100'
          deny_commands:
          - '[message] &6Shop &8> &7You need &c100 Points &fto buy &c1 x Granite&f.'
    right_click_requirement:
      requirements:
        anything_here:
          type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
          material: 'GRANITE'
          strict: true
          deny_commands:
          - '[message] &6Shop &8> &7You don''t have &c1 x Granite &fto sell.'
    left_click_commands:
    - '[console] points take %player_name% 100'
    - '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a100 Points&f.'
    right_click_commands:
    - '[console] points give %player_name% 25'
    - '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a25 Points&f.'
### End of the player points shop

##########################################################################
# + ------------------------------------------------------------------ + #
# |                         PLAYER XP ECONOMY                          | #
# + ------------------------------------------------------------------ + #
##########################################################################
# You can use this placeholder %player_level% instead of total xp to check the level.
items:
  '0':
    material: GRANITE
    slot: 0
    display_name: '&fGranite'
    lore:
    - ''
    - "&8• &7Buy for: &f2 XP-Level"
    - "&8• &7Sell for: &f1 XP-Level"
    - ''
    - '&8Left click to buy'
    - '&8Right click to sell'
    - ''
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%player_total_exp%'
          output: '16' # Used in-game parsing for calculation for 1.20.1. This website seems outdated: http://www.pernsteiner.org/minecraft/levelcalc.html for calculation
          deny_commands:
          - '[message] &6Shop &8> &7You need &c2 XP-Levels (16 XP) &fto buy &c1 x Granite&f.'
    right_click_requirement:
      requirements:
        anything_here:
          type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
          material: 'GRANITE'
          strict: true
          deny_commands:
          - '[message] &6Shop &8> &7You don''t have &c1 x Granite &fto sell.'
    left_click_commands:
    - '[console] xp give %player_name% -2L' # We need to "give" a negative amount, to remove XP :-/
    - '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a2 XP-Level&f.'
    right_click_commands:
    - '[console] xp give %player_name% 1L' # L means Level. You could also just type 17 for 17 XP.
    - '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a1 XP-Level&f.'
### End of the XP economy shop

İyi forumlar <3
 
teşekkürler konu kilit
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst