Skip to content

Commit d2d70dd

Browse files
committed
v2.2 for 1.17
1 parent 1bb342f commit d2d70dd

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

data/skywars/functions/goldrush/init.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fill 33 142 -7 19 142 7 white_stained_glass
5252
setblock 27 139 -6 oak_wall_sign[facing=south]{Text1:'{"text":"","clickEvent":{"action":"run_command","value":"function skywars:goldrush/startsign"}}',Text2:'{"text":"Start","color":"green"}'}
5353
setblock 25 139 -6 oak_wall_sign[facing=south]{Text1:'{"text":"","clickEvent":{"action":"run_command","value":"function skywars:goldrush/ready"}}',Text2:'{"text":"Ready","color":"yellow"}'}
5454
setblock 27 139 6 oak_wall_sign{Text2:'{"text":"Made by","color":"white"}',Text3:'{"text":"Nixinova","color":"aqua"}'}
55-
setblock 25 139 6 oak_wall_sign{Text2:'{"text":"SkyWars v2.1","color":"green"}',Text3:'{"text":"Minecraft 1.16","color":"aqua"}'}
55+
setblock 25 139 6 oak_wall_sign{Text2:'{"text":"SkyWars v2.2","color":"green"}',Text3:'{"text":"Minecraft 1.17","color":"aqua"}'}
5656

5757
# Credit
5858
setblock 26 139 6 player_wall_head{SkullOwner:{Name:"Nixinova"}}
Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
#---------------------------------
2-
#
3-
# SKYWARS : GOLD RUSH
4-
# by Nixinova
5-
#
6-
# Always-running commands
7-
#
8-
#---------------------------------
1+
#---------------------------------#
2+
# #
3+
# SKYWARS : GOLD RUSH #
4+
# by Nixinova #
5+
# #
6+
# Always-running commands #
7+
# #
8+
#---------------------------------#
9+
10+
# Player count test
11+
execute store result score count players_ready if entity @e[team=ready]
12+
execute store result score alive players if entity @e[team=playing]
13+
execute if score alive players <= min players if score ingame players matches 1 run function skywars:goldrush/winner
914

