Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on inventory click:
- if player's gamemode is survival:
- if clicked slot is helmet:
- cancel event
- if clicked slot is chestplate:
- cancel event
- if clicked slot is leggings:
- cancel event
- if clicked slot is boots:
- cancel event
- if clicked slot is shield:
- cancel event
- variables: #JOIN COUNTER SETUP
- {totaljoins} = 1
- options: #COLORCODE CUSTIMIZATION
- c1: &6
- c2: &7
- name: &6Gravestone &7»
- on damage: #STOPPING TEAMMATES FROM HURTING EACHOTHER
- if {team.%victim's uuid%} is "ghost":
- if {team.%attacker's uuid%} is "ghost":
- cancel event
- if {team.%victim's uuid%} is "zombie":
- if {team.%attacker's uuid%} is "zombie":
- cancel event
- if {team.%victim's uuid%} is "none":
- cancel event
- #| GAMEPLAY
- on pickup of arrow:
- cancel event
- every 20 seconds:
- execute console command "/scoreboard players set @e[type=Arrow] groundkiller 1 {inGround:1b}"
- execute console command "/kill @e[type=Arrow,score_groundkiller_min=1]"
- #----------------------------------------SETUP-----------------------------------------------
- command /setumpkinblock: #SETTING PUMPKIN SPAWN POINT
- permission: *
- permission message: &cNo permission!
- trigger:
- set {pumpkinblock} to skull of "Rovertdoow1st" parsed as offline player named "&ePumpkin"
- set {pumpkinloc} to location of targeted block
- set {pumpkinx} to target block's x coordinate
- set {pumpkinx} to {pumpkinx}-0.5
- set {pumpkiny} to target block's y coordinate
- set {pumpkiny} to {pumpkiny}-0.5
- set {pumpkinz} to target block's z coordinate
- set {pumpkinz} to {pumpkinz}-0.5
- send "{@name} &7You have set the pumpkin block to %{pumpkinblock}%&7 at location %{pumpkinloc}%&7!"
- command /setzombieplaceblock: #ZOMBIE PLACE BLOCK SETUP
- permission: *
- permission message: &cNo permission!
- trigger:
- set {zombieplaceblock} to "%targeted block%" parsed as an item type
- set {zombieplaceloc} to location of targeted block
- send "{@name} &7You have set the zombie place block to %{zombieplaceblock}%&7 at location %{zombieplaceloc}%&7!"
- command /setghostplaceblock: #GHOST PLACE BLOCK SETUP
- permission: *
- permission message: &cNo permission!
- trigger:
- set {ghostplaceblock} to "%targeted block%" parsed as an item type
- set {ghostplaceloc} to location of targeted block
- send "{@name} &7You have set the ghosst place block to %{ghostplaceblock}%&7 at location %{ghostplaceloc}%&7!"
- command /setghostspawn:
- permission: *
- permission message: &cNo permission!
- trigger:
- set {ghostspawn} to location of player
- send "{@name} You set the ghost spawn to &c%{ghostspawn}%&7!"#SETTING GHOST SPAWN
- command /setzombiespawn:
- permission: *
- permission message: &cNo permission!
- trigger:
- set {zombiespawn} to location of player
- send "{@name} You set the zombie spawn to &c%{zombiespawn}%&7!"#SETTING ZOMBIE SPAWN
- #----------------------------------------REPLACE PUMPKIN-----------------------------------------------
- command /replacepumpkin:
- permission: *
- permission message: &cNo permission!
- trigger:
- execute console command "setblock %{pumpkinx}% %{pumpkiny}% %{pumpkinz}% minecraft:player_head{ExtraType:""Rovertdoow1st"",SkullType:3}"
- send "{@name} {@c2} You have reset the {@c1}pumpkin{@c2}!" to player
- #----------------------------------------PICKING UP THE PUMPKIN-----------------------------------------------
- on break: #PICKING UP THE PUMPKIN
- if {team.%player's uuid%} is "zombie":
- if event-block is {pumpkinblock}:
- if location of event-block is {pumpkinloc}:
- set event-block to air
- send "{@name} {@c2}You have picked up the {@c1}pumpkin{@c2}!" to player
- give 1 of skull of "Rovertdoow1st" parsed as offline player named "&ePumpkin" to player
- broadcast "{@name} {@c1}%player% (Zombie){@c2} has picked up a pumpkin!"
- execute console command "effect give %player% minecraft:glowing 99999 99 true"
- execute console command "effect give %player% minecraft:slowness 99999 1 true"
- if {team.%player's uuid%} is "ghost":
- if event-block is {pumpkinblock}:
- if location of event-block is {pumpkinloc}:
- set event-block to air
- send "{@name} {@c2}You have picked up the {@c1}pumpkin{@c2}!" to player
- give 1 of skull of "Rovertdoow1st" parsed as offline player named "&ePumpkin" to player
- broadcast "{@name} {@c1}%player% (Ghost){@c2} has picked up a pumpkin!"
- execute console command "effect give %player% minecraft:glowing 99999 99 true"
- execute console command "effect give %player% minecraft:slowness 99999 1 true"
- #----------------------------------------PLACING THE PUMPKIN-----------------------------------------------
- on place: #PLACING THE PUMPKIN
- if {team.%player's uuid%} is "zombie" or "ghost":
- if player is holding skull of "Rovertdoow1st" parsed as offline player with name "&ePumpkin":
- if block 1 below event-block is not {zombieplaceblock} or {ghostplaceblock}:
- cancel event
- send "{@name} You cannot place that here!" to player
- send "{@name} You cannot place that here!" to player
- if {team.%player's uuid%} is "zombie":
- if player is holding skull of "Rovertdoow1st" parsed as offline player with name "&ePumpkin":
- if block 1 below event-block is {zombieplaceblock}:
- cancel event
- remove 1 of skull of "Rovertdoow1st" parsed as offline player with name "&ePumpkin" from player
- add 1 to {score.zombie}
- add 1 to {collected.%player's uuid%}
- add 4 to {coins.%player's uuid%}
- send "{@name} {@c2}You have gained {@c1}4 coins{@c2} for placing a pumpkin!"
- broadcast "{@name} {@c1}%player% (Zombie) {@c2}has placed down the pumpkin! The Zombie team now have collected {@c1}%{score.zombie}%&7 pumpkins!"
- send "{@name} {@c2}You have placed a pumpkin!" to player
- execute console command "effect clear %player%"
- execute console command "setblock %{pumpkinx}% %{pumpkiny}% %{pumpkinz}% minecraft:player_head{ExtraType:""Rovertdoow1st"",SkullType:3}"
- loop all players:
- execute console command "effect clear %loop-player%"
- if {team.%loop-player's uuid%} is "zombie":
- teleport loop-player to {zombiespawn}
- heal loop-player
- clear loop-player's inventory
- set loop-player's helmet to unbreakable iron helmet
- give unbreakable stone sword to loop-player
- give unbreakable bow to loop-player
- give 18 arrows to loop-player
- set loop-player's chestplate to unbreakable leather chestplate
- dye loop-player's chestplate green
- set loop-player's leggings to unbreakable leather leggings
- dye loop-player's leggings green
- set loop-player's boots to unbreakable iron boots
- if {team.%loop-player's uuid%} is "ghost":
- teleport loop-player to {ghostspawn}
- heal loop-player
- clear loop-player's inventory
- set loop-player's helmet to unbreakable iron helmet
- give unbreakable stone sword to loop-player
- give unbreakable bow to loop-player
- give 18 arrows to loop-player
- set loop-player's chestplate to unbreakable leather chestplate
- dye loop-player's chestplate white
- set loop-player's leggings to unbreakable leather leggings
- dye loop-player's leggings white
- set loop-player's boots to unbreakable iron boots
- if {team.%player's uuid%} is "ghost":
- if player is holding skull of "Rovertdoow1st" parsed as offline player with name "&ePumpkin":
- if block 1 below event-block is {ghostplaceblock}:
- cancel event
- remove 1 of skull of "Rovertdoow1st" parsed as offline player with name "&ePumpkin" from player
- add 1 to {score.ghost}
- add 1 to {collected.%player's uuid%}
- add 4 to {coins.%player's uuid%}
- send "{@name} {@c2}You have gained {@c1}4 coins{@c2} for placing a pumpkin!"
- broadcast "{@name} {@c1}%player% (Ghost) {@c2}has placed down the pumpkin! The Ghost team now have collected {@c1}%{score.ghost}%&7 pumpkins!"
- send "{@name} {@c2}You have placed a pumpkin!" to player
- execute console command "effect clear %player%"
- execute console command "setblock %{pumpkinx}% %{pumpkiny}% %{pumpkinz}% minecraft:player_head{ExtraType:""Rovertdoow1st"",SkullType:3}"
- loop all players:
- if {team.%loop-player's uuid%} is "zombie":
- teleport loop-player to {zombiespawn}
- heal loop-player
- clear loop-player's inventory
- set loop-player's helmet to unbreakable iron helmet
- give unbreakable stone sword to loop-player
- give unbreakable bow to loop-player
- give 18 arrows to loop-player
- set loop-player's chestplate to unbreakable leather chestplate
- dye loop-player's chestplate green
- set loop-player's leggings to unbreakable leather leggings
- dye loop-player's leggings green
- set loop-player's boots to unbreakable iron boots
- if {team.%loop-player's uuid%} is "ghost":
- teleport loop-player to {ghostspawn}
- heal loop-player
- clear loop-player's inventory
- set loop-player's helmet to unbreakable iron helmet
- give unbreakable stone sword to loop-player
- give unbreakable bow to loop-player
- give 18 arrows to loop-player
- set loop-player's chestplate to unbreakable leather chestplate
- dye loop-player's chestplate white
- set loop-player's leggings to unbreakable leather leggings
- dye loop-player's leggings white
- set loop-player's boots to unbreakable iron boots
- command /leave: #LEAVING THE GAME
- trigger:
- if {queue.%player's uuid%} is true:
- set {queue.%player's uuid%} to false
- set {team.%player's uuid%} to "none"
- teleport player to {spawn}
- clear player's inventory
- send "{@name} {@c2}You have successfully left the game!" to player
- remove 1 from {totalqueue}
- command /join:
- trigger:
- if {elymode.%player's uuid%} is true:
- send "&CError! You cannot join a game while in elytra mode!"
- stop
- if {elymode.%player's uuid%} is false:
- if {queue.%player's uuid%} is false:
- set {queue.%player's uuid%} to true
- send "{@name} {@c2}You have joined the queue!" to player
- add 1 to {totalqueue}
- broadcast "{@name} {@c1}%player%{@c2} has joined the game! {@c1}%{totalqueue}%{@c2} players in the queue!"
- if {ghostteamdecide} is false:
- set {team.%player's uuid%} to "ghost"
- add 1 to {totalplaying}
- teleport player to {ghostspawn}
- send "{@name} You are an {@c1}Ghost (White team){@c2}" to player
- set player's helmet to unbreakable iron helmet
- give unbreakable stone sword to player
- give unbreakable bow to player
- give 18 arrows to player
- set player's chestplate to unbreakable leather chestplate
- dye player's chestplate white
- set player's leggings to unbreakable leather leggings
- dye player's leggings white
- set player's boots to unbreakable iron boots
- if {activated.%player's uuid%} is true:
- stopEffect id "%player%.shield"
- stopEffect id "%player%.sphere"
- stopEffect id "%player%.floor1"
- stopEffect id "%player%.floor2"
- stopEffect id "%player%.floor3"
- stopEffect id "%player%.floor4"
- stopEffect id "%player%.floor5"
- stopEffect id "%player%.floor6"
- stopEffect id "%player%.floor7"
- stopEffect id "%player%.floor8"
- stopEffect id "%player%.floor12"
- stopEffect id "%player%.floor13"
- stopEffect id "%player%.floor14"
- stopEffect id "%player%.floor15"
- stopEffect id "%player%.floor16"
- stopEffect id "%player%.floor17"
- stopEffect id "%player%.floor18"
- stopEffect id "%player%.floor19"
- stopEffect id "%player%.tail"
- stopEffect id "%player%.wings"
- stopEffect id "%player%.text"
- stopEffect id "%player%.spiral0"
- stopEffect id "%player%.spiral1"
- stopEffect id "%player%.circle1"
- stopEffect id "%player%.circle2"
- stopEffect id "%player%.bigcircle"
- set {activated.%player's uuid%} to false
- set {ghostteamdecide} to true
- stop
- if {ghostteamdecide} is true:
- set {team.%player's uuid%} to "zombie"
- send "{@name} {@c2}You have joined the {@c1}Zombie Team{@c2}!" to player
- set {ghostteamdecide} to false
- if {team.%player's uuid%} is "zombie":
- add 1 to {totalplaying}
- teleport player to {zombiespawn}
- send "{@name} You are a {@c1}Zombie (Green team){@c2}!" to player
- set player's helmet to unbreakable iron helmet
- give unbreakable stone sword to player
- give unbreakable bow to player
- give 18 arrows to player
- set player's chestplate to unbreakable leather chestplate
- dye player's chestplate green
- set player's leggings to unbreakable leather leggings
- dye player's leggings green
- set player's boots to unbreakable iron boots
- if {activated.%player's uuid%} is true:
- stopEffect id "%player%.shield"
- stopEffect id "%player%.sphere"
- stopEffect id "%player%.floor1"
- stopEffect id "%player%.floor2"
- stopEffect id "%player%.floor3"
- stopEffect id "%player%.floor4"
- stopEffect id "%player%.floor5"
- stopEffect id "%player%.floor6"
- stopEffect id "%player%.floor7"
- stopEffect id "%player%.floor8"
- stopEffect id "%player%.floor12"
- stopEffect id "%player%.floor13"
- stopEffect id "%player%.floor14"
- stopEffect id "%player%.floor15"
- stopEffect id "%player%.floor16"
- stopEffect id "%player%.floor17"
- stopEffect id "%player%.floor18"
- stopEffect id "%player%.floor19"
- stopEffect id "%player%.tail"
- stopEffect id "%player%.wings"
- stopEffect id "%player%.text"
- stopEffect id "%player%.spiral0"
- stopEffect id "%player%.spiral1"
- stopEffect id "%player%.circle1"
- stopEffect id "%player%.circle2"
- stopEffect id "%player%.bigcircle"
- set {activated.%player's uuid%} to false
- set {ghostteamdecide} to false
- stop
- command /qreset: #RESETING THE GAAME
- permission: *
- permission message: &cNo permission!
- trigger:
- loop all players:
- make loop-player execute "/leave"
- set {queue.%loop-player's uuid%} to false
- set {ghostteamdecide} to false
- set {team.%loop-player's uuid%} to "none"
- set {totalqueue} to 0
- set {currentgame} to false
- set {playingcurrently} to false
- set {currentlyingame.%loop-player's uuid%} to false
- teleport loop-player to {spawn}
- broadcast "{@name} {@c2}The game has been reset!"
- on quit: #RESETING PEOPLE IN GAME
- set {spectator.%player's uuid%} to false
- if {queue.%player's uuid%} is true:
- remove 1 from {totalqueue}
- clear player's inventory
- set {queue.%player's uuid%} to false
- set {team.%player's uuid%} to "none"
- set {zombie.%player's uuid%} to false
- set {elymode.%player's uuid%} to false
- set {currentlyingame.%player's uuid%} to false
- execute console command "effect clear %player%"
- if player has skull of "Rovertdoow1st" parsed as offline player named "&&ePumpkin":
- execute console command "replacepumpkin"
- broadcast "{@name} {@c1}%player% {@c2}has left the game with the pumpkin! The pumpkin has now been respawned!"
- on join: #RESETING PEOPLE THAT JOIN
- if {team.%player's uuid%} is not set:
- set {team.%player's uuid%} to "none"
- if {activated.%player's uuid%} does not exist:
- set {activated.%player's uuid%} to false
- set {spectator.%player's uuid%} to false
- set {queue.%player's uuid%} to false
- set {team.%player's uuid%} to "none"
- set {elymode.%player's uuid%} to false
- teleport player to {spawn}
- clear player's inventory
- set {currentlyingame.%player's uuid%} to false
- execute console command "effect clear %player%"
- on death:
- broadcast "{@c1}%victim% {@c2}has died to {@c1}%attacker%"
- add 2 to {coins.%attacker's uuid%}
- add 1 to {kills.%attacker's uuid%}
- send "{@name} {@c2}You gained {@c1}2 coins{@c2} for killing {@c1}%victim%{@c2}!" to attacker
- broadcast "{@name} {@c1}%victim% {@c2}has lost the pumpkin! {@c1}%attacker% {@c2}now has it!"
- if victim has skull of "Rovertdoow1st" parsed as offline player with name "&ePumpkin":
- execute console command "replacepumpkin"
- on respawn:
- if {team.%player's uuid%} is "ghost":
- clear player's inventory
- teleport player to {ghostspawn}
- set player's helmet to unbreakable iron helmet
- give unbreakable stone sword to player
- give unbreakable bow to player
- give 18 arrows to player
- set player's chestplate to unbreakable leather chestplate
- dye player's chestplate white
- set player's leggings to unbreakable leather leggings
- dye player's leggings white
- set player's boots to unbreakable iron boots
- if {team.%player's uuid%} is "zombie":
- clear player's inventory
- teleport player to {zombiespawn}
- set player's helmet to unbreakable iron helmet
- give unbreakable stone sword to player
- give unbreakable bow to player
- give 18 arrows to player
- set player's chestplate to unbreakable leather chestplate
- dye player's chestplate green
- set player's leggings to unbreakable leather leggings
- dye player's leggings green
- set player's boots to unbreakable iron boots
- every tick:
- if {score.ghost} is 3:
- broadcast "{@name} The {@c1}Ghost team{@c2} won the game!"
- loop all players:
- set {queue.%loop-player's uuid%} to false
- set {ghostteamdecide} to false
- set {totalqueue} to 0
- set {currentgame} to false
- set {currentlyingame.%loop-player's uuid%} to false
- if {team.%loop-player's uuid%} is "ghost":
- add 1 to {wins.%loop-player's uuid%}
- add 10 to {coins.%loop-player's uuid%}
- send "{@name} You gained {@c1}10 coins{@c2} for winning!" to loop-player
- set loop-player's leggings to air
- set loop-player's chestplate to air
- set loop-player's boots to air
- execute console command "clear %loop-player%"
- teleport loop-player to {spawn}
- set {score.ghost} to 0
- set {score.zombie} to 0
- set {spectator.%loop-player's uuid%} to false
- set loop-player's gamemode to survival
- set {team.%loop-player's uuid%} to "none"
- set {totalqueue} to 0
- set {currentgame} to false
- set {playingcurrently} to false
- set {currentlyingame.%loop-player's uuid%} to false
- if {score.zombie} is 3:
- broadcast "{@name} The {@c1}Zombie team{@c2} won the game!"
- loop all players:
- set {queue.%loop-player's uuid%} to false
- set {ghostteamdecide} to false
- set {totalqueue} to 0
- set {currentgame} to false
- set {currentlyingame.%loop-player's uuid%} to false
- if {team.%loop-player's uuid%} is "zombie":
- add 1 to {wins.%loop-player's uuid%}
- add 10 to {coins.%loop-player's uuid%}
- send "{@name} You gained {@c1}10 coins{@c2} for winning!" to loop-player
- set loop-player's leggings to air
- set loop-player's chestplate to air
- set loop-player's boots to air
- execute console command "clear %loop-player%"
- teleport loop-player to {spawn}
- set {score.ghost} to 0
- set {score.zombie} to 0
- set {spectator.%loop-player's uuid%} to false
- set loop-player's gamemode to survival
- set {team.%loop-player's uuid%} to "none"
- set {totalqueue} to 0
- set {currentgame} to false
- set {playingcurrently} to false
- set {currentlyingame.%loop-player's uuid%} to false
- command /spectator:
- trigger:
- if {team.%player's uuid%} is none:
- if {spectator.%player's uuid%} is false:
- set {spectator.%player's uuid%} to true
- set player's gamemode to spectator
- teleport player to {ghostspawn}
- send "{@name} You are now a spectator! Type /spectator again to get out of spectator mode!" to player
- clear player's inventory
- stop
- if {spectator.%player's uuid%} is true:
- set {spectator.%player's uuid%} to false
- set player's gamemode to survival
- teleport player to {spawn}
- send "{@name} You are no longer a spectator! Type /spectator again to enter spectator mode!" to player
- clear player's inventory
- stop
- on drop:
- cancel event
- on break:
- if {build.%player%} is true:
- set event-block to air
- if {build.%player%} is false:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement