Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # By UrsoBatata
- # Nome: U1v1 2.0
- # Versão: 2.0.0
- options:
- tag: &6[1v1]
- command /1v1 setspawn:
- permission: "1v1.admin.setspawn"
- trigger:
- set {1v1} to location of player
- send "{@tag} &3Você setou com sucesso o spawn do 1v1"
- command /1v1:
- trigger:
- set {1v1spawn} to 1
- teleport player to {1v1}
- heal player
- clear player's inventory
- give player 1 blaze rod named "&b1v1"
- set {kits.%player%.lastused} to 0
- on damage:
- {1v1spawn} is 1:
- cancel event
- command /1v1 setloc1:
- permission: "1v1.admin.setloc1"
- trigger:
- set {loc1} to location of player
- send "&6Você setou com sucesso o lado 1!"
- command /1v1 setloc2:
- permission: "1v1.admin.setloc2"
- trigger:
- set {loc2} to location of player
- send "&6Você setou com sucesso o lado 2!"
- on right click on entity:
- player is holding blaze rod
- clicked entity is a player
- name of tool of player is "&b1v1"
- send "{@tag} &bVocê convidou %clicked entity% para um 1v1"
- set {1v1.%player%} to clicked entity
- on right click on entity:
- name of tool of player is "&b1v1"
- {1v1.%clicked entity%} is set
- {1v1.%clicked entity%} is player
- clear {1v1.%player%}
- set {lv1.ingame} to 1
- set {1v1spawn} to 0
- send "{@tag} &7-------------------------------------" to clicked entity
- send "{@tag} &6Você agora está lutando com %player% " to clicked entity
- send "{@tag} &7-------------------------------------" to clicked entity
- send "{@tag} &7-------------------------------------" to player
- send "{@tag} &6Você agora está lutando com %clicked entity%" to player
- send "{@tag} &7-------------------------------------" to player
- clear player's inventory
- clear clicked entity's inventory
- teleport player to {loc1}
- teleport clicked entity to {loc2}
- set {kits.%player%.lastused} to 0
- set {kits.%clicked entity%.lastused} to 0
- wait 3 ticks
- equip entity with all iron armour
- equip player with all iron armour
- give player 1 diamond sword named "PvP"
- give entity 1 diamond sword named "PvP"
- give player 8 soup
- give entity 8 soup
- apply slowness 10 to clicked entity for 21 seconds
- apply jump boost -10 to clicked entity for 21 seconds
- apply slowness 10 to player for 21 seconds
- apply jump boost -10 to player for 21 seconds
- wait 1 seconds
- set {1v1.waittime} to 1
- send "{@tag} &aPartida inicia em 20 segundos" to player
- send "{@tag} &aPartida inicia em 20 segundos" to clicked entity
- wait 10 seconds
- send "{@tag} &aPartida inicia em 10 segundos" to player
- send "{@tag} &aPartida inicia em 10 segundos" to clicked entity
- wait 6 seconds
- send "{@tag} &aPartida inicia em 3 segundos" to player
- send "{@tag} &aPartida inicia em 3 segundos" to clicked entity
- wait 1 seconds
- send "{@tag} &aPartida inicia em 2 segundos" to player
- send "{@tag} &aPartida inicia em 2 segundos" to clicked entity
- wait 1 seconds
- send "{@tag} &aPartida inicia em 1 segundo" to player
- send "{@tag} &aPartida inicia em 1 segundo" to clicked entity
- wait 1 seconds
- send "{@tag} &aPartida Iniciou!" to player
- send "{@tag} &aPartida Iniciou!" to clicked entity
- set {1v1.waittime} to 0
- on damage:
- {1v1.waittime} is 1:
- cancel event
- on right click:
- {1v1.waittime} is 1:
- cancel event
- on quit:
- delete {1v1.%player%}
- clear {1v1.ingame}
- set {1v1spawn} to 0
- on death:
- attacker is a player
- {lv1.ingame} is 1:
- send "{@tag} &7Você matou &d%victim%" to attacker
- wait 3 seconds
- make attacker execute command "/1v1"
- clear {1v1.ingame}
- set {1v1spawn} to 0
- on death of player:
- {lv1.ingame} is 1:
- send "{@tag} &7Você foi morto por &d%attacker%" to victim
- clear {lv1.ingame}
- set {1v1spawn} to 0
Advertisement
Add Comment
Please, Sign In to add comment