BilinmeyenBey
Sudan Çıkmış
- Mesajlar
- 3
- En iyi cevaplar
- 1
- Beğeniler
- 0
- Puanları
- 10
- Oyun Sürümü
- 1.12
Chest Commands Plugini çok seviyorum, oyundaki neredeyse herşeyi bir menü haline getiriyorum ki herşeye erişebilelim.
Bu Plugin ile bir market yapmak istedim, yaptımda!
Ancak marketlerde şöyle bişe olur: Ya alırsın, ya satarsın.
Ancak işlem satmaya gelince başaramadım...
Farz edin ki Cobblestone satıyorsunuz ancak bu menünün şöyle bir sorunu var:
1 kere cobblestone alıyorsunuz ve menü kapanıyor, yani menüyü tekrar açmanız gerekiyor.
Peki bu olayı şöyle nasıl yaparım? : 1 kere satmaktansa 10 kere cobblestone satmak istesem? Nasıl yapacağım?
Birkaç rehbere göz attım ancak bulamadım, kodu aşağıya bırakıyorum:
Bu Plugin ile bir market yapmak istedim, yaptımda!
Ancak marketlerde şöyle bişe olur: Ya alırsın, ya satarsın.
Ancak işlem satmaya gelince başaramadım...
Farz edin ki Cobblestone satıyorsunuz ancak bu menünün şöyle bir sorunu var:
1 kere cobblestone alıyorsunuz ve menü kapanıyor, yani menüyü tekrar açmanız gerekiyor.
Peki bu olayı şöyle nasıl yaparım? : 1 kere satmaktansa 10 kere cobblestone satmak istesem? Nasıl yapacağım?
Birkaç rehbere göz attım ancak bulamadım, kodu aşağıya bırakıyorum:
Kod:
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################
menu-settings:
# name - appears as the title - REQUIRED
name: '&6Sell Materials'
# rows - the number of rows of the chest - REQUIRED
rows: 3
# command - OPTIONAL (you can remove this or set it to '')
# Bind multiple commands using ; (command: 'menu; m; me')
command: 'minersell'
# auto-refresh - OPTIONAL
# How frequently the menu will be refreshed, in seconds.
# Useful if you have variables in items' descriptions.
auto-refresh: 5
# This command command will be execute when the menu is opened.
# Supports all the icon command types.
open-action: 'sound: note pling; tell: &eYou are selling your stuff to miner merchant!'
# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id: wool:1
left-click: false
right-click: true
######################
#+ +#
# ITEMS #
#+ +#
######################
economy-take6:
REQUIRED-ITEM: 'cobblestone'
COMMAND: 'tell: &aYou have been paid 1$; givemoney: 1'
NAME: '&eSell Cobblestone'
LORE:
- 'This command is the opposite of the previous.'
- 'It will take you a cobblestone and give you &2$1.'
ID: cobblestone
POSITION-X: 1
POSITION-Y: 1
economy-take:
REQUIRED-ITEM: 'cobblestone'
COMMAND: 'tell: &aYou have been paid 10$; givemoney: 10'
NAME: '&eSell Cobblestone'
LORE:
- 'This command is the opposite of the previous.'
- 'It will take you a cobblestone and give you &2$10.'
ID: cobblestone
AMOUNT: 10
POSITION-X: 1
POSITION-Y: 2
notavaliable2:
COMMAND: 'tell: &aMiner does not have anymore deals about that item!'
NAME: '&eNot Avaliable'
LORE:
- ''
ID: barrier
POSITION-X: 2
POSITION-Y: 1
notavaliable3:
COMMAND: 'tell: &aMiner does not have anymore deals about that item!'
NAME: '&eNot Avaliable'
LORE:
- ''
ID: barrier
POSITION-X: 3
POSITION-Y: 1
notavaliable4:
COMMAND: 'tell: &aMiner does not have anymore deals about that item!'
NAME: '&eNot Avaliable'
LORE:
- ''
ID: barrier
POSITION-X: 4
POSITION-Y: 1
menu-close-no-commands-no-lore:
NAME: '&6Close the menu'
ID: redstone lamp
LORE:
- 'Create an item without command,'
- 'the GUI will just close.'
POSITION-X: 9
POSITION-Y: 3