Satış Çubuğu Skripti

xDonsuzEmirTR_V2

Kömür madencisi
Katılım
30 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
 

BerkeWinnerTR

Oduncu
Katılım
21 Mar 2020
Mesajlar
1
Beğeni
0
Puanları
10
Ya Ben bu skripti Kopyaladım Yapıştırdım kendim düzenledim şöyle yaptım

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:
else if amount of gunpowder in clicked block is greater than 0:
add (amount of gunpowder in clicked block * 14500) to player's money
send "&a&l%amount of gunpowder in clicked block% &7&lBarut Satildi &f&lKazanc: &e&l%(amount of gunpowder in clicked block * 12500)%" to player (<------ Şurası üstteki satırdan devam ediyor)
remove every gunpowders from clicked block

Yada Bana Bir Tane Barut Satmalı Ayarlar mısınız ?
 

Castrum

Kömür madencisi
Katılım
25 Ocak 2021
Mesajlar
14
Beğeni
0
Puanları
10
gayet basit ve yeni arkadaşlara hizmet niteliği taşıyan bi skript eline sağlık
 
Üst