Satış Çubuğu Skripti

xDonsuzEmirTR_V2

Kömür madencisi
Katılım
29 May 2019
Mesajlar
16
Beğeni
3
Puanları
30
Özel eşya olarak geçen Satış Çubuğunu OpSkyblock sunucularında kullanılıyor. Bende burada paylaşmak istedim.


KOD:
Kod:
command /sandıksatar:
    trigger:
        give 1 stick named "&6Satış Çubuğu" to player


on left click with stick:
    if name of player's tool is "&6Satış Çubuğu":
        if clicked block is a chest or trapped chest:
            if amount of diamond in clicked block is greater than 0:
                add (amount of diamond in clicked block * 600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of diamond in clicked block * 600)% &7hesabınıza eklendi" to player
                remove every diamonds from clicked block
            if amount of emerald in clicked block is greater than 0:
                add (amount of emerald in clicked block * 600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of emerald in clicked block * 453)% &7hesabınıza eklendi" to player
                remove every emerald from clicked block
            if amount of iron ingot in clicked block is greater than 0:
                add (amount of iron ingot in clicked block * 300) to player's money
                send "&eSandık Satar &8▸ &c%(amount of iron ingot in clicked block * 300)% &7hesabınıza eklendi. " to player
                remove every iron ingot from clicked block
            if amount of iron block in clicked block is greater than 0:
                add (amount of iron block in clicked block * 2700) to player's money
                send "&eSandık Satar &8▸ &c%(amount of iron block in clicked block * 2700)% &7hesabınıza eklendi. " to player
                remove every iron blocks from clicked block
            if amount of gold ingot in clicked block is greater than 0:
                add (amount of gold ingot in clicked block * 367) to player's money
                send "&eSandık Satar &8▸ &c%(amount of gold ingot in clicked block * 367)% &7hesabınıza eklendi. " to player
                remove every gold ingot from clicked block
            else if amount of gold block in clicked block is greater than 0:
                add (amount of gold block in clicked block * 3600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of gold block in clicked block * 3600)% &7hesabınıza eklendi." to player
                remove every gold blocks from clicked block
            else if amount of emerald block in clicked block is greater than 0:
                add (amount of emerald block in clicked block * 4500) to player's money
                send "&eSandık Satar &8▸ &c%(amount of emerald block in clicked block * 4500)% &7hesabınıza eklendi." to player
                remove every emerald blocks from clicked block
            else if amount of diamond block in clicked block is greater than 0:
                add (amount of diamond block in clicked block * 5400) to player's money
                send "&eSandık Satar &8▸ &c%(amount of diamond block in clicked block * 5400)% &7hesabınıza eklendi." to player
                remove every diamond blocks from clicked block
 
Üst