Skip to content

Commit 941a247

Browse files
committed
v2.0 for 1.15
0 parents  commit 941a247

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+477
-0
lines changed

data/mb/functions/init.mcfunction

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#---------------------------------#
2+
# #
3+
# MUSICAL BLOCKS v2 #
4+
# by Nixinova #
5+
# #
6+
# World setup commands #
7+
# #
8+
#---------------------------------#
9+
10+
# Teleport players
11+
setworldspawn 967 5 1018
12+
spawnpoint @a 967 5 1018
13+
tp @a 967 5 1018
14+
15+
# Teams
16+
team add lobby
17+
team modify lobby color yellow
18+
team add playing
19+
team modify playing color green
20+
team add dead
21+
team modify dead color red
22+
team modify playing friendlyFire false
23+
24+
# Scoreboards
25+
scoreboard objectives add Timer dummy "Timer"
26+
scoreboard objectives add Dead deathCount "Dead"
27+
scoreboard objectives add test dummy "§bTest"
28+
scoreboard objectives add Health health "Health"
29+
scoreboard objectives add MB dummy {"text":"§1M§3U§5S§7I§9C§bA§dL §2B§4L§6O§8C§aK§cS§r"}
30+
scoreboard objectives add Map dummy "Map"
31+
scoreboard objectives add Wins dummy "§aWins"
32+
scoreboard objectives add Players dummy "Players"
33+
scoreboard objectives add Colour dummy "Colour"
34+
35+
# Command blocks
36+
setblock 965 4 1041 repeating_command_block{Command:"function mb:map/running",auto:true}
37+
38+
# World settings
39+
gamerule spawnRadius 2
40+
gamerule commandBlockOutput false
41+
gamerule doImmediateRespawn true
42+
gamerule showDeathMessages false
43+
gamerule doDaylightCycle false
44+
time set day
45+
difficulty peaceful
46+
47+
# Spawn
48+
fill 975 3 1011 960 8 1026 iron_block hollow
49+
setblock 961 5 1018 player_wall_head[facing=east]{SkullOwner:{Name:"Nixinova"}}
50+
setblock 961 5 1019 birch_wall_sign[facing=east]{Text2:'"§1M§3U§5S§7I§9C§bA§dL"',Text3:'"§2B§4L§6O§8C§aK§cS"'}
51+
setblock 961 5 1017 birch_wall_sign[facing=east]{Text2:'{"text":"v2.1","color":"red"}'}
52+
setblock 974 5 1018 birch_wall_sign[facing=west]{Text1:'{"color":"green","clickEvent":{"action":"run_command","value":"function mb:map/init"},"text":"=========================="}',Text2:'{"bold":true,"color":"green","text":"Start"}',Text3:'{"bold":true,"color":"green","text":"Game"}',Text4:'{"color":"green","text":"=========================="}'}
53+
setblock 974 7 1012 lantern
54+
setblock 974 7 1025 lantern
55+
setblock 961 7 1012 lantern
56+
setblock 961 7 1025 lantern
57+
setblock 967 7 1018 lantern
58+
59+
# Map
60+
fill 1027 17 947 1060 8 980 barrier hollow
61+
fill 1027 8 947 1060 0 980 iron_block hollow
62+
fill 1059 8 948 1028 8 979 air
63+
fill 1059 16 948 1028 17 979 air
64+
fill 1028 1 979 1059 1 948 lava
65+
66+
setblock 1028 7 967 black_wall_banner[facing=east]{Patterns:[{Pattern:"drs",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"ss",Color:0},{Pattern:"bo",Color:15}]}
67+
setblock 1028 7 966 black_wall_banner[facing=east]{Patterns:[{Pattern:"ss",Color:0},{Pattern:"ls",Color:15},{Pattern:"rs",Color:15},{Pattern:"ts",Color:0},{Pattern:"cs",Color:0},{Pattern:"bs",Color:0},{Pattern:"bo",Color:15}]}
68+
setblock 1028 7 965 black_wall_banner[facing=east]{Patterns:[{Pattern:"bs",Color:0},{Pattern:"ts",Color:0},{Pattern:"cs",Color:15},{Pattern:"dls",Color:0},{Pattern:"drs",Color:0},{Pattern:"bo",Color:15}]}
69+
setblock 1028 7 964 black_wall_banner[facing=east]{Patterns:[{Pattern:"ss",Color:0},{Pattern:"ls",Color:15},{Pattern:"rs",Color:15},{Pattern:"ts",Color:0},{Pattern:"cs",Color:0},{Pattern:"bs",Color:0},{Pattern:"bo",Color:15}]}
70+
setblock 1028 7 963 black_wall_banner[facing=east]{Patterns:[{Pattern:"drs",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"ss",Color:0},{Pattern:"bo",Color:15}]}
71+
setblock 1028 7 962 black_wall_banner[facing=east]{Patterns:[{Pattern:"ts",Color:0},{Pattern:"bs",Color:0},{Pattern:"rs",Color:0},{Pattern:"ls",Color:0},{Pattern:"bo",Color:15}]}
72+
setblock 1028 7 961 black_wall_banner[facing=east]{Patterns:[{Pattern:"ls",Color:0},{Pattern:"rd",Color:15},{Pattern:"dls",Color:0},{Pattern:"bo",Color:15}]}
73+
setblock 1028 7 960 black_wall_banner[facing=east]{Patterns:[{Pattern:"ts",Color:0},{Pattern:"ms",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"bo",Color:15}]}
74+
75+
setblock 1059 7 960 black_wall_banner[facing=west]{Patterns:[{Pattern:"drs",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"ss",Color:0},{Pattern:"bo",Color:15}]}
76+
setblock 1059 7 961 black_wall_banner[facing=west]{Patterns:[{Pattern:"ss",Color:0},{Pattern:"ls",Color:15},{Pattern:"rs",Color:15},{Pattern:"ts",Color:0},{Pattern:"cs",Color:0},{Pattern:"bs",Color:0},{Pattern:"bo",Color:15}]}
77+
setblock 1059 7 962 black_wall_banner[facing=west]{Patterns:[{Pattern:"bs",Color:0},{Pattern:"ts",Color:0},{Pattern:"cs",Color:15},{Pattern:"dls",Color:0},{Pattern:"drs",Color:0},{Pattern:"bo",Color:15}]}
78+
setblock 1059 7 963 black_wall_banner[facing=west]{Patterns:[{Pattern:"ss",Color:0},{Pattern:"ls",Color:15},{Pattern:"rs",Color:15},{Pattern:"ts",Color:0},{Pattern:"cs",Color:0},{Pattern:"bs",Color:0},{Pattern:"bo",Color:15}]}
79+
setblock 1059 7 964 black_wall_banner[facing=west]{Patterns:[{Pattern:"drs",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"ss",Color:0},{Pattern:"bo",Color:15}]}
80+
setblock 1059 7 965 black_wall_banner[facing=west]{Patterns:[{Pattern:"ts",Color:0},{Pattern:"bs",Color:0},{Pattern:"rs",Color:0},{Pattern:"ls",Color:0},{Pattern:"bo",Color:15}]}
81+
setblock 1059 7 966 black_wall_banner[facing=west]{Patterns:[{Pattern:"ls",Color:0},{Pattern:"rd",Color:15},{Pattern:"dls",Color:0},{Pattern:"bo",Color:15}]}
82+
setblock 1059 7 967 black_wall_banner[facing=west]{Patterns:[{Pattern:"ts",Color:0},{Pattern:"ms",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"bo",Color:15}]}
83+
84+
# Structures
85+
setblock 1060 4 945 structure_block{mode:"LOAD",name:"mb:maps/map1" ,posX:3,posY:1,posZ:3}
86+
setblock 1060 5 945 structure_block{mode:"LOAD",name:"mb:maps/map2" ,posX:3,posY:1,posZ:3}
87+
setblock 1060 6 945 structure_block{mode:"LOAD",name:"mb:maps/map3" ,posX:3,posY:1,posZ:3}
88+
setblock 1061 4 945 structure_block{mode:"LOAD",name:"mb:maps/map4" ,posX:3,posY:1,posZ:3}
89+
setblock 1061 5 945 structure_block{mode:"LOAD",name:"mb:maps/map5" ,posX:3,posY:1,posZ:3}
90+
setblock 1061 6 945 structure_block{mode:"LOAD",name:"mb:maps/map6" ,posX:3,posY:1,posZ:3}
91+
setblock 1062 4 945 structure_block{mode:"LOAD",name:"mb:maps/map7" ,posX:3,posY:1,posZ:3}
92+
setblock 1062 5 945 structure_block{mode:"LOAD",name:"mb:maps/map8" ,posX:3,posY:1,posZ:3}
93+
setblock 1062 6 945 structure_block{mode:"LOAD",name:"mb:maps/map9" ,posX:3,posY:1,posZ:3}
94+
setblock 1063 4 945 structure_block{mode:"LOAD",name:"mb:maps/map10",posX:3,posY:1,posZ:3}
95+
setblock 1063 5 945 structure_block{mode:"LOAD",name:"mb:maps/map11",posX:3,posY:1,posZ:3}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#---------------------------------#
2+
# #
3+
# MUSICAL BLOCKS v2 #
4+
# by Nixinova #
5+
# #
6+
# Starting countdown commands #
7+
# #
8+
#---------------------------------#
9+
10+
execute if score starting Timer matches 10 run tellraw @a[team=lobby] {"text":"","extra":[{"text":"[","color":"white","bold":true},{"text":"M","color":"dark_blue","bold":true},{"text":"U","color":"dark_aqua","bold":true},{"text":"S","color":"dark_purple","bold":true},{"text":"I","color":"gray","bold":true},{"text":"C","color":"blue","bold":true},{"text":"A","color":"aqua","bold":true},{"text":"L ","color":"light_purple","bold":true},{"text":"B","color":"dark_green","bold":true},{"text":"L","color":"dark_red","bold":true},{"text":"O","color":"gold","bold":true},{"text":"C","color":"dark_gray","bold":true},{"text":"K","color":"green","bold":true},{"text":"S","color":"red","bold":true},{"text":"]","color":"white","bold":true},{"text":" Starting in ","color":"white"},{"text":"5","color":"dark_green"}]}
11+
execute if score starting Timer matches 30 run tellraw @a[team=lobby] {"text":"","extra":[{"text":"[","color":"white","bold":true},{"text":"M","color":"dark_blue","bold":true},{"text":"U","color":"dark_aqua","bold":true},{"text":"S","color":"dark_purple","bold":true},{"text":"I","color":"gray","bold":true},{"text":"C","color":"blue","bold":true},{"text":"A","color":"aqua","bold":true},{"text":"L ","color":"light_purple","bold":true},{"text":"B","color":"dark_green","bold":true},{"text":"L","color":"dark_red","bold":true},{"text":"O","color":"gold","bold":true},{"text":"C","color":"dark_gray","bold":true},{"text":"K","color":"green","bold":true},{"text":"S","color":"red","bold":true},{"text":"]","color":"white","bold":true},{"text":" Starting in ","color":"white"},{"text":"4","color":"dark_green"}]}
12+
execute if score starting Timer matches 50 run tellraw @a[team=lobby] {"text":"","extra":[{"text":"[","color":"white","bold":true},{"text":"M","color":"dark_blue","bold":true},{"text":"U","color":"dark_aqua","bold":true},{"text":"S","color":"dark_purple","bold":true},{"text":"I","color":"gray","bold":true},{"text":"C","color":"blue","bold":true},{"text":"A","color":"aqua","bold":true},{"text":"L ","color":"light_purple","bold":true},{"text":"B","color":"dark_green","bold":true},{"text":"L","color":"dark_red","bold":true},{"text":"O","color":"gold","bold":true},{"text":"C","color":"dark_gray","bold":true},{"text":"K","color":"green","bold":true},{"text":"S","color":"red","bold":true},{"text":"]","color":"white","bold":true},{"text":" Starting in ","color":"white"},{"text":"3","color":"dark_green"}]}
13+
execute if score starting Timer matches 70 run tellraw @a[team=lobby] {"text":"","extra":[{"text":"[","color":"white","bold":true},{"text":"M","color":"dark_blue","bold":true},{"text":"U","color":"dark_aqua","bold":true},{"text":"S","color":"dark_purple","bold":true},{"text":"I","color":"gray","bold":true},{"text":"C","color":"blue","bold":true},{"text":"A","color":"aqua","bold":true},{"text":"L ","color":"light_purple","bold":true},{"text":"B","color":"dark_green","bold":true},{"text":"L","color":"dark_red","bold":true},{"text":"O","color":"gold","bold":true},{"text":"C","color":"dark_gray","bold":true},{"text":"K","color":"green","bold":true},{"text":"S","color":"red","bold":true},{"text":"]","color":"white","bold":true},{"text":" Starting in ","color":"white"},{"text":"2","color":"dark_green"}]}
14+
execute if score starting Timer matches 90 run tellraw @a[team=lobby] {"text":"","extra":[{"text":"[","color":"white","bold":true},{"text":"M","color":"dark_blue","bold":true},{"text":"U","color":"dark_aqua","bold":true},{"text":"S","color":"dark_purple","bold":true},{"text":"I","color":"gray","bold":true},{"text":"C","color":"blue","bold":true},{"text":"A","color":"aqua","bold":true},{"text":"L ","color":"light_purple","bold":true},{"text":"B","color":"dark_green","bold":true},{"text":"L","color":"dark_red","bold":true},{"text":"O","color":"gold","bold":true},{"text":"C","color":"dark_gray","bold":true},{"text":"K","color":"green","bold":true},{"text":"S","color":"red","bold":true},{"text":"]","color":"white","bold":true},{"text":" Starting in ","color":"white"},{"text":"1","color":"dark_green"}]}
15+
execute if score starting Timer matches 110.. run function mb:map/start

data/mb/functions/map/end.mcfunction

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#---------------------------------#
2+
# #
3+
# MUSICAL BLOCKS v2 #
4+
# by Nixinova #
5+
# #
6+
# Game ending commands #
7+
# #
8+
#---------------------------------#
9+
10+
title @a title [{"selector":"@a[team=playing]"}]
11+
title @a subtitle [{"text":" has won!","color":"green"}]
12+
13+
scoreboard players add @a[team=playing] Wins 1
14+
scoreboard players reset starting Map
15+
scoreboard players set playing Map 0
16+
scoreboard players set Round MB 0
17+
scoreboard players reset @a Dead
18+
scoreboard objectives setdisplay sidebar Wins
19+
20+
clear @a
21+
tp @a 967 5 1018
22+
team join lobby @a
23+
gamemode adventure @a[team=lobby]

data/mb/functions/map/init.mcfunction

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#---------------------------------#
2+
# #
3+
# MUSICAL BLOCKS v2 #
4+
# by Nixinova #
5+
# #
6+
# Game initialising commands #
7+
# #
8+
#---------------------------------#
9+
10+
scoreboard players reset online Players
11+
execute as @a run scoreboard players add online Players 1
12+
execute if score online Players matches 2.. run scoreboard players reset starting Timer
13+
execute if score online Players matches 2.. run scoreboard players set starting Map 1
14+
execute unless score online Players matches 2.. run tellraw @p [{"text":"Not enough players!","color":"red"}]
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#---------------------------------#
2+
# #
3+
# MUSICAL BLOCKS v2 #
4+
# by Nixinova #
5+
# #
6+
# Round commands 2 #
7+
# #
8+
#---------------------------------#
9+
10+
kill @e[type=item]
11+
12+
fill 1029 6 949 1058 16 978 air replace #wool
13+
14+
execute if score randomiser Map matches 1 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace brown_wool
15+
execute if score randomiser Map matches 1 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace red_wool
16+
execute if score randomiser Map matches 1 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace purple_wool
17+
execute if score randomiser Map matches 1 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace blue_wool
18+
19+
execute if score randomiser Map matches 2 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace yellow_wool
20+
execute if score randomiser Map matches 2 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace green_wool
21+
execute if score randomiser Map matches 2 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace red_wool
22+
execute if score randomiser Map matches 2 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace magenta_wool
23+
24+
execute if score randomiser Map matches 3 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace lime_wool
25+
execute if score randomiser Map matches 3 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace white_wool
26+
execute if score randomiser Map matches 3 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace orange_wool
27+
execute if score randomiser Map matches 3 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace light_gray_wool
28+
29+
execute if score randomiser Map matches 4 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace pink_wool
30+
execute if score randomiser Map matches 4 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace blue_wool
31+
execute if score randomiser Map matches 4 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace orange_wool
32+
execute if score randomiser Map matches 4 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace lime_wool
33+
34+
execute if score randomiser Map matches 5 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace black_wool
35+
execute if score randomiser Map matches 5 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace light_blue_wool
36+
execute if score randomiser Map matches 5 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace red_wool
37+
execute if score randomiser Map matches 5 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace magenta_wool
38+
39+
execute if score randomiser Map matches 6 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace green_wool
40+
execute if score randomiser Map matches 6 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace brown_wool
41+
execute if score randomiser Map matches 6 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace red_wool
42+
execute if score randomiser Map matches 6 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace pink_wool
43+
44+
execute if score randomiser Map matches 7 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace black_wool
45+
execute if score randomiser Map matches 7 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace light_blue_wool
46+
execute if score randomiser Map matches 7 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace magenta_wool
47+
execute if score randomiser Map matches 7 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace yellow_wool
48+
49+
execute if score randomiser Map matches 8 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace gray_wool
50+
execute if score randomiser Map matches 8 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace cyan_wool
51+
execute if score randomiser Map matches 8 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace white_wool
52+
execute if score randomiser Map matches 8 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace orange_wool
53+
54+
execute if score randomiser Map matches 9 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace lime_wool
55+
execute if score randomiser Map matches 9 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace cyan_wool
56+
execute if score randomiser Map matches 9 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace brown_wool
57+
execute if score randomiser Map matches 9 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace purple_wool
58+
59+
execute if score randomiser Map matches 10 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace green_wool
60+
execute if score randomiser Map matches 10 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace gray_wool
61+
execute if score randomiser Map matches 10 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace magenta_wool
62+
execute if score randomiser Map matches 10 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace white_wool
63+
64+
execute if score randomiser Map matches 11 if score colour Map matches 1 run fill 1058 5 978 1029 5 949 glass replace black_wool
65+
execute if score randomiser Map matches 11 if score colour Map matches 2 run fill 1058 5 978 1029 5 949 glass replace red_wool
66+
execute if score randomiser Map matches 11 if score colour Map matches 3 run fill 1058 5 978 1029 5 949 glass replace yellow_wool
67+
execute if score randomiser Map matches 11 if score colour Map matches 4 run fill 1058 5 978 1029 5 949 glass replace white_wool
68+
69+
fill 1058 5 978 1029 5 949 air replace #wool

0 commit comments

Comments
 (0)