1015
# Lobby hotbar
11-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.0 diamond_sword{display:{Name:'"\\u00A7eLobby Blade"',Lore:['"\\u00A7cFight in the lobby!"']},Enchantments:[{id:"knockback",lvl:2}],Unbreakable:true,HideFlags:127}
12-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.1 air
13-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.2 air
14-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.3 air
15-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.4 written_book{pages:['[{"text":"Select a kit:\\n","color":"red"},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Miner","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 1"}},{"text":"\\n","color":"reset"},{"text":"\\u2022 ","color":"dark_aqua"},{"text":"Witch","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 2"}},{"text":"\\n","color":"reset"},{"text":"\\u2022 ","color":"dark_aqua"},{"text":"Nurse","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 3"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Marksman","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 4"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Armourer","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 5"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Summoner","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 6"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Farmer","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 7"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Fisherman","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 8"}}]'],title:"Kit Selector",author:"Nixinova",display:{Name:'"\\u00A7eKit Selector"',Lore:['"\\u00A7aSelect a kit"']},HideFlags:127}
16-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.5 air
17-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.6 air
18-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.7 air
19-
replaceitem entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.8 written_book{pages:['[{"text":"\\u00A7cChoose a cage:\\u00A7r\\n"},{"text":"\\n\\u2022 Default","color":"reset","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 0"}},{"text":"\\n\\u2022 None","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 1"}},{"text":"\\n\\u2022 Glass: "},{"text":"\\u25a0","color":"blue","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 2"}},{"text":"\\u25a0","color":"green","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 3"}},{"text":"\\u25a0","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 4"}},{"text":"\\u25a0","color":"red","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 5"}},{"text":"\\u25a0","color":"light_purple","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 6"}},{"text":"\\u25a0","color":"yellow","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 7"}},{"text":"\\u25a0","color":"dark_blue","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 8"}},{"text":"\\u25a0","color":"dark_green","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 9"}},{"text":"\\u25a0","color":"dark_gray","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 10"}},{"text":"\\u25a0","color":"black","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 11"}},{"text":"\\n\\u2022 Iron","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 12"}},{"text":"\\n\\u2022 Wood","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 13"}}]'],title:"Cage Selector",author:"Nixinova",display:{Name:'"\\u00A7eCage Selector"',Lore:['"\\u00A7aChoose a cage"']},HideFlags:127}
16+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.0 replace diamond_sword{display:{Name:'"\\u00A7eLobby Blade"',Lore:['"\\u00A7cFight in the lobby!"']},Enchantments:[{id:"knockback",lvl:2}],Unbreakable:true,HideFlags:127}
17+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.1 replace air
18+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.2 replace air
19+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.3 replace written_book{pages:['[{"text":"Select a kit:\\n","color":"red"},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Miner","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 1"}},{"text":"\\n","color":"reset"},{"text":"\\u2022 ","color":"dark_aqua"},{"text":"Witch","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 2"}},{"text":"\\n","color":"reset"},{"text":"\\u2022 ","color":"dark_aqua"},{"text":"Nurse","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 3"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Marksman","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 4"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Armourer","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 5"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Summoner","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 6"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Farmer","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 7"}},{"text":"\\n\\u2022 ","color":"dark_aqua"},{"text":"Fisherman","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s kit 8"}}]'],title:"Kit Selector",author:"Nixinova",display:{Name:'"\\u00A7eKit Selector"',Lore:['"\\u00A7aSelect a kit"']},HideFlags:127}
20+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.4 replace air
21+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.5 replace written_book{pages:['[{"text":"\\u00A7cChoose a cage:\\u00A7r\\n"},{"text":"\\n\\u2022 Default","color":"reset","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 0"}},{"text":"\\n\\u2022 None","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 1"}},{"text":"\\n\\u2022 Glass: "},{"text":"\\u25a0","color":"blue","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 2"}},{"text":"\\u25a0","color":"green","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 3"}},{"text":"\\u25a0","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 4"}},{"text":"\\u25a0","color":"red","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 5"}},{"text":"\\u25a0","color":"light_purple","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 6"}},{"text":"\\u25a0","color":"yellow","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 7"}},{"text":"\\u25a0","color":"dark_blue","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 8"}},{"text":"\\u25a0","color":"dark_green","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 9"}},{"text":"\\u25a0","color":"dark_gray","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 10"}},{"text":"\\u25a0","color":"black","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 11"}},{"text":"\\n\\u2022 Iron","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 12"}},{"text":"\\n\\u2022 Wood","clickEvent":{"action":"run_command","value":"/scoreboard players set @s cage 13"}}]'],title:"Cage Selector",author:"Nixinova",display:{Name:'"\\u00A7eCage Selector"',Lore:['"\\u00A7aChoose a cage"']},HideFlags:127}
22+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.6 replace air
23+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.7 replace air
24+
item entity @a[team=lobby,x=25,y=138,z=1,distance=..10] hotbar.8 replace air
2025

2126
# Lobby commands
2227
kill @e[type=item,x=25,y=138,z=1,distance=..10]
@@ -25,7 +30,7 @@ effect clear @a[x=25,y=138,z=1,distance=..10]
2530
effect give @a[x=25,y=138,z=1,distance=..10] minecraft:instant_health 1 10 true
2631
effect give @a[x=25,y=138,z=1,distance=..10] minecraft:saturation 1 10 true
2732
spawnpoint @a[x=25,y=138,z=1,distance=..10,team=!ready] 25 138 1
28-
tp @a[x=25,y=138,z=1,distance=..10,team=spectator] 25 138 1
33+
tp @a[x=25,y=138,z=1,distance=..11,gamemode=spectator] 25 138 1
2934
team join lobby @a[x=25,y=138,z=1,distance=..10,team=!ready]
3035
gamemode adventure @a[x=25,y=138,z=1,distance=..10]
3136

@@ -34,6 +39,7 @@ team join spectator @a[scores={deaths=1..}]
3439
gamemode spectator @a[team=spectator]
3540
scoreboard players reset * deaths
3641
execute as @a[team=spectator,x=0,y=-256,z=0,distance=..256] run tp @s ~ 64 ~
42+
kill @a[team=playing,x=0,y=-256,z=0,distance=..256]
3743

3844
# World commands
3945
weather clear

pack.mcmeta

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"pack": {
3-
"pack_format": 6,
4-
"description": "SkyWars data pack v2.1 for Minecraft 1.16"
3+
"pack_format": 7,
4+
"description": "SkyWars data pack v2.2 for Minecraft 1.17"
55
}
66
}

0 commit comments

Comments
 (0)