Bulundu Kılıca Sağ Tıklayınca Yakındaki Oyunculara Effekt Verme

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

Wortex707

Birisi mi Spawnlandı?
Katılım
29 Ocak 2025
Mesajlar
8
Elmaslar
0
Puan
110
Yaş
31
Konum
Minecraft
Minecraft
Wortex707a

Discord:

s2wx

Arkadaşlar
/Kılıc shulker (isim) yazınca elmas kılıcı vercek (op yetkisi olsun)

Bu Kılıca Sağ Tıklayınca Yakınımızdaki Oyunculara Yükselme Effekti Vericek 3 Saniye Sürecek
Böyle Bir Plugin Varsa Onuda Yazabilirsiniz
 
Keşke Skript versiyonu falan da yazaydın :D
 
Python:
options:
    radius: 10 # Ne kadar uzağımızdaki oyuncuları etkileyeceğini belirler.
    levitationLevel: 1 # yükselme efektinin levelini ayarlar, ne kadar fazla olursa o kadar hızlı yükselme gerçekleşir.
    levitationDuration: 10 # yükselme efektinin ne kadar kalacağını saniye cinsinden yaz.
    gravityItem: diamond sword # eşya türünde olmalı. İstediğine ayarlayabilirsin elmas kılıç dediğin gibi ayarlı.
    instantKill: true # eğer ki true ise, bu eşyayla vurduğun her şey anında kül olacak...


command /kılıç:
    aliases: sword, kılıc, kilic, kilıc, kılic, kiliç
    permission: op
    permission message: &cBu komuta yetkin yok.
    trigger:
        set {_item} to {@gravityItem}
        set boolean tag "isGravitySword" of custom nbt of {_item} to true
        set name of {_item} to "<#ff4400>ʏᴇʀ çᴇᴋɪᴍɪ ᴋɪʟɪᴄɪ"
        set 1st line of lore of {_item} to "<#CDCDCD>Yetkili gücünü köklerine kadar yaşatan"
        set 2st line of lore of {_item} to "<#CDCDCD>yer çekimini değiştiren efsanevi bir kılıç!"
        set 4st line of lore of {_item} to "<#eaff00>ʏᴀʟɴɪᴢᴄᴀ ʏᴇᴛᴋɪʟɪʟᴇʀ ᴋᴜʟʟᴀɴᴀʙɪʟɪʀ!"
        give {_item} to player

on damaging of player:
    if attacker is a player:
        set {_p} to attacker
        if {_p} is op:
            executeAdminSwordAttack(victim)
            

on pickup {@gravityItem}:
    if boolean tag "isGravitySword" of custom nbt of event-item is true:
        if player isn't op:
            cancel event
            if string list tag "warnedPlayers" of custom nbt of event-item doesn't contain uuid of player:
                send "%nl%<#ff4040>ʙᴜ ᴋɪʟɪᴄɪ ᴋᴀʟᴅɪʀᴀᴄᴀᴋ ɢüᴄüɴ ʏᴏᴋ...%nl%" to player
                play sound "block.note_block.bass" at pitch 0.5 to player
                add uuid of player to string list tag "warnedPlayers" of custom nbt of event-item
                wait 3 seconds
                remove uuid of player from string list tag "warnedPlayers" of custom nbt of event-item
    
on spawn of dropped item:
    if "%full nbt of event-entity%" contains "isGravitySword":
        set custom name of event-entity to "<#ff4400>ᴀᴅᴍɪɴ ᴘᴏᴡᴇʀ"



on right click holding {@gravityItem}:
    if boolean tag "isGravitySword" of custom nbt of held item of player is true:
        executeGravitySwordSkill(player)


local function executeAdminSwordAttack(victim: player):
    if {@instantKill} is true:
        strike lightning at {_victim}
        kill {_victim}
        make 100 poof at {_victim} with extra 0.13


