Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- specchat: &8[&5Spectator&8]&7
- P: &8[&5Spectator&8]&7
- Version: 2.1
- command /t [<player>]:
- usage: /t [<player>]
- trigger:
- if {spec::%command sender%} is true:
- if arg-1 is not set:
- loop all players:
- {spec::%loop-player%} is not set
- add loop-player to {_tp::*}
- set {_player} to (a random element out of {_tp::*})
- if {_player} is not set:
- send "{@P} Nobody to teleport to."
- send "{@P} Teleported to %{_player}%"
- teleport command sender to {_player}
- else:
- send "{@P} Teleported to %arg-1%"
- teleport command sender to arg-1
- else:
- send "{@P} You are not spectating!"
- command /unspec [<player>]:
- usage: /unspec [<player>]
- trigger:
- if {spec::%command sender%} is set:
- command "/unspec %command sender%"
- arg-1 is not set
- send "{@P} &aYa no estas specteando!"
- stop trigger
- if command sender does not have permission "uhc.spectate":
- send "{@P} &cNo estas specteando o no tienes permisos!"
- stop trigger
- if arg-1 is set:
- set {_player} to arg-1
- else:
- set {_player} to command sender
- if {spec::%{_player}%} is true:
- delete {spec::%{_player}%}
- command "/rea %{_player}%"
- set {_player}'s gamemode to survival
- clear the inventory of {_player}
- command "/spawn %{_player}%"
- command "/effect %{_player}% clear"
- command "/speed walk 1 %{_player}%"
- command "/speed fly 1 %{_player}%"
- else:
- send "{@P} %{_player}% is not spectating!"
- command /spec [<player>]:
- usage: /spec [<player>]
- permission: uhc.spectate
- trigger:
- if arg-1 is set:
- set {_player} to arg-1
- else:
- set {_player} to command sender
- if {spec::%{_player}%} is not set:
- send "&b=========================================" to {_player}
- send "{@P} &3Ahora estas especteando!" to {_player}
- send "{@P} Para hablarle a otros espectadores usa /spc." to {_player}
- send "{@P} Para ver todos los espectadores usa /seespecs." to {_player}
- send "&b=========================================" to {_player}
- set {_player}'s gamemode to creative
- clear {_player}'s inventory
- set {spec::%{_player}%} to true
- command "/van %{_player}%"
- command "/vanflag %{_player}% +chat"
- command "/vanflag %{_player}% -see"
- clear inventory of {_player}
- give 1 glowstone named "&6Vision nocturna" to {_player}
- give 1 glass bottle named "&6Limpiar efectos de pociones" to {_player}
- give 1 nether star named "&6Jugadores cercanos" to {_player}
- give 1 golden apple named "&6Ir a 0,0" to {_player}
- give 1 player head named "&6Ir hacia jugador aleatorio" to {_player}
- give 1 redstone named "&6Abre inventarios" to {_player}
- else:
- send "{@P} &c%arg-1% &cYa esta especteando."
- on right click on entity:
- {spec::%event-player%} is true
- name of event-player's tool is "&6Abre inventarios"
- entity is a player
- distance between event-player and entity is less than 5
- event-player command "/inv %entity%"
- on right click on furnace:
- {spec::%event-player%} is true
- name of event-player's tool is "&6Abre inventarios"
- distance between event-player and event-block is less than 5
- open event-block to event-player
- on right click on chest:
- {spec::%event-player%} is true
- name of event-player's tool is "&6Abre inventarios"
- distance between event-player and event-block is less than 5
- set (player's ender chest) to (inventory of event-block)
- open (player's ender chest) to (event-player)
- on command "/tp":
- {spec::%command sender%} is set
- command sender does not have permission "uhc.spectate"
- cancel the event
- command sender command "/t %arguments%"
- on command "/invsee":
- {spec::%command sender%} is set
- command sender does not have permission "uhc.spectate"
- cancel the event
- command sender command "/inv %arguments%"
- command /inv <player>:
- trigger:
- if {spec::%command sender%} is true:
- open arg 1's inventory to command sender
- message "{@P} Opened %arg-1%'s inventory."
- else:
- message "{@P} Your not spectating!"
- command /seespecs:
- trigger:
- if {spec::%command sender%} is not set:
- send "{@P} &cNo estas specteando!"
- stop trigger
- if {spec::*} is set:
- send "{@P} &bEspectadores:"
- loop {spec::*}:
- send " &f- &c%loop-index%"
- else:
- send "{@P} &cNo hay espectadores!"
- on gamemode change:
- {spec::%event-player%} is set
- cancel the event
- command /spc <text>:
- aliases: /specchat, /specc
- trigger:
- if {spec::%command sender%} is not set:
- send "{@P} &cNo estas especteando!"
- stop trigger
- loop all players:
- {spec::%loop-player%} is true
- send "{@specchat} %command sender%: %arg-1%" to loop-player
- on quit:
- {spec::%player%} is true
- command "/unspec %player%"
- #----------------------#
- # TOOLS #
- #----------------------#
- on rightclick holding glowstone:
- name of player's tool is "&6Vision nocturna"
- {spec::%player%} is true
- apply night vision to player for 999 days
- send "{@P} &a¡Listo!."
- on rightclick holding glass bottle:
- name of player's tool is "&6Limpiar efectos de pociones"
- {spec::%player%} is true
- command "/effect %player% clear"
- send "{@P} &a¡Listo!"
- on rightclick holding 397:3:
- name of player's tool is "&6Ir hacia jugador aleatorio"
- {spec::%player%} is true
- loop all players:
- {spec::%loop-player%} is not set
- add loop-player to {_tp::*}
- set {_player} to (a random element out of {_tp::*})
- teleport player to {_player}
- if {_player} is not set:
- send "{@P} &cNo hay nadie hacia quien ir."
- stop
- send "{@P} Especteando a: &c%{_player}%"
- on rightclick holding a golden apple:
- name of player's tool is "&6Ir a 0,0"
- {spec::%player%} is true
- set {_pos} to (location at 0, 250, 0)
- while block at location 2 below {_pos} is air:
- set {_pos} to (location 2 below {_pos})
- teleport the command sender to (location 15 above {_pos})
- send "{@P} &aAhora estas en 0,0"
- on rightclick holding a nether star:
- name of player's tool is "&6Jugadores cercanos"
- {spec::%player%} is true
- loop players in radius 200 around player:
- {spec::%loop-player%} is not set
- loop-player is not player
- add "&7%loop-player%&f(&c%round(distance between player and loop-player)%m&f)" to {_nearby::*}
- if {_nearby::*} is not set:
- send "{@P} &cNo hay jugadores cercanos."
- stop
- send "{@P} &bJugadores cercanos: &c%{_nearby::*}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement