0mustafa
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}
s2wx
Skript sürümü 2.5.3 11 error verdiPython: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
Hatanın logunu paylaşır mısın?Skript sürümü 2.5.3 11 error verdi
0mustafa
söylemeyi unutmuşum, SKbee gereksinimi var bu kod için.Skript sürümü 2.5.3 11 error verdi
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!