local function executeGravitySwordSkill(p: player):
    if {_p} is op:
        loop all players in radius {@radius} of {_p}:
            if loop-player isn't op:
                set {_duration} to "{@levitationDuration} seconds" parsed as a time span
                remove LEVITATION from potion effects of loop-player
                apply levitation potion of tier {@levitationLevel} without any particles whilst hiding the potion icon to loop-player for {_duration}

Biraz detaylı bir kod oldu :D Hata çıkarsa atarsın.

Daha fazla skript için, discord: 0mustafa
 
Python:
options:
    radius: 10 # Ne kadar uzağımızdaki oyuncuları etkileyeceğini belirler.
    levitationLevel: 1 # yükselme efektinin levelini ayarlar, ne kadar fazla olursa o kadar hızlı yükselme gerçekleşir.
    levitationDuration: 10 # yükselme efektinin ne kadar kalacağını saniye cinsinden yaz.
    gravityItem: diamond sword # eşya türünde olmalı. İstediğine ayarlayabilirsin elmas kılıç dediğin gibi ayarlı.
    instantKill: true # eğer ki true ise, bu eşyayla vurduğun her şey anında kül olacak...


command /kılıç:
    aliases: sword, kılıc, kilic, kilıc, kılic, kiliç
    permission: op
    permission message: &cBu komuta yetkin yok.1
    trigger:
        set {_item} to {@gravityItem}
        set boolean tag "isGravitySword" of custom nbt of {_item} to true
        set name of {_item} to "<#ff4400>ʏᴇʀ çᴇᴋɪᴍɪ ᴋɪʟɪᴄɪ"
        set 1st line of lore of {_item} to "<#CDCDCD>Yetkili gücünü köklerine kadar yaşatan"
        set 2st line of lore of {_item} to "<#CDCDCD>yer çekimini değiştiren efsanevi bir kılıç!"
        set 4st line of lore of {_item} to "<#eaff00>ʏᴀʟɴɪᴢᴄᴀ ʏᴇᴛᴋɪʟɪʟᴇʀ ᴋᴜʟʟᴀɴᴀʙɪʟɪʀ!"
        give {_item} to player

on damaging of player:
    if attacker is a player:
        set {_p} to attacker
        if {_p} is op:
            executeAdminSwordAttack(victim)
           

on pickup {@gravityItem}:
    if boolean tag "isGravitySword" of custom nbt of event-item is true:
        if player isn't op:
            cancel event
            if string list tag "warnedPlayers" of custom nbt of event-item doesn't contain uuid of player:
                send "%nl%<#ff4040>ʙᴜ ᴋɪʟɪᴄɪ ᴋᴀʟᴅɪʀᴀᴄᴀᴋ ɢüᴄüɴ ʏᴏᴋ...%nl%" to player
                play sound "block.note_block.bass" at pitch 0.5 to player
                add uuid of player to string list tag "warnedPlayers" of custom nbt of event-item
                wait 3 seconds
                remove uuid of player from string list tag "warnedPlayers" of custom nbt of event-item
   
on spawn of dropped item:
    if "%full nbt of event-entity%" contains "isGravitySword":
        set custom name of event-entity to "<#ff4400>ᴀᴅᴍɪɴ ᴘᴏᴡᴇʀ"



on right click holding {@gravityItem}:
    if boolean tag "isGravitySword" of custom nbt of held item of player is true:
        executeGravitySwordSkill(player)


local function executeAdminSwordAttack(victim: player):
    if {@instantKill} is true:
        strike lightning at {_victim}
        kill {_victim}
        make 100 poof at {_victim} with extra 0.13


local function executeGravitySwordSkill(p: player):
    if {_p} is op:
        loop all players in radius {@radius} of {_p}:
            if loop-player isn't op:
                set {_duration} to "{@levitationDuration} seconds" parsed as a time span
                remove LEVITATION from potion effects of loop-player
                apply levitation potion of tier {@levitationLevel} without any particles whilst hiding the potion icon to loop-player for {_duration}

Biraz detaylı bir kod oldu :D Hata çıkarsa atarsın.

Daha fazla skript için, discord: 0mustafa
Skript sürümü 2.5.3 11 error verdi
 
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