on damage:
if victim is a player:
if attacker is holding diamond axe named "&&b&l&oStormbreaker":
if chance of 25%:
execute console command "thor %player%"
else:
send "&7Şansına küs işe yaramadı 4/1 şans ile atarsın."
Kod:on damage: if victim is a player: if attacker is holding diamond axe named "&&b&l&oStormbreaker": if chance of 25%: execute console command "thor %player%" else: send "&7Şansına küs işe yaramadı 4/1 şans ile atarsın."
Bu hatayı veriyor dostum.Üstte kodu düzenledim bir daha deneyin.
command /baltaal:
permission: balta.exe
trigger:
set {balta::%Player%} to golden axe named "&6Yıldırım &2Baltası"
set 1st line of lore of {balta::%Player%} to "&bSağ tıklayınca yıldırım atar."
set 2nd line of lore of {balta::%Player%} to "&c4/1 şans ile vurursun."
give {balta::%Player%} to player
on right click:
player is holding {balta::%Player%}:
if chance of %25:
strike lightning at the targeted block
else:
send "&bŞansını tekrar dene!"
"Is holding" kismini degistirmen gerek. If attacker's tool is... diye yazmalısın. Mobilde olmasam yazardımÜstte kodu düzenledim bir daha deneyin.
larayasar
on damage:
if victim is a player:
if attacker is holding diamond axe named "&&b&l&oStormbreaker":
if chance of 25%:
execute console command "thor %victim%"
else:
send "&7Şansına küs işe yaramadı 4/1 şans ile atarsın."
larayasar
Şansı 10% yaptıysan else kısmındaki mesajı 1/10 yap :DArkadaşlar kodu şöyle yaptım ve çalıştı.
Konu kilitlenebilir.Kod:on damage: if victim is a player: if attacker's tool is diamond axe named "&b&l&oStormbreaker": if chance of 10%: execute console command "thor %victim%" else: send "&7Şansına küs işe yaramadı 4/1 şans ile atarsın."
Malesefki mesaj çıkmıyor :DŞansı 10% yaptıysan else kısmındaki mesajı 1/10 yap :D
Gerek yok ama %90 şansla full yazı spamlamasına :Dşeklinde yaparsan çıkar sanırım :DKod:send "&7Şansına küs işe yaramadı 1/10 şans ile atarsın." to attacker
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!