Custom Enchant Skript

afesraca

Obsidyen Madencisi
En iyi cevaplar
0
Arkadaşlar şu anda paylaşacağım skript oyuna yeni enchantlar ekler. Mesela kılıcın loresi zehir ise zehir rakibini %1 olasılıkla zehirler. Yapımı neredeyse bana aittir ama baya bi yardım aldım (@Nano_Sensei @Rosenrot @ByAehn @MhaWTHoR ) Aslında paylaşmayacaktım ama daha farklı bir yöntem kullanacağım o yüzden paylaşayım elimde kalmasın dedim
HTML:
on damage:
    attacker is player
    if "%lore of attacker's tool%" contains "Zehir":
        chance of 1%:
            send "&bBilgi&3> &7Rakibin seni &3zehir&7ledi." to victim
            apply poison 1 to the victim for 5 second
    if "%lore of attacker's tool%" contains "Thor":
        chance of 1%:
            send "&bBilgi&3> &7Rakibin &3Thor&7 etkisini kullandı." to victim
            strike lightning at the location at the victim
    if "%lore of attacker's tool%" contains "Kesici":
        chance of 1%:
            send "&bBilgi&3> &7Kanamaya başladın." to victim
            wait 3 second
            damage victim by 0.5 hearts
            wait 3 second
            damage victim by 0.5 hearts
    if "%lore of attacker's tool%" contains "Dondurma":
        chance of 1%:
            send "&bBilgi&3> &7Rakibin Sub-Zero çıktı,öylece &3donup kaldın&7." to victim
            execute console command "/flyspeed walk 0 %victim%"
            wait 3 second
            execute console command "/flyspeed walk 1.8 %victim%"

on damage:
    victim is player
    if lore of victim's boots contains "Paraşüt":
        damage cause is fall:
            cancel event


on death:
    attacker is player
    victim is player
    if "%lore of attacker's tool%" contains "Vampir":
        if {oldurmes.%attacker%} is 0:
            set {oldurmes.%attacker%} to 1
            set the attacker's max health to 11
            send "&bBilgi&3> &7Rakibin İnsan görünümlü &3vampir &7çıktı." to victim
        if {oldurmes.%attacker%} is 1:
            set {oldurmes.%attacker%} to 2
            set the attacker's max health to 12
            send "&bBilgi&3> &7Rakibin İnsan görünümlü &3vampir &7çıktı." to victim

on join:
    set {oldurmes.%player%} to 0

on quit:
    delete {oldurmes.%player%}

every 30 minutes:
    loop all players:
        set {oldurmes.%loop-player%} to 0
        set the loop-player's max health to 10
      
      
on death:
    attacker is player
    victim is player
    if "%lore of attacker's tool%" contains "Katil":
        execute console command "/heal %player%"
      
      
on damage:
attacker is a player:
  victim is a player:
   if "%lore of attacker's tool%" contains "Körlük":
    chance of 100%:
     send "&bBilgi&3> &7Rakibin seni &8Kör yaptı." to victim
     apply blindness 1 to the victim for 5 seconds
   else if "%lore of attacker's tool%" contains "Obur":
    chance of 100%:
     send "&bBilgi&3> &7Rakibin obur çıktı &5 Açlığını bile yedi&7." to victim
     apply hunger 2 to the victim for 5 seconds
   
on damage:
    attacker is player
    if "%lore of attacker's tool%" contains "Kemik Kıran":
        chance of 1%:
            send "&bBilgi&3> &7Rakibin senin &9Kemiklerini Kırdı." to victim
            apply slowness 1 to the victim for 6 second
    if "%lore of attacker's tool%" contains "Lanet":
        chance of 1%:
            send "&bBilgi&3> &7Rakibin Kılıcı &5Lanetli &7Çıktı." to victim
            apply poison 1 to the victim for 5 second
            damage victim by 0.5 hearts
            wait 2 second
            damage victim by 0.5 hearts
          
          
on shoot:
    projectile is an arrow
    if lore of player's tool contains "Ateşli":
        trail projectile with particle flame      
              
on projectile hit:
    if name of shooter's tool is "&bBuz":
        if chance of 5%:
            delete projectile
            loop all blocks in radius 3 of event-location:
                if loop-block is air:
                    spawn 5 of particle snowball poof at loop-block
                    add loop-block to {buzlar::%shooter%::*}
            wait 3 ticks
            invoke "buz-islem" from shooter
      
on shoot:
    if shooter is a player:
        if "%lore of attacker's tool%" contains "Buz":
            loop 60 times:
                wait 1 ticks
                spawn 5 of particle snowball poof at projectile
      
      
on break of ice block:
    loop all players:
        if {buzlar::%loop-player%::*} contains event-block:
            cancel event
          
sub "buz-islem":
    loop {buzlar::%parameter 1%::*}:
        set block at loop-value to ice block
    wait 5 seconds
    loop {buzlar::%parameter 1%::*}:
        set block at loop-value to air
        wait 0.5 ticks
    wait 2 ticks
    clear {buzlar::%parameter 1%::*}
 

bikkik

Obsidyen Madencisi
En iyi cevaplar
0
Lore kısmını &7 cinsinden yapabilirsin itemlerde daha iyi görünebilir. Skript güzel :)
 

MD_Optional

Altın Madencisi
En iyi cevaplar
0
Kullanmadım Güzel Gibi Gözüküyor.
(Skript Yapmaktan Anlamam Skript Kulanmaktan Anlarım.) > Güzel Oldu :D
Sadece Biraz Edit Yaparım Değistiririm :D
 
Üst