akenx0
on lightning:
set {locationlightning} to location of event-entity
loop all blocks in radius 3 of {locationlightning}:
set loop-block to air
set {_x} to {locationlightning}'s x-coord
set {_y} to {locationlightning}'s y-coord
set {_z} to {locationlightning}'s z-coord
send "&c&lDİKKAT! &6X: &e%{_x}% &6Y: &e%{_y}% &6Z: &e%{_z}% &fkoordinatlarında bir yıldırım düştü!" to players
monarchvx
olmadı hocam sürümüm 1.8.8-1.8.9JavaScript:on lightning: set {locationlightning} to location of event-entity loop all blocks in radius 3 of {locationlightning}: set loop-block to air set {_x} to {locationlightning}'s x-coord set {_y} to {locationlightning}'s y-coord set {_z} to {locationlightning}'s z-coord send "&c&lDİKKAT! &6X: &e%{_x}% &6Y: &e%{_y}% &6Z: &e%{_z}% &fkoordinatlarında bir yıldırım düştü!" to players
Eğer işinize yaradıysa Elmas verirseniz sevinirim.
akenx0
on lightning:
set {locationlightning} to location of entity
loop all blocks in radius 3 of {locationlightning}:
set loop-block to air
set {_x} to {locationlightning}'s x-coord
set {_y} to {locationlightning}'s y-coord
set {_z} to {locationlightning}'s z-coord
send "&c&lDİKKAT! &6X: &e%{_x}% &6Y: &e%{_y}% &6Z: &e%{_z}% &fkoordinatlarında bir yıldırım düştü!" to players
monarchvx
There is no entity in lightning event diye hata veriyor hocamBunu deneyebilir misin?JavaScript:on lightning: set {locationlightning} to location of entity loop all blocks in radius 3 of {locationlightning}: set loop-block to air set {_x} to {locationlightning}'s x-coord set {_y} to {locationlightning}'s y-coord set {_z} to {locationlightning}'s z-coord send "&c&lDİKKAT! &6X: &e%{_x}% &6Y: &e%{_y}% &6Z: &e%{_z}% &fkoordinatlarında bir yıldırım düştü!" to players
akenx0
Hocam o zaman bunu yapmanın yolu yok, manuel olarak bir yere yıldırım yollayıp o şekilde önceden yıldırım koordinatlarını belirleyebiliriz.There is no entity in lightning event diye hata veriyor hocam
monarchvx
1.8.9 için olurmu? 2.8.3Hocam o zaman bunu yapmanın yolu yok, manuel olarak bir yere yıldırım yollayıp o şekilde önceden yıldırım koordinatlarını belirleyebiliriz.
Skript sürümünüz bu event'i desteklemiyor sanırsam.
Skript 2.8.3 sürümünde bu kodu rahatlıkla çalıştırabiliyorum.
Güncellemenizi öneririm.
on lightning strike:
set {_x} to x of event-location
set {_y} to y of event-location
set {_z} to z of event-location
set {_world} to world of event-location
set {_blocks_to_destroy} to {3 + random integer from 0 to 1}
loop {_blocks_to_destroy} times:
set {_random_x} to {_x} + random integer from -2 to 2
set {_random_y} to {_y} + random integer from -2 to 2
set {_random_z} to {_z} + random integer from -2 to 2
set block at {_random_x} {_random_y} {_random_z} in {_world} to air
monarchvx
Olmuyor, Ther's no location in an on lightning strike event hatasını alıyorumKolay gelsin.
Kod:on lightning strike: set {_x} to x of event-location set {_y} to y of event-location set {_z} to z of event-location set {_world} to world of event-location set {_blocks_to_destroy} to {3 + random integer from 0 to 1} loop {_blocks_to_destroy} times: set {_random_x} to {_x} + random integer from -2 to 2 set {_random_y} to {_y} + random integer from -2 to 2 set {_random_z} to {_z} + random integer from -2 to 2 set block at {_random_x} {_random_y} {_random_z} in {_world} to air
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!