Minecraft Sunucu Scriptleri #13 ( NUSRET SCRİPTİ )

Berg_the_Bold

Kızıltaş madencisi
Katılım
30 May 2019
Mesajlar
92
Beğeni
15
Puanları
150
4029


Nusret Menüsü
...
Tekrar eğlence skripti ile karşınızdayım.
Script ile ne yapabiliriz?
İlk önce nusret mağazası yapmamız gerekiyor
...


/Nusret > Ana komut olucak.
/Nusret olustur > Adminin istediği yeri nusret yapıcak.
• /Nusret git > Adminin belirlediği Nusrete gidicek.

• /Nusret menu > Nusret yemek menusu olucak.

...


Permissions
/mangaddp [Admin,Kurucu] nusret.admin
JavaScript:
options:
    prefix: &9&lNusr&7&l&f&let &8&l» &7

command /nusret [<text>]:
    trigger:
        if arg-1 is not set:
            send "{@prefix}Nusret'i oluşturmak için &9/nusret olustur"
            send "{@prefix}Nusret'e gitmek için &9/nusret git"
            send "{@prefix}Nusret'in yemek menüsünü görmek için &9/nusret menu"
        if arg-1 is "olustur":
            player has permission "nusret.admin":
                set {nusret} to location of player
                send "{@prefix}Başarıyla &f%player's x-coordinate%, %player's y-coordinate%, %player's z-coordinate% &7kordinatları Nusret'in yeri olarak oluşturuldu"
        if arg-1 is "git":
            if {nusret} is set:
                teleport player to {nusret}
                send "{@prefix}Başarıyla Nusret'e ışınlandın !"
            else:
                send "{@prefix}Nusret daha oluşturulmamış !"
        if arg-1 is "menu":
            wait 5 ticks
            open chest with 1 row named "&9&lNusr&7&l-&f&let &f&lMenü" to player
            wait 5 ticks
            format slot 0 of player with black stained glass named "" with lore "" to close
            format slot 1 of player with black stained glass named "" with lore "" to close
            format slot 2 of player with steak named "&cDana &3Eti" with lore "&9Tuzsuz etkisi : &d+1  kalp || &9Tuzlu etkisi : &d+2  kalp || &cFiyat : &a200TL" to close then run [execute player command "nusret dana"]
            format slot 4 of player with cooked chicken named "&cTavuk &3Eti" with lore "&9Tuzsuz etkisi : &d+0.5  kalp ||&9Tuzlu etkisi : &d+1  kalp || &cFiyat : &a150TL" to close then run [execute player command "nusret tavuk"]
            format slot 5 of player with black stained glass named "" with lore "" to close
            format slot 6 of player with raw beef named "&cAt &3Eti" with lore "&9Tuzsuz etkisi : &d+2  kalp ||&9Tuzlu etkisi : &d+3  kalp || &cFiyat : &a350TL" to close then run [execute player command "nusret at"]
            format slot 7 of player with black stained glass named "" with lore "" to close
            format slot 8 of player with black stained glass named "" with lore "" to close
            format slot 3 of player with black stained glass named "" with lore "" to close
        if arg-1 is "dana":
            if player's balance is more than or equal to 200:
                remove 200 from player's balance
                send "{@prefix}5 saniye bekleyiniz yemeğiniz hazırlanıyor..."
                wait 5 seconds
                give a steak named "&cDana &3Eti" to player
                send "{@prefix}Başarıyla &9200TL&7'ye dana eti satın aldın !"
            else:
                send "{@prefix}&cYetersiz Bakiye "
        if arg-1 is "tavuk":
            if player's balance is more than or equal to 150:
                remove 150 from player's balance
                send "{@prefix}5 saniye bekleyiniz yemeğiniz hazırlanıyor..."
                wait 5 seconds
                give a cooked chicken named "&cTavuk &3Eti" to player
                send "{@prefix}Başarıyla &9150TL&7'ye tavuk eti satın aldın !"
            else:
                send "{@prefix}&cYetersiz Bakiye "
        if arg-1 is "at":
            if player's balance is more than or equal to 350:
                remove 350 from player's balance
                send "{@prefix}5 saniye bekleyiniz yemeğiniz hazırlanıyor..."
                wait 5 seconds
                give a raw beef named "&cAt &3Eti" to player
                send "{@prefix}Başarıyla &9350TL&7'ye dana eti satın aldın !"
            else:
                send "{@prefix}&cYetersiz Bakiye "
       
on left click with steak:
    if tool's name is "&cDana &3Eti":
        remove 1 steak named "&cDana &3Eti" from player
        send "{@prefix}10 saniye bekleyiniz Nusret yemeğinizi tuzluyor"
        wait 10 seconds
        give steak named "&7Tuzlu &cDana &3Eti" to player
       
on left click with cooked chicken:
    if tool's name is "&cTavuk &3Eti":
        remove 1 cooked chicken named "&cTavuk &3Eti" from player
        send "{@prefix}10 saniye bekleyiniz Nusret yemeğinizi tuzluyor"
        wait 10 seconds
        give cooked chicken named "&7Tuzlu &cTavuk &3Eti" to player

on left click with raw beef:
    if tool's name is "&cAt &3Eti":
        remove 1 raw beef named "&cAt &3Eti" from player
        send "{@prefix}10 saniye bekleyiniz Nusret yemeğinizi tuzluyor"
        wait 10 seconds
        give raw beef named "&7Tuzlu &cAt &3Eti" to player

on consume of steak:
    if tool's name is "&cDana &3Eti":
        set maximum health of player to 11
        heal player by 1 hearts
        wait 120 seconds
        set maximum health of player to 10
    if tool's name is "&7Tuzlu &cDana &3Eti":
        set maximum health of player to 12
        heal player by 2 hearts
        wait 120 seconds
        set maximum health of player to 10
       
on consume of cooked chicken:
    if tool's name is "&cTavuk &3Eti":
        set maximum health of player to 11
        heal player by 0.5 hearts
        wait 120 seconds
        set maximum health of player to 10
    if tool's name is "&7Tuzlu &cTavuk &3Eti":
        set maximum health of player to 11
        heal player by 1 hearts
        wait 120 seconds
        set maximum health of player to 10

on consume of raw beef:
    if tool's name is "&cAt &3Eti":
        set maximum health of player to 12
        heal player by 2 hearts
        wait 120 seconds
        set maximum health of player to 10
    if tool's name is "&7Tuzlu &cAt &3Eti":
        set maximum health of player to 13
        heal player by 3 hearts
        wait 120 seconds
        set maximum health of player to 10      
       
command /ss:
    trigger:
        loop 200 times:
[CENTER]            broadcast ""
;



Konuma girdiğiniz için teşekkürler
BERG_THE_BOLD
👊
4030
 
Üst