Bulundu Kazma skript

  • Konuyu Başlatan Konuyu Başlatan BowleR
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 2.318
  • Etiketler Etiketler
    destek
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
B

BowleR

Ziyaretçi
Mesela 100 obsidian kırınca eski kazmasını 1 dakikalığına v100 ile değişecek sonra eski kazmasına geri dönecek bunu nasıl yapabilirim
 
100 adet obsidyen kırdığında oyuncunun kazmasını kaydedip süre dolduğunda kaydettiğin kazmayı oyuncuya geri verip özel kazmayı envanterinden alabilirsin, açık olmaması için özel kazmayı yere atmamasını ve öldüğünde kazmanın silinmesini yapmayı unutma.
 
100 adet obsidyen kırdığında oyuncunun kazmasını kaydedip süre dolduğunda kaydettiğin kazmayı oyuncuya geri verip özel kazmayı envanterinden alabilirsin, açık olmaması için özel kazmayı yere atmamasını ve öldüğünde kazmanın silinmesini yapmayı unutma.
Beceremedim xD yardım edebilecek varmı
 
Mesela 100 obsidian kırınca eski kazmasını 1 dakikalığına v100 ile değişecek sonra eski kazmasına geri dönecek bunu nasıl yapabilirim
Merhaba , Elimde denicek sunucum yok localdede hazır sw yok deniyemicem yani siz sonucu sölersiniz efenim.

Kod:
on break of obsidian:
        if {kos::%player%} >= 100:
             clear {kos::%player%}
             execute console command "enchant efficiency 100 %player%"
             wait 60 seconds
             execute console command "enchant efficiency 0 %player%"
             stop
        else:
               add 1 to {kos::%player%}
               stop

İyi Forumlar...

Saygılarımla...
 
Merhaba , Elimde denicek sunucum yok localdede hazır sw yok deniyemicem yani siz sonucu sölersiniz efenim.

Kod:
on break of obsidian:
        if {kos::%player%} >= 100:
             clear {kos::%player%}
             execute console command "enchant efficiency 100 %player%"
             wait 60 seconds
             execute console command "enchant efficiency 0 %player%"
             stop
        else:
               add 1 to {kos::%player%}
               stop

İyi Forumlar...

Saygılarımla...
Oyuncuda v5 varsa 0 yapacak ama
 
Ve hata verdi ek eklenti istiyormu skriptin çalışması için skquery skrayfall yok bende
 
Kod:
on break of obsidian:
    if {kos::%player%} >= 100:
        clear {kos::%player%}
        set {_n} to level of efficiency of the player's tool
        enchant player's tool with efficiency 100
        wait 60 seconds
        enchant player's tool with "efficiency %{_n}%" parsed as enchantment type
        stop
    else:
        add 1 to {kos::%player%}
        stop
denermisin ?
 
Sakın 2.1.2'den başka sürüm kullanmayın allah korusun sunucunuz falan çöker. 2014'ten kalma sürüm varken 2020'deki 2.2dev36 sürümünü kim ne yapsın.
 
Kod:
on break of obsidian:
    if {kos::%player%} >= 100:
        clear {kos::%player%}
        set {_n} to level of efficiency of the player's tool
        enchant player's tool with efficiency 100
        wait 60 seconds
        enchant player's tool with "efficiency %{_n}%" parsed as enchantment type
        stop
    else:
        add 1 to {kos::%player%}
        stop
denermisin ?
Kazmayı veriyor tamam ama v100 de kalıyor ve ayrıca yere vs. atabiliyoruz fener koyunca hızlandırma büyüsü gibi birşey yapabilirmiyiz daha basit olur
 
Kod:
on break of obsidian:
    if {kos::%player%} >= 100:
        clear {kos::%player%}
        set {_n} to level of efficiency of the player's tool
        enchant player's tool with efficiency 100
        wait 60 seconds
        enchant player's tool with "efficiency %{_n}%" parsed as enchantment type
        stop
    else:
        add 1 to {kos::%player%}
        stop
