Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SKript PAD V1.0
- #Memerlukan Add-ON
- # Extras SK
- # SkRayFall
- # SkQuery
- options:
- blok: sea lantern
- pf: &7&l[&6Teleporter&7&l]&f
- aliases:
- sea lantern = 169
- on any movement:
- if {pp.%player%} is not set:
- if block beneath player is {@blok}:
- player is online
- if {pp.dest.%location of block beneath player%} is set:
- set {pp.%player%} to 1
- set action bar of player to "&7&l[&6Teleporter&7&l]&f Kamu Di Teleport Ke &6&l%{pp.dest.%location of block beneath player%}%"
- send "&7&l[&6Teleporter&7&l]&f Kamu Di Teleport Ke &6&l%{pp.dest.%location of block beneath player%}%"
- play "PORTAL_TRAVEL" specifically to player with pitch 2 and volume 10
- set {_x} to x-coord of {pp.tele.%{pp.dest.%location of block beneath player%}%}
- set {_y} to y-coord of {pp.tele.%{pp.dest.%location of block beneath player%}%}
- set {_z} to z-coord of {pp.tele.%{pp.dest.%location of block beneath player%}%}
- set {_y1} to {_y} + 1
- set {_arah} to facing of the player
- set {_a} to "%{_arah}%"
- if {_a} is "north":
- set {_z} to {_z} - 2
- if {_a} is "west":
- set {_x} to {_x} - 2
- if {_a} is "east":
- set {_x} to {_x} + 2
- if {_a} is "south":
- set {_z} to {_z} + 2
- set {_y2} to {_y} - 1
- set {_hasil} to location of block at the location ({_x}, {_y1}, {_z})
- set {_shasil} to location of block at the location ({_x}, {_y2}, {_z})
- wait 5 tick
- teleport player to {_hasil}
- delete {pp.%player%}
- wait 1 tick
- spawn 100 of particle witch magic:0 offset by 2, 1, 2 at player for player with data 0
- stop
- command /pad:
- trigger:
- player command "/setpad"
- command /setpad [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&e&m----------------------------------------------------"
- send " "
- send "/setpad Rec <code> &7- &eMengeset Pad Sebagai Penerima"
- send "/setpad Sen <code> &7- &eMengeset Pad Sebagai Pengirim"
- send " "
- send "Untuk Menghapus Pad Tinggal Mengancurkan Pad"
- send " "
- send "&e&m----------------------------------------------------"
- if arg 1 is "Rec":
- if block beneath player is not {@blok}:
- send "{@pf} Block Di Bawahmu Harus &b{@blok}"
- stop
- if block beneath player is {@blok}:
- set {pp.tele.%arg 2%} to location of player
- set {pp.tele.%location of block beneath player%} to arg 2
- send "{@pf} Blok %location of block beneath player% telah di setting sebagai penerima"
- send "{@pf} Dengan Code ""%arg 2%"""
- send "{@pf} Gunakan /setpad sen %arg 2% pada teleport pad lain untuk teleport ke sini"
- if arg 1 is "sen":
- if block beneath player is not {@blok}:
- send "{@pf} Block Di Bawahmu Harus &b{@blok}"
- stop
- if block beneath player is {@blok}:
- set {pp.dest.%location of block beneath player%} to arg 2
- send "{@pf} Blok %location of block beneath player% telah di setting sebagai pengirim"
- send "{@pf} Dengan Code ""%arg 2%"""
- send "{@pf} Gunakan /setpad rec %arg 2% pada teleport pad lain untuk teleport ke sana"
- on break of {@blok}:
- if player is op:
- if {pp.dest.%location of block%} is set:
- send "{@pf} Pad Pengirim ""%{pp.dest.%location of block%}%"" Telah Di hancurkan"
- delete {pp.dest.%location of block%}
- if {pp.tele.%location of block%} is set:
- send "{@pf} Pad Penerima ""%{pp.tele.%{pp.tele.%location of block%}%}%"" Telah Di hancurkan"
- delete {pp.tele.%{pp.tele.%location of block%}%}
- delete {pp.tele.%location of block%}
Advertisement
Add Comment
Please, Sign In to add comment