SandıkSatar (SKRIPT)

TotallyNetwork112

Kömür madencisi
Katılım
26 Haz 2022
Mesajlar
15
Beğeni
1
Puanları
10
Perm: ss.sandiksatar

Kod:
command /sandiksatar:
    permission: ss.sandiksatar
    trigger:
        give 1 diamond hoe named "&eSandık Satar" to player


on right click with diamond hoe:
    if name of player's tool is "&eSandık Satar":
        if clicked block is a chest:
            if amount of iron block in clicked block is greater than 0:
                add (amount of iron block in clicked block * 5000) to player's money
                send "&a&l%amount of iron block in clicked block% &c&lDemir Blok Satildi &f&lKazanc: &e&l%(amount of iron block in clicked block * 5000)%" to player
                remove every iron blocks from clicked block
            else if amount of gold block in clicked block is greater than 0:
                add (amount of gold block in clicked block * 6740) to player's money
                send "&a&l%amount of gold block in clicked block% &c&lAltin Blok Satildi &f&lKazanc: &e&l%(amount of gold block in clicked block * 6740)%" 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 * 26000) to player's money
                send "&a&l%amount of emerald block in clicked block% &c&lZumrut Blok Satildi &f&lKazanc: &e&l%(amount of emerald block in clicked block * 26000)%" 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 * 13000) to player's money
                send "&a&l%amount of diamond block in clicked block% &c&lElmas Blok Satildi &f&lKazanc: &e&l%(amount of diamond block in clicked block * 13000)%" to player
                remove every diamond blocks from clicked block
 
Üst