denermisin ?
benim bildiğim efficiency enchantment type efficiency %integer% enchantment dır

ordaki type ı silmeyi deneyebilirsin
 
Kod:
on break of obsidian:
    if {kos::%player%} >= 100:
        clear {kos::%player%}
        add "{items:1}" to nbt of player's tool
        add "{level:%level of efficiency of the player's tool%}" to nbt of player's tool
        set {_t} to player's tool
        wait a tick
        enchant player's tool with efficiency 100
        wait 2 seconds
        set {_i} to player's tool
        set {_enc::*} to enchantments of {_i}  
        wait a tick
        disenchant player's tool
        wait a tick
        loop {_enc::*}:
            set {_ench} to "%loop-value% %level of loop-value of {_i}%" parsed as a enchantment type
            level of {_ench} of {_i} >= 1
            enchant player's tool with {_ench}
        replace all "items:1" and "level" with "" in nbt of player's tool
        set tag "level" of nbt of player's tool to 0
        stop
    else:
        add 1 to {kos::%player%}
        stop
on tool change:
    tag "items" of nbt of past player's tool is 1
    cancel event
on drop:
    tag "items" of nbt of event-item is 1
    cancel event
on join:
    tag "items" of nbt of player's tool is 1
    set {_n} to tag "level" of nbt of player's tool
    {_n} >= 1:
        enchant player's tool with "efficiency %{_n}%" parsed as enchantment type
    else:  
        set {_i} to player's tool
        set {_enc::*} to enchantments of {_i}  
        wait a tick
        disenchant player's tool
        wait a tick
        loop {_enc::*}:
            set {_ench} to "%loop-value% %level of loop-value of {_i}%" parsed as a enchantment type
            level of {_ench} of {_i} >= 1
            enchant player's tool with {_ench}
    replace all "items:1" and "level" with "" in nbt of player's tool
buglarını düzelttim denediğim kadarıyla sorun yok
 
Son düzenleme:
Kod:
on break of obsidian:
    if {kos::%player%} >= 100:
        clear {kos::%player%}
        add "{items:1}" to nbt of player's tool
        add "{level:%level of efficiency of the player's tool%}" to nbt of player's tool
        set {_t} to player's tool
        wait a tick
        enchant player's tool with efficiency 100
        wait 2 seconds
        set {_i} to player's tool
        set {_enc::*} to enchantments of {_i} 
        wait a tick
        disenchant player's tool
        wait a tick
        loop {_enc::*}:
            set {_ench} to "%loop-value% %level of loop-value of {_i}%" parsed as a enchantment type
            level of {_ench} of {_i} >= 1
            enchant player's tool with {_ench}
        replace all "items:1" and "level" with "" in nbt of player's tool
        set tag "level" of nbt of player's tool to 0
        stop
    else:
        add 1 to {kos::%player%}
        stop
on tool change:
    tag "items" of nbt of past player's tool is 1
    cancel event
on drop:
    tag "items" of nbt of event-item is 1
    cancel event
on join:
    tag "items" of nbt of player's tool is 1
    set {_n} to tag "level" of nbt of player's tool
    {_n} >= 1:
        enchant player's tool with "efficiency %{_n}%" parsed as enchantment type
    else: 
        set {_i} to player's tool
        set {_enc::*} to enchantments of {_i} 
        wait a tick
        disenchant player's tool
        wait a tick
        loop {_enc::*}:
            set {_ench} to "%loop-value% %level of loop-value of {_i}%" parsed as a enchantment type
            level of {_ench} of {_i} >= 1
            enchant player's tool with {_ench}
    replace all "items:1" and "level" with "" in nbt of player's tool
buglarını düzelttim denediğim kadarıyla sorun yok
 

Ekli dosyalar

  • hata1.PNG
    hata1.PNG
    123,1 KB · Görüntüleme: 66
  • hata3.png
    hata3.png
    122,8 KB · Görüntüleme: 53
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst