Last active
August 21, 2016 15:22
-
-
Save Korko/ef804680338e9d791fa1040be3c395c6 to your computer and use it in GitHub Desktop.
[Minecraft][Command BLocks][1.9] DeathSwap3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Whole block to execute at start | |
/*INIT: | |
/tellraw @p ["",{"text":"Welcome to DeathSwap3! ","color":"gold","bold":true},{"text":"Created by ","color":"none","bold":false},{"text":"Korko & DtThorgrim ","color":"dark_purple","italic":true},{"text":" based on an idea by ","italic":true,"color":"none"},{"text":"SethBling","color":"dark_green","italic":true},{"text":". ","color":"none","italic":false},{"text":"Please enjoy!","color":"dark_red"}] | |
# Scoreboard used to compute the timer | |
/scoreboard objectives add swap_timer dummy | |
# Scoreboard used to store the final timer | |
/scoreboard objectives add swap_total_timer dummy | |
# Dummy to multiply by 20 to have ticks instead of seconds | |
/scoreboard objectives add swap_multiplier dummy | |
# Scoreboard used to check number of players | |
/scoreboard objectives add swap_players dummy | |
# Scoreboard used to detect death | |
/scoreboard objectives add swap_death stat.deaths | |
/scoreboard objectives add swap_play_mode dummy | |
# Dummy objectives for options | |
/scoreboard objectives add swap_opt_resist dummy | |
/scoreboard objectives add swap_opt_alert dummy | |
/scoreboard objectives add swap_opt_regen dummy | |
/scoreboard objectives add swap_opt_hungry dummy | |
/scoreboard objectives add swap_opt_natur dummy | |
# Dummy objectives for modes | |
/scoreboard objectives add swap_timer_mode dummy | |
/scoreboard objectives add swap_swap_mode dummy | |
# Dummy objective for loops | |
/scoreboard objectives add swap_loop_count dummy | |
# Summon different timers from 5s to 45s so that the swap will be inbetween 10s and 90s | |
/kill @e[tag=swap_step] | |
/kill @e[tag=swap_timer] | |
/summon ArmorStand ~1 ~1 ~ {Tags:["swap_step"],Marker:1b,Invisible:1b,NoGravity:1b,Passengers:[{id:"ArmorStand",Tags:["swap_timer","swap_timer5"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer10"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer15"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer20"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer25"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer30"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer35"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer40"],Marker:1b,Invisible:1b,NoGravity:1b},{id:"ArmorStand",Tags:["swap_timer","swap_timer45"],Marker:1b,Invisible:1b,NoGravity:1b}]} | |
/scoreboard players set @e[tag=swap_timer5] swap_timer 5 | |
/scoreboard players set @e[tag=swap_timer10] swap_timer 10 | |
/scoreboard players set @e[tag=swap_timer15] swap_timer 15 | |
/scoreboard players set @e[tag=swap_timer20] swap_timer 20 | |
/scoreboard players set @e[tag=swap_timer25] swap_timer 25 | |
/scoreboard players set @e[tag=swap_timer30] swap_timer 30 | |
/scoreboard players set @e[tag=swap_timer35] swap_timer 35 | |
/scoreboard players set @e[tag=swap_timer40] swap_timer 40 | |
/scoreboard players set @e[tag=swap_timer45] swap_timer 45 | |
# Default option values | |
/scoreboard players set @e[tag=swap_step] swap_timer_mode 1 | |
/scoreboard players set @e[tag=swap_step] swap_swap_mode 1 | |
/scoreboard players set @e[tag=swap_step] swap_opt_resist 1 | |
/scoreboard players set @e[tag=swap_step] swap_opt_alert 1 | |
/scoreboard players set @e[tag=swap_step] swap_opt_regen 0 | |
/scoreboard players set @e[tag=swap_step] swap_opt_hungry 0 | |
/scoreboard players set @e[tag=swap_step] swap_opt_natur 0 | |
# Better teams display | |
/scoreboard objectives add swap_playing dummy Players | |
/scoreboard teams add observers | |
/scoreboard teams option observers color gray | |
*/ | |
# | |
# Handle startup | |
# | |
/scoreboard players set @e[tag=swap_fn_start] swap_players 0 | |
/execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1] ~ ~ ~ /scoreboard players add @e[tag=swap_fn_start] swap_players 1 | |
/execute @e[tag=swap_fn_start,score_swap_players=1,c=1] ~ ~ ~ /tellraw @a [{"text":"The game cannot start until there's at least 2 players","color":"red"}] | |
/execute @e[tag=swap_fn_start,score_swap_players=1,c=1] ~ ~ ~ /kill @e[c=1] | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /scoreboard players tag @e[score_swap_play_mode_min=1] add swap_playing | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /gamemode 0 @a[score_swap_play_mode_min=1,score_swap_play_mode=1] | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /scoreboard players set @a[score_swap_play_mode_min=1,score_swap_play_mode=1] swap_playing 1 | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /scoreboard objectives setdisplay sidebar swap_playing | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /clear @a[score_swap_play_mode_min=1,score_swap_play_mode=1] | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /effect @e[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:saturation 2 127 | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /effect @a[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:resistance 10 127 | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /effect @a[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:instant_health 5 | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /achievement take achievement.mineWood @p | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /spreadplayers ~ ~ 100000 24000000 false @a[score_swap_play_mode_min=1,score_swap_play_mode=1] | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /tp @a[score_swap_play_mode_min=1,score_swap_play_mode=1] ~ 250 ~ | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /execute @e[tag=swap_step,score_swap_opt_natur=0] ~ ~ ~ /gamerule naturalRegeneration false | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /execute @e[tag=swap_step,score_swap_opt_natur_min=1] ~ ~ ~ /gamerule naturalRegeneration true | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /execute @e[tag=swap_step,score_swap_opt_hungry=0] ~ ~ ~ /effect @a[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:saturation 0 | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /execute @e[tag=swap_step,score_swap_opt_hungry_min=1] ~ ~ ~ /effect @a[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:saturation 655200 0 true | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_step] add swap_started | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {Tags:["swap_fn_timer"],Marker:1b,Invisible:1b} | |
/execute @e[tag=swap_fn_start,score_swap_players_min=2,c=1] ~ ~ ~ /kill @e[c=1] | |
# | |
# Handle death | |
# | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1,score_swap_death_min=1] ~ ~ ~ /execute @a ~ ~ ~ playsound minecraft:entity.wither.spawn master @p | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1,score_swap_death_min=1] ~ ~ ~ /tellraw @a [{"selector":"@a[c=1]","color":"dark_red"},{"text":" has lost the game!","color":"gold"}] | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1,score_swap_death_min=1] ~ ~ ~ /scoreboard players reset @a[c=1] swap_playing | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1,score_swap_death_min=1] ~ ~ ~ /scoreboard players set @a[c=1] swap_play_mode 2 | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1,score_swap_death_min=1] ~ ~ ~ /scoreboard players set @a[c=1] swap_death 0 | |
# | |
# Handle new players (observers) | |
# | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /scoreboard players set @a[tag=!swap_playing] swap_play_mode 2 | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /scoreboard players tag @a[tag=!swap_playing] add swap_playing | |
# | |
# Handle observers | |
# | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /gamemode 3 @a[score_swap_play_mode_min=2,score_swap_play_mode=2,m=!3] | |
/execute @e[tag=swap_started,c=1] ~ ~ ~ /scoreboard teams join observers @a[m=3,team=!observers] | |
# | |
# Detect winner | |
# | |
# Reset number of players | |
/scoreboard players set @e[tag=swap_started] swap_players 0 | |
# Count number of players | |
/execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1] ~ ~ ~ /scoreboard players add @e[tag=swap_started] swap_players 1 | |
# If so, announce the winner | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /tellraw @a [{"selector":"@a[score_swap_play_mode_min=1,score_swap_play_mode=1]","color":"dark_purple","underlined":true},{"text":" has won the game!","color":"gold"}] | |
# Hide list of players | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /scoreboard objectives setdisplay sidebar | |
# Stop the game (players) | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_playing] remove swap_playing | |
# Kill the remaining users (player and observers) | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /kill @a[m=!1] | |
# Reset gamemode of everyone | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /gamemode 2 @a[m=!1] | |
# Leave team observers | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /scoreboard teams leave observers @a[team=observers] | |
# Stop the game (markup) | |
/execute @e[tag=swap_started,score_swap_players=1,score_swap_players_min=1,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_started] remove swap_started | |
# | |
# Handle timer | |
# | |
# Decrement timer before next swap | |
/scoreboard players remove @e[tag=swap_started] swap_total_timer 1 | |
# Once the timer is 1second and a half, play the animation if option enabled | |
/execute @e[tag=swap_started,score_swap_total_timer=30,score_swap_total_timer_min=30,score_swap_opt_alert_min=1,c=1] ~ ~ ~ /execute @a[score_swap_play_mode_min=1,score_swap_play_mode=1] ~ ~ ~ /particle portal ~ ~1.65 ~ 0 0 0 1 4096 force | |
# Give regen if option enabled | |
/execute @e[tag=swap_started,score_swap_total_timer=0,score_swap_total_timer_min=0,score_swap_opt_regen_min=1,c=1] ~ ~ ~ /effect @a[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:regeneration 5 1 | |
# Give resistance if option enabled | |
/execute @e[tag=swap_started,score_swap_total_timer=0,score_swap_total_timer_min=0,score_swap_opt_protec_min=1,c=1] ~ ~ ~ /effect @a[score_swap_play_mode_min=1,score_swap_play_mode=1] minecraft:resistance 5 127 | |
# Trigger the swap | |
/execute @e[tag=swap_started,score_swap_total_timer=0,score_swap_total_timer_min=0,c=1] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {Tags:["swap_fn_swap"],Marker:1b,Invisible:1b} | |
# Trigger the timer | |
/execute @e[tag=swap_started,score_swap_total_timer=0,score_swap_total_timer_min=0,c=1] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {Tags:["swap_fn_timer"],Marker:1b,Invisible:1b} | |
# | |
# Swap function 1 | |
# | |
# Mark all players as needing swap | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=1,score_swap_timer_mode=1,c=1] ~ ~ ~ /execute @e[tag=swap_fn_swap,c=1] ~ ~ ~ /scoreboard players tag @a[score_swap_play_mode_min=1,score_swap_play_mode=1] add swap_swaping | |
# Activate loop | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=1,score_swap_timer_mode=1,c=1] ~ ~ ~ /execute @e[tag=swap_fn_swap,c=1] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {Tags:["swap_fn_timer1_loop"],Marker:1b,Invisible:1b} | |
# Remove function call | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=1,score_swap_timer_mode=1,c=1] ~ ~ ~ /kill @e[tag=swap_fn_swap] | |
# | |
# Swap function 1 (loop) | |
# | |
# Mark two random players to be swaped next | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /scoreboard players tag @r[type=!Bat,tag=swap_swaping,c=2] add swap_tp | |
# Summon marker to each player | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /execute @e[tag=swap_tp] ~ ~ ~ /summon ArmorStand ~ ~ ~ {NoGravity:1b,CustomName:"swap",CustomNameVisible:0b,Marker:1b,Invisible:1b} | |
# Teleport player to other target | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /execute @e[tag=swap_tp] ~ ~ ~ /tp @e[c=1] @e[type=ArmorStand,name=swap,c=-1] | |
# Clean target armorstand | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /kill @e[type=ArmorStand,name=swap] | |
# Mark player as no more needing swap | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_tp] remove swap_swaping | |
# Free next swaped player mark | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_tp] remove swap_tp | |
# Check if any user needing swap | |
/scoreboard players set @e[tag=swap_fn_timer1_loop,c=1] swap_loop_count 0 | |
/execute @e[tag=swap_fn_timer1_loop,c=1] ~ ~ ~ /execute @e[tag=swap_swaping] ~ ~ ~ /scoreboard players add @e[tag=swap_fn_timer1_loop,c=1] swap_loop_count 1 | |
# If none, stop the loop | |
/execute @e[tag=swap_fn_timer1_loop,c=1,score_swap_loop_count=0] ~ ~ ~ /kill @e[tag=swap_fn_timer1_loop] | |
# | |
# Swap function 2 | |
# | |
# Mark all players as needing swap | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_swap,c=1] ~ ~ ~ /scoreboard players tag @a[score_swap_play_mode_min=1,score_swap_play_mode=1] add swap_swaping | |
# Summon marker to each player | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_swap,c=1] ~ ~ ~ /execute @e[tag=swap_swaping] ~ ~ ~ /summon ArmorStand ~ ~ ~ {NoGravity:1b,CustomName:"swap",CustomNameVisible:0b,Marker:1b,Invisible:1b} | |
# Activate loop | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_swap,c=1] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {Tags:["swap_fn_timer2_loop"],Marker:1b,Invisible:1b} | |
# Remove function call | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /kill @e[tag=swap_fn_swap] | |
# | |
# Swap function 2 (loop) | |
# | |
# Mark a random one to be swaped next | |
/execute @e[tag=swap_fn_timer2_loop,c=1] ~ ~ ~ /scoreboard players tag @r[tag=swap_swaping,type=!Bat] add swap_tp | |
# Select a random mark as destination | |
/execute @e[tag=swap_fn_timer2_loop,c=1] ~ ~ ~ /execute @r[type=ArmorStand,name=swap] ~ ~ ~ /tp @e[tag=swap_tp] @e[c=1] | |
# Remove destination mark | |
/execute @e[tag=swap_fn_timer2_loop,c=1] ~ ~ ~ /execute @e[tag=swap_tp] ~ ~ ~ /kill @e[type=ArmorStand,name=swap,c=1] | |
# Mark player as no more needing swap | |
/execute @e[tag=swap_fn_timer2_loop,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_tp] remove swap_swaping | |
# Free next swaped player mark | |
/execute @e[tag=swap_fn_timer2_loop,c=1] ~ ~ ~ /scoreboard players tag @e[tag=swap_tp] remove swap_tp | |
# Check if any user needing swap | |
/scoreboard players set @e[tag=swap_fn_timer2_loop,c=1] swap_loop_count 0 | |
/execute @e[tag=swap_fn_timer2_loop,c=1] ~ ~ ~ /execute @e[tag=swap_swaping] ~ ~ ~ /scoreboard players add @e[tag=swap_fn_timer2_loop,c=1] swap_loop_count 1 | |
# If none, stop the loop | |
/execute @e[tag=swap_fn_timer2_loop,c=1,score_swap_loop_count=0] ~ ~ ~ /kill @e[tag=swap_fn_timer2_loop] | |
# | |
# Timer function 1 | |
# | |
# Fix new switch timer to 900ticks (45s) | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=1,score_swap_timer_mode=1,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /scoreboard players set @e[tag=swap_step] swap_total_timer 900 | |
# Remove function call | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=1,score_swap_timer_mode=1,c=1] ~ ~ ~ /kill @e[tag=swap_fn_timer] | |
# | |
# Timer function 2 | |
# | |
# Reset total timer | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /scoreboard players set @e[tag=swap_step] swap_total_timer 0 | |
# Add a first random gap in the total timer | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /scoreboard players operation @e[tag=swap_step] swap_total_timer += @r[tag=swap_timer,type=ArmorStand] swap_timer | |
# Prepare the subtitle with the lower time before next swap | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /title @a subtitle {"text":"You have at least ","extra":[{"score":{"name":"@e[tag=swap_step]","objective":"swap_total_timer"}},{"text":" seconds until next swap"}]} | |
# Display title to all players | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /title @a title {"text":"New Swap"} | |
# Add a second random gap in the total timer | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /scoreboard players operation @e[tag=swap_step] swap_total_timer += @r[tag=swap_timer,type=ArmorStand] swap_timer | |
# Prepare to multiply to have ticks instead of seconds | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /scoreboard players set @e[tag=swap_step] swap_multiplier 20 | |
# Multiply the number of seconds by the number of ticks per second | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /execute @e[tag=swap_fn_timer,c=1] ~ ~ ~ /scoreboard players operation @e[tag=swap_step] swap_total_timer *= @e[tag=swap_step] swap_multiplier | |
# Kill function call | |
/execute @e[tag=swap_step,score_swap_timer_mode_min=2,score_swap_timer_mode=2,c=1] ~ ~ ~ /kill @e[tag=swap_fn_timer] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Résistance\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_resist 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_resist_min=2] swap_opt_resist 0\"}}]", | |
Text3: "[{\"text\":\"désactivée\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_resist=0,score_swap_opt_resist_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Résistance \\\"},{\\\"text\\\":\\\"Désactivée\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"par defaut\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_resist=1,score_swap_opt_resist_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Résistance \\\"},{\\\"text\\\":\\\"Activée\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Chaque joueur aura 5 secondes de résistance à chaque échange\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Option Résistance" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Régénération\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_regen 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_regen_min=2] swap_opt_regen 0\"}}]", | |
Text3: "[{\"text\":\"désactivée\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_regen=0,score_swap_opt_regen_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Régénération \\\"},{\\\"text\\\":\\\"Désactivée\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"par defaut\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_regen=1,score_swap_opt_regen_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Régénération \\\"},{\\\"text\\\":\\\"Activée\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Chaque joueur aura 1 seconde de régénération à chaque échange\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Option Régénération" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Alerte échange\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_alert 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_alert_min=2] swap_opt_alert 0\"}}]", | |
Text3: "[{\"text\":\"activée\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_alert=0,score_swap_opt_alert_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Alerte échange \\\"},{\\\"text\\\":\\\"Désactivée\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"par defaut\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_alert=1,score_swap_opt_alert_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Alerte échange \\\"},{\\\"text\\\":\\\"Activée\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Chaque joueur aura un effet de particules 1,5s avant chaque échange\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Option Alerte échange" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Régénération\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_natur 1\"}}]", | |
Text2: "[{\"text\":\"Naturelle\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_natur_min=2] swap_opt_natur 0\"}}]", | |
Text3: "[{\"text\":\"désactivée\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_natur=0,score_swap_opt_natur_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Régénération Naturelle \\\"},{\\\"text\\\":\\\"Désactivée\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"par défaut\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_natur=1,score_swap_opt_natur_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Régénération Naturelle \\\"},{\\\"text\\\":\\\"Activée\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"La régénération naturelle sera activée avec le début de la partie\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Option Régénération Naturelle" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Saturation\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_hungry 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_hungry_min=2] swap_opt_hungry 0\"}}]", | |
Text3: "[{\"text\":\"désactivée\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_hungry=0,score_swap_opt_hungry_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Saturation \\\"},{\\\"text\\\":\\\"Désactivée\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"par defaut\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_hungry=1,score_swap_opt_hungry_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Saturation \\\"},{\\\"text\\\":\\\"Activée\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Chaque joueur aura l'effet saturation tout au long de la partie (non recommandé avec la régénération naturelle activée)\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Option Saturation" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Échange\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_swap_mode 1\"}}]", | |
Text2: "[{\"text\":\"Classique\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Mode d'échange choisi : \\\"},{\\\"text\\\":\\\"Classique\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\" - \\\"},{\\\"text\\\":\\\"tous les joueurs seront échangés sauf en cas de participants impair\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"\"}]" | |
}, | |
display: { | |
Name: "Échange classique" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Échange\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_swap_mode 2\"}}]", | |
Text2: "[{\"text\":\"Aléatoire\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Mode d'échange choisi : \\\"},{\\\"text\\\":\\\"Aléatoire\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\" - \\\"},{\\\"text\\\":\\\"n'importe quel joueur peut ne pas être échangé\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"defaut\"}]" | |
}, | |
display: { | |
Name: "Échange aléatoire" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Délai\",\"color\":\"dark_purple\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_timer_mode 1\"}}]", | |
Text2: "[{\"text\":\"Fixe\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Délai choisi : \\\"},{\\\"text\\\":\\\"Fixe\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\" - \\\"},{\\\"text\\\":\\\"les participants auront 45 secondes entre les échanges\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true}]", | |
Text4: "[{\"text\":\"\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "Délai fixe" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Délai\",\"color\":\"dark_purple\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_timer_mode 2\"}}]", | |
Text2: "[{\"text\":\"Aléatoire\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Délai choisi : \\\"},{\\\"text\\\":\\\"Aléatoire\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\" - \\\"},{\\\"text\\\":\\\"les participants auront entre 10 et 90 secondes entre les échanges\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"defaut\"}]" | |
}, | |
display: { | |
Name: "Délai aléatoire" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Je veux\",\"color\":\"white\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @p swap_play_mode 1\"}}]", | |
Text2: "[{\"text\":\"participer\",\"color\":\"white\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"selector\\\":\\\"@p\\\"},{\\\"text\\\":\\\" participera à la prochaine partie !\\\",\\\"color\\\":\\\"gold\\\",\\\"underlined\\\":false}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"\"}]" | |
}, | |
display: { | |
Name: "Je veux participer" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Je veux\",\"color\":\"white\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @p swap_play_mode 2\"}}]", | |
Text2: "[{\"text\":\"observer\",\"color\":\"white\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"selector\\\":\\\"@p\\\"},{\\\"text\\\":\\\" observera la prochaine partie !\\\",\\\"color\\\":\\\"gold\\\",\\\"underlined\\\":false}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"defaut\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "Je veux observer" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Lancer la partie !\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon ArmorStand ~ ~1 ~ {Tags:[\\\"swap_fn_start\\\"],Marker:1b,Invisible:1b}\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true}]", | |
Text3: "[{\"text\":\"Lâchez\",\"italic\":true}]", | |
Text4: "[{\"text\":\"les chiens !\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "Lancer la partie" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Resistance\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_resist 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_resist_min=2] swap_opt_resist 0\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_resist=0,score_swap_opt_resist_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Resistance \\\"},{\\\"text\\\":\\\"Disabled\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"default off\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_resist=1,score_swap_opt_resist_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Resistance \\\"},{\\\"text\\\":\\\"Enabled\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Each player will have 5 seconds of resistance after each swap\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Resistance Option" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Regeneration\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_regen 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_regen_min=2] swap_opt_regen 0\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_regen=0,score_swap_opt_regen_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Regeneration \\\"},{\\\"text\\\":\\\"Disabled\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"default off\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_regen=1,score_swap_opt_regen_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Regeneration \\\"},{\\\"text\\\":\\\"Enabled\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Each player will have 1 second of regeneration after each swap\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Regeneration Option" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Swap Alert\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_alert 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_alert_min=2] swap_opt_alert 0\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_alert=0,score_swap_opt_alert_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Swap Alert \\\"},{\\\"text\\\":\\\"Disabled\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"default on\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_alert=1,score_swap_opt_alert_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Swap Alert \\\"},{\\\"text\\\":\\\"Enabled\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Each player will have a particle effect 1.5s before each swap\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Swap Alert Option" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Natural Regen\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_natur 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_natur_min=2] swap_opt_natur 0\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_natur=0,score_swap_opt_natur_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Natural Regeneration \\\"},{\\\"text\\\":\\\"Disabled\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"default off\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_natur=1,score_swap_opt_natur_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Natural Regeneration \\\"},{\\\"text\\\":\\\"Enabled\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Natural regeneration will be activated while the game starts\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Natural Regen Option" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Saturation\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players add @e[tag=swap_step] swap_opt_hungry 1\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step,score_swap_opt_hungry_min=2] swap_opt_hungry 0\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_hungry=0,score_swap_opt_hungry_min=0] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Saturation \\\"},{\\\"text\\\":\\\"Disabled\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}]\"}}]", | |
Text4: "[{\"text\":\"default off\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/execute @e[tag=swap_step,score_swap_opt_hungry=1,score_swap_opt_hungry_min=1] ~ ~ ~ tellraw @p [{\\\"text\\\":\\\"Option Saturation \\\"},{\\\"text\\\":\\\"Enabled\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" : \\\"},{\\\"text\\\":\\\"Each player will have saturation all along the game (not recommanded with natural regen)\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]" | |
}, | |
display: { | |
Name: "Saturation Option" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Swap mode\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_swap_mode 1\"}}]", | |
Text2: "[{\"text\":\"Classical\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Swap mode set to \\\"},{\\\"text\\\":\\\"classical\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\": \\\"},{\\\"text\\\":\\\"all players will swap except when odd number\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"\"}]" | |
}, | |
display: { | |
Name: "Swap Mode classical" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Swap mode\",\"color\":\"dark_red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_swap_mode 2\"}}]", | |
Text2: "[{\"text\":\"Random\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Swap mode set to \\\"},{\\\"text\\\":\\\"random\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\": \\\"},{\\\"text\\\":\\\"any player can stay while others swap\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"default\"}]" | |
}, | |
display: { | |
Name: "Swap Mode random" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Timer mode\",\"color\":\"dark_purple\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_timer_mode 1\"}}]", | |
Text2: "[{\"text\":\"Fixed\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Timer mode set to \\\"},{\\\"text\\\":\\\"fixed\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\": \\\"},{\\\"text\\\":\\\"players will have 45s between each swap\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true}]", | |
Text4: "[{\"text\":\"\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "Timer Mode fixed" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Timer mode\",\"color\":\"dark_purple\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @e[tag=swap_step] swap_timer_mode 2\"}}]", | |
Text2: "[{\"text\":\"Random\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"text\\\":\\\"Timer mode set to \\\"},{\\\"text\\\":\\\"random\\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\": \\\"},{\\\"text\\\":\\\"players will have between 10s an 90s between each swap\\\",\\\"color\\\":\\\"gray\\\"}]\"}}]", | |
Text3: "[{\"text\":\"\"}]", | |
Text4: "[{\"text\":\"default\"}]" | |
}, | |
display: { | |
Name: "Timer Mode random" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"I want to play\",\"color\":\"white\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @p swap_play_mode 1\"}}]", | |
Text2: "[{\"text\":\"mark me\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"selector\\\":\\\"@p\\\"},{\\\"text\\\":\\\" will play the next game!\\\",\\\"color\\\":\\\"gold\\\",\\\"underlined\\\":false}]\"}}]", | |
Text3: "[{\"text\":\"as playing\",\"italic\":true}]", | |
Text4: "[{\"text\":\"the next game\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "I'll play" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"I want to observe\",\"color\":\"white\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/scoreboard players set @p swap_play_mode 2\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @a [{\\\"selector\\\":\\\"@p\\\"},{\\\"text\\\":\\\" will observe the next game!\\\",\\\"color\\\":\\\"gold\\\",\\\"underlined\\\":false}]\"}}]", | |
Text3: "[{\"text\":\"\",\"italic\":true}]", | |
Text4: "[{\"text\":\"default\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "I'll observe" | |
} | |
} | |
/give @p sign 1 0 { | |
BlockEntityTag: { | |
Text1: "[{\"text\":\"Start the game!\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/summon ArmorStand ~ ~1 ~ {Tags:[\\\"swap_fn_start\\\"],Marker:1b,Invisible:1b}\"}}]", | |
Text2: "[{\"text\":\"\",\"italic\":true}]", | |
Text3: "[{\"text\":\"Release\",\"italic\":true}]", | |
Text4: "[{\"text\":\"the kracken!\",\"italic\":true}]" | |
}, | |
display: { | |
Name: "Start the game" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment