Kahveci Skript V.1

DonsuzT

Kızıltaş Madencisi
En iyi cevaplar
0
Başlıktanda görüğünüz gibi skriptimizin adı kahveci skript;
Kahve
Gazoz
Ayran
Çay alabilirsiniz.

Kod;
Kod:
command /kahveci [<text>]:
    trigger:
        if arg-1 is "bilgi":
            play raw sound "random.orb" at player with pitch 1 volume 10
            wait 3 tick
            open chest with 1 rows named "&e&lKahveci Bilgi" to player
            wait 1 tick
            format slot 0 of player with 160:15 named "&9" to be unstealable
            format slot 1 of player with 160:15 named "&9" to be unstealable
            format slot 2 of player with 160:15 named "&9" to be unstealable
            format slot 3 of player with paper named "&e&lKahveci Fişi Nasıl Alınır?" with lore "&9/kahveci fişi Yazarak Alabilirsiniz." to be unstealable
            format slot 4 of player with magma cream named "&6&lGeri Dön" to close then run [execute player command "/kahveci"]
            format slot 6 of player with 160:15 named "&9" to be unstealable
            format slot 5 of player with paper named "&9&lKahveci Fişi Ne Kadar?" with lore "&e5 Tl" to be unstealable
            format slot 7 of player with 160:15 named "&9" to be unstealable
            format slot 8 of player with 160:15 named "&9" to be unstealable
            stop 
        if arg-1 is "fişi":
            if balance of player is greater than or equal to 5:
                play raw sound "random.orb" at player with pitch 1 volume 10
                remove 5 from player's balance
                give 1 nether star named "&e&lKahveci &9&lFişi" to player
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e 1 Adet Kahveci Fişi Satın Aldınız."
                stop
            else:
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &c Yeterli Bakiyeniz Yok!!"
                stop
              
        if arg-1 is "cay":
            if player have 1 nether star named "&e&lKahveci &9&lFişi":
                play raw sound "random.orb" at player with pitch 1 volume 10
                remove 1 nether star named "&e&lKahveci &9&lFişi" from player
                give 1 373:0 named "&c&lÇay" to player
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e Buyurun Çayınız..."
                stop
            else:
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &c Sizde Kahveci Fişi Yok..."
                wait 1 second
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e Almak İçin /Kahveci Fişi"
                stop
              
        if arg-1 is "kahve":
            if player have 1 nether star named "&e&lKahveci &9&lFişi":
                play raw sound "random.orb" at player with pitch 1 volume 10
                remove 1 nether star named "&e&lKahveci &9&lFişi" from player
                give 1 373:0 named "&5&lKahve" to player
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e Buyurun Kahveniz..."
                stop
            else:
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &c Sizde Kahveci Fişi Yok..."
                wait 1 second
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e Almak İçin /Kahveci Fişi"
                stop
              
        if arg-1 is "ayran":
            if balance of player is greater than or equal to 5:
                play raw sound "random.orb" at player with pitch 1 volume 10
                remove 5 from player's balance
                give 1 373:0 named "&9&lAyran" to player
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e Buyurun Ayranınız..."
                stop
            else:
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &c Yeterli Bakiyeniz Yok!!"
                stop
              
        if arg-1 is "gazoz":
            if balance of player is greater than or equal to 5:
                play raw sound "random.orb" at player with pitch 1 volume 10
                remove 5 from player's balance
                give 1 373:0 named "&b&lGazoz" to player
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &e Buyurun Gazozunuz..."
                stop
            else:
                play raw sound "random.pop" at player with pitch 1 volume 10
                send " &9&l&m[&r&eKahveci&9&l&m]&r &8> &c Yeterli Bakiyeniz Yok!!"
                stop
        play raw sound "random.orb" at player with pitch 1 volume 10
        wait 3 tick
        open chest with 1 rows named "&e&lKahveci" to player
        wait 1 tick
        format slot 0 of player with 160:15 named "&9" to be unstealable
        format slot 1 of player with 160:15 named "&9" to be unstealable
        format slot 2 of player with 373:0 named "&c&lÇay" with lore "&e&l1 Kahveci Fişi" to close then run [execute player command "/kahveci cay"]
        format slot 3 of player with 373:0 named "&5&lKahve" with lore "&e&l1 Kahveci Fişi" to close then run [execute player command "/kahveci kahve"]
        format slot 4 of player with 340 named "&6&lBilgi" to close then run [execute player command "/kahveci bilgi"]
        format slot 5 of player with 373:0 named "&9&lAyran" with lore "&e&l5 Tl" to close then run [execute player command "/kahveci ayran"]
        format slot 6 of player with 373:0 named "&b&lGazoz" with lore "&e&l5 Tl" to close then run [execute player command "/kahveci gazoz"]
        format slot 7 of player with 160:15 named "&9" to be unstealable
        format slot 8 of player with 160:15 named "&9" to be unstealable
        stop
on consume of 373:0:
    if tool's name is "&c&lÇay":
        remove speed from player
        remove Health Boost from player
        remove Regeneration from player
        apply speed 1 to player for 1 minute
        apply Health Boost 1 to player for 1 minute
        apply Regeneration 3 to player for 30 second
        send " &9&l%player% &8&l> &e&l Ohhh Be "

on consume of 373:0:
    if tool's name is "&5&lKahve":
        remove Night Vision from player
        remove Health Boost from player
        remove Regeneration from player
        apply Night Vision 1 to player for 1 minute
        apply Health Boost 1 to player for 1 minute
        apply Regeneration 3 to player for 30 second
        send " &9&l%player% &8&l> &e&l Ohhh Be "

on consume of 373:0:
    if tool's name is "&9&lAyran":
        remove speed from player
        remove Health Boost from player
        remove Regeneration from player
        apply speed 1 to player for 1 minute
        apply Health Boost 1 to player for 1 minute
        apply Regeneration 3 to player for 30 second
        send " &9&l%player% &8&l> &e&l Ohhh Be "
      
on consume of 373:0:
    if tool's name is "&b&lGazoz":
        remove speed from player
        remove Health Boost from player
        remove Regeneration from player
        apply speed 1 to player for 1 minute
        apply Health Boost 1 to player for 1 minute
        apply Regeneration 3 to player for 30 second
        send " &9&l%player% &8&l> &e&l Ohhh Be "
 
Üst