Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {pvsGameStarted} = false
- {pvsRound} = 1
- {pvsPlacementAmounts::} = 0
- {pvsPlayersLeft} = 0
- command /startpvs:
- permission: op
- trigger:
- round1()
- local function round1():
- set {pvsPlacementAmounts::*} to 12, 15, 18, 21, 24, 27, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 130, 140, 150, 160, 165 and 175
- loop all players:
- add 1 to {pvsPlayersLeft}
- broadcast "%{pvsPlayersLeft}%"
- if {pvsRound} = 1:
- {eventPaused} is true:
- {SayOnce} is false:
- send title "&cPAUSED" to all players for 5 seconds with fadein 1 seconds and fade out 1 seconds
- play sound "clock:event_paused" in voice category with volume 1 for all players
- set {SayOnce} to true
- {eventPaused} is false:
- set the center of the world border of world "combatspleef" to location(0.5, 0, -110.5)
- execute console command "/execute in minecraft:combatspleef run worldborder set 69"
- squareTeleport()
- play sound "clock:game_announce" in voice category with volume 1 for all players
- send title "&ePvSpleef" to all players for 3 seconds with fadein 1 seconds and fade out 1 seconds
- wait 5 seconds
- explainGame()
- wait 58 seconds
- tenSec()
- wait 10 seconds
- play sound "clock:pvs_music" in ambient category with volume 1 for all players
- set {pvsGameStart} to true
- wait 23 seconds
- play sound "clock:alert" in voice category with volume 1 for all players
- send title "" to all players for 3 seconds
- send subtitle "&cBoarder Closing!" to all players for 3 seconds with fadein 0 seconds and fade out 0.1 seconds
- execute console command "/execute in minecraft:combatspleef run worldborder set 13 75"
- wait 93 seconds
- stop all sounds for all players
- play sound "clock:overtime_head" in voice category with volume 1 for all players
- wait 3 seconds
- play sound "clock:overtime_loop" in voice category with volume 1 for all players
- wait 24 seconds
- play sound "clock:overtime_tail" in voice category with volume 1 for all players
- send title "&c&lRound Over!" to all players for 3 seconds with fadein 1 seconds and fade out 1 seconds
- on walking on snow block:
- name of player's world is "combatspleef":
- if {pvsGameStarted} is false:
- stop
- if {pvsGameStarted} is true:
- set {lastWalkedSnow.%event-player%} to "%x-coord of event-block%, %y-coord of event-block%, %z-coord of event-block%"
- command /setstartpvs:
- trigger:
- if {pvsGameStarted} is false:
- set {pvsGameStarted} to true
- broadcast "%{pvsGameStarted}%"
- loop all players:
- delete {lastWalkedSnow.%loop-value%}
- delete {brokenBlocks.%loop-value%::*}
- else:
- set {pvsGameStarted} to false
- broadcast "%{pvsGameStarted}%"
- on server tick start:
- loop all players:
- contains({spectators::*}, "%loop-value%") is false:
- if name of loop-value's world is "combatspleef":
- if loop-value is in water:
- set {_victim} to loop-value-1
- loop all players:
- if loop-value-2 is not equal to {_victim}:
- set {_attacker} to loop-value-2
- if uuid of {_attacker} is equal to uuid of {_victim}:
- broadcast "[&câ &r]%display name of {_victim}% fell and eliminated themselves"
- applyPointsWithMessage({pvsPlacementAmount::%{pvsPlayersLeft}%}, {_victim}, "PvSpleef", " &cYou died&r and placed at &e%{pvsPlayersLeft}%&r. &6+%{pvsPlacementAmount::%{pvsPlayersLeft}%}% points")
- spectator({_victim})
- stop
- else:
- contains({brokenBlocks.%{_attacker}%::*}, "%{lastWalkedSnow.%{_victim}%}%") is true:
- broadcast "[&câ &r] %display name of {_attacker}% spleef'd %display name of {_victim}%"
- handleKill("PvSpleef", 12, {_attacker}, {_victim})
- spectator({_victim})
- stop
- if loop-value is in lava:
- set {_victim} to loop-value-1
- loop all players:
- if loop-value-2 is not equal to {_victim}:
- set {_attacker} to loop-value-2
- broadcast "%{_attacker}% and %{_victim}%"
- if uuid of {_attacker} is equal to uuid of {_victim}:
- broadcast "[&câ &r]%display name of {_victim}% fell and eliminated themselves"
- spectator({_victim})
- stop
- else:
- contains({brokenBlocks.%{_attacker}%::*}, "%{lastWalkedSnow.%{_victim}%}%") is true:
- broadcast "[&câ &r] %display name of {_attacker}% spleef'd %display name of {_victim}%"
- handleKill("PvSpleef", 12, {_attacker}, {_victim})
- spectator({_victim})
- stop
- on break:
- name of event-player's world is "combatspleef":
- {pvsGameStarted} is false:
- player has permission "op":
- stop
- cancel event
- {pvsGameStarted} is true:
- add "%x-coord of event-block%, %y-coord of event-block%, %z-coord of event-block%" to {brokenBlocks.%event-player%::*}
- wait 10 seconds
- remove "%x-coord of event-block%, %y-coord of event-block%, %z-coord of event-block%" from {brokenBlocks.%event-player%::*}
- on right click:
- world is "combatspleef":
- {pvsGameStarted} is true:
- stop
- {pvsGameStarted} is false:
- if player's tool is firework rocket:
- send action bar "&cUnable to use: Game has not started" to event-player
- cancel event
- command /tempcallexplain:
- permission: op
- trigger:
- explainGame()
- local function explainGame():
- play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
- broadcast "&a===================================================="
- broadcast ""
- broadcast " &e&l Welcome to PvSpleef! "
- broadcast ""
- broadcast ""
- broadcast " &7&o The non-PvP, PvP game! "
- broadcast ""
- broadcast "&a===================================================="
- wait 12 seconds
- play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
- broadcast "&a===================================================="
- broadcast ""
- broadcast "&e&l Heres how it works: "
- broadcast ""
- broadcast " - You are equipped with an elytra, some armour "
- broadcast " and a Knockback 2 shovel "
- broadcast ""
- broadcast " - Your goal is to outlive as many players as you "
- broadcast " can whilst also gaining kills "
- broadcast ""
- broadcast "&a===================================================="
- wait 12 seconds
- play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
- broadcast "&a===================================================="
- broadcast ""
- broadcast "&e&l Coins? Here you go: "
- broadcast ""
- broadcast " - &61st place will earn you &a175 points "
- broadcast ""
- broadcast " - Each kill will earn you &a12 points "
- broadcast ""
- broadcast " - You will gain an extra set of &6bonus points "
- broadcast " based on the placement &ayour team&r gets "
- broadcast ""
- broadcast "&a===================================================="
- wait 12 seconds
- play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
- broadcast "&a===================================================="
- broadcast ""
- broadcast "&e&l Extra tips: "
- broadcast ""
- broadcast " - You have been given a &cfirework rocket. "
- broadcast " &7&oUse it wisely"
- broadcast ""
- broadcast ""
- broadcast " - Falling into the liquid below will &cinstantly"
- broadcast " &ckill you.&r Watch the ground below you "
- broadcast ""
- broadcast "&a===================================================="
- wait 12 seconds
- play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
- broadcast "&a===================================================="
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast " &a&oStand-by for the game to begin "
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast "&a===================================================="
- local function squareTeleport():
- loop {red team::*}:
- teleport loop-value to location at -13, 114, -133 in world "combatspleef"
- loop {orange team::*}:
- teleport loop-value to location at 12, 114, -133 in world "combatspleef"
- loop {yellow team::*}:
- teleport loop-value to location at 22, 114, -112 in world "combatspleef"
- loop {green team::*}:
- teleport loop-value to location at 12, 114, -89 in world "combatspleef"
- loop {blue team::*}:
- teleport loop-value to location at -12, 114, -89 in world "combatspleef"
- loop {purple team::*}:
- teleport loop-value to location at -22, 114, -111 in world "combatspleef"
- local function circleTeleport():
- loop {red team::*}:
- teleport loop-value to location at 0, 113, -25 in world "combatspleef"
- loop {orange team::*}:
- teleport loop-value to location at 13, 113, -14 in world "combatspleef"
- loop {yellow team::*}:
- teleport loop-value to location at 25, 113, 0 in world "combatspleef"
- loop {green team::*}:
- teleport loop-value to location at 0, 113, 25 in world "combatspleef"
- loop {blue team::*}:
- teleport loop-value to location at -13, 113, 13 in world "combatspleef"
- loop {purple team::*}:
- teleport loop-value to location at -25, 113, 0 in world "combatspleef"
- local function triangleTeleport():
- loop {red team::*}:
- teleport loop-value to location at -110, 113, -3 in world "combatspleef"
- loop {orange team::*}:
- teleport loop-value to location at -129, 113, -36 in world "combatspleef"
- loop {yellow team::*}:
- teleport loop-value to location at -141, 113, -57 in world "combatspleef"
- loop {green team::*}:
- teleport loop-value to location at -110, 113, -57 in world "combatspleef"
- loop {blue team::*}:
- teleport loop-value to location at -79, 113, -57 in world "combatspleef"
- loop {purple team::*}:
- teleport loop-value to location at -91, 113, -36 in world "combatspleef"
Advertisement
Add Comment
Please, Sign In to add comment