|
| 1 | +#---------------------------------# |
| 2 | +# # |
| 3 | +# MUSICAL BLOCKS v2 # |
| 4 | +# by Nixinova # |
| 5 | +# # |
| 6 | +# World setup commands # |
| 7 | +# # |
| 8 | +#---------------------------------# |
| 9 | + |
| 10 | +tellraw @a "If the map has not been set up properly, please run the command again." |
| 11 | + |
| 12 | +# Teleport players |
| 13 | +setworldspawn 968 5 1018 |
| 14 | +spawnpoint @a 968 5 1018 |
| 15 | +tp @a 968 5 1018 |
| 16 | + |
| 17 | +# Teams |
| 18 | +team add lobby |
| 19 | +team modify lobby color yellow |
| 20 | +team modify lobby friendlyFire false |
| 21 | +team add playing |
| 22 | +team modify playing color green |
| 23 | +team add dead |
| 24 | +team modify dead color red |
| 25 | +team modify playing friendlyFire false |
| 26 | + |
| 27 | +# Scoreboards |
| 28 | +scoreboard objectives add Timer dummy "Timer" |
| 29 | +scoreboard objectives add Dead deathCount "Dead" |
| 30 | +scoreboard objectives add Health health "Health" |
| 31 | +scoreboard objectives add MB dummy {"text":"§1M§3U§5S§7I§9C§bA§dL §2B§4L§6O§8C§aK§cS§r"} |
| 32 | +scoreboard objectives add Map dummy "Map" |
| 33 | +scoreboard objectives add Wins dummy "§aWins" |
| 34 | +scoreboard objectives add Players dummy "Players" |
| 35 | +scoreboard objectives add Colour dummy "Colour" |
| 36 | + |
| 37 | +# Command blocks |
| 38 | +setblock 965 4 1041 repeating_command_block{Command:"function mb:map/running",auto:true} |
| 39 | + |
| 40 | +# World settings |
| 41 | +gamerule spawnRadius 2 |
| 42 | +gamerule commandBlockOutput false |
| 43 | +gamerule doImmediateRespawn true |
| 44 | +gamerule showDeathMessages false |
| 45 | +gamerule doDaylightCycle false |
| 46 | +time set day |
| 47 | +difficulty peaceful |
| 48 | + |
| 49 | +# Spawn |
| 50 | +fill 975 3 1010 960 8 1026 iron_block hollow |
| 51 | +fill 962 3 1024 967 3 1019 redstone_lamp |
| 52 | +fill 962 3 1012 967 3 1017 redstone_lamp |
| 53 | +fill 973 3 1024 969 3 1019 redstone_lamp |
| 54 | +fill 969 3 1017 973 3 1012 redstone_lamp |
| 55 | +fill 973 2 1012 962 2 1024 redstone_block |
| 56 | +setblock 961 5 1018 player_wall_head[facing=east]{SkullOwner:{Name:"Nixinova"}} |
| 57 | +setblock 961 5 1019 birch_wall_sign[facing=east]{Text2:'"§1M§3U§5S§7I§9C§bA§dL"',Text3:'"§2B§4L§6O§8C§aK§cS"'} |
| 58 | +setblock 961 5 1017 birch_wall_sign[facing=east]{Text2:'{"text":"v3.0","color":"red"}'} |
| 59 | +setblock 974 5 1018 birch_wall_sign[facing=west]{Text1:'{"color":"green","clickEvent":{"action":"run_command","value":"function mb:map/play"},"text":"=========================="}',Text2:'{"bold":true,"color":"green","text":"Start"}',Text3:'{"bold":true,"color":"green","text":"Game"}',Text4:'{"color":"green","text":"=========================="}'} |
| 60 | +setblock 976 4 1018 command_block{Command:"function mb:map/play"} |
| 61 | +setblock 974 4 1018 stone_button[facing=west] |
| 62 | + |
| 63 | +# Map |
| 64 | +fill 1027 17 947 1060 8 980 barrier hollow |
| 65 | +fill 1027 8 947 1060 0 980 iron_block hollow |
| 66 | +fill 1059 8 948 1028 8 979 air |
| 67 | +fill 1059 16 948 1028 17 979 air |
| 68 | +fill 1028 1 979 1059 1 948 lava |
| 69 | + |
| 70 | +# Banners |
| 71 | +_const banner_east = 'black_wall_banner[facing=east]' |
| 72 | +_const banner_west = 'black_wall_banner[facing=west]' |
| 73 | +_const pattern_N = '{Patterns:[{Pattern:"drs",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"ss",Color:0},{Pattern:"bo",Color:15}]}' |
| 74 | +_const pattern_I = '{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}]}' |
| 75 | +_const pattern_X = '{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}]}' |
| 76 | +_const pattern_O = '{Patterns:[{Pattern:"ts",Color:0},{Pattern:"bs",Color:0},{Pattern:"rs",Color:0},{Pattern:"ls",Color:0},{Pattern:"bo",Color:15}]}' |
| 77 | +_const pattern_V = '{Patterns:[{Pattern:"ls",Color:0},{Pattern:"rd",Color:15},{Pattern:"dls",Color:0},{Pattern:"bo",Color:15}]}' |
| 78 | +_const pattern_A = '{Patterns:[{Pattern:"ts",Color:0},{Pattern:"ms",Color:0},{Pattern:"ls",Color:0},{Pattern:"rs",Color:0},{Pattern:"bo",Color:15}]}' |
| 79 | +setblock 1028 7 967 $(banner_east)$(pattern_N) |
| 80 | +setblock 1028 7 966 $(banner_east)$(pattern_I) |
| 81 | +setblock 1028 7 965 $(banner_east)$(pattern_X) |
| 82 | +setblock 1028 7 964 $(banner_east)$(pattern_I) |
| 83 | +setblock 1028 7 963 $(banner_east)$(pattern_N) |
| 84 | +setblock 1028 7 962 $(banner_east)$(pattern_O) |
| 85 | +setblock 1028 7 961 $(banner_east)$(pattern_V) |
| 86 | +setblock 1028 7 960 $(banner_east)$(pattern_A) |
| 87 | + |
| 88 | +setblock 1059 7 960 $(banner_west)$(pattern_N) |
| 89 | +setblock 1059 7 961 $(banner_west)$(pattern_I) |
| 90 | +setblock 1059 7 962 $(banner_west)$(pattern_X) |
| 91 | +setblock 1059 7 963 $(banner_west)$(pattern_I) |
| 92 | +setblock 1059 7 964 $(banner_west)$(pattern_N) |
| 93 | +setblock 1059 7 965 $(banner_west)$(pattern_O) |
| 94 | +setblock 1059 7 966 $(banner_west)$(pattern_V) |
| 95 | +setblock 1059 7 967 $(banner_west)$(pattern_A) |
| 96 | + |
| 97 | +# RNG by fafik77 |
| 98 | +scoreboard objectives add RNG_77 dummy "RNG" |
| 99 | +scoreboard objectives add RNG_77_rp minecraft.custom:minecraft.walk_one_cm "RNG-data" |
| 100 | +execute unless score #const2 RNG_77 matches 1.. run scoreboard players set #const2 RNG_77 3 |
| 101 | +scoreboard players add #prev_number RNG_77 0 |
| 102 | +scoreboard players set #m1 RNG_77 -1 |
| 103 | +scoreboard players add #clock_time RNG_77 1 |
0 commit comments