Jump to content

Manhunt Skript


Recommended Posts

I made a manhunt skript 😄

# Manhunt

command /hunter [<player>]:
  trigger:
    give arg-1 compass named "&e&lPlayer &6&lTracker"
    send "&aYou are now a &chunter&a! The game will start momentarily" to arg-1
    set {Hfreeze::%uuid of player%} to true

command /runner [<player>]:
  trigger:
    set {Target} to arg-1
    send "&7You are now a runner, the hunters can track you! The game will start momentarily" to arg-1
    set {Rfreeze::%uuid of player%} to true
    
command /start:
  trigger:
    set {Rfreeze::%uuid of player%} to false
    broadcast "The game has started, &6&l%{Target}% &rnow has &a&l10 &rseconds to gather materials before the hunters are released"
    wait 10 seconds
    set {Hfreeze::%uuid of player%} to false
    broadcast "&7The hunters have been released, and are chasing &6&l%{Target}%"
    wait 1 tick
    heal all players
    feed all players
    broadcast "All players have been replenished and ready for the chase!"

on right click:
  player's held item is compass named "&e&lPlayer &6&lTracker"
  {Target} is in "world"
  send "&aYou are now tracking &6&l%{Target}%" to player
  loop all players:
    set the loop-player's compass target to location of {Target}

on right click:
  player's held item is compass named "&e&lPlayer &6&lTracker"
  {Target} is in "world_nether"
  send "Unable to track the target, &6&l%{Target}% &ris in the &lNether!" to player

on right click:
  player's held item is compass named "&e&lPlayer &6&lTracker"
  {Target} is in "world_the_end"
  send "&7Unable to track the target, &6&l%{Target}% &ris in &lThe End!" to player

On any movement:
  {Hfreeze::%uuid of player%} is true
  {Rfreeze::%uuid of player%} is true
  send "&6You need to wait until the game starts before you can move!"
  cancel event
  wait 1 second

EDIT: made the runner freeze until the game starts too

Edited by ButterflyBullets
  • Like 1
  • Thanks 1

-----------------------

Skript - 8 months

Minecraft - 8 years                         No Bitches?

-----------------------

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...