22# at the arena marker's location
33# called by stack_attack_arena:setup/prepare_entities
44
5- # remove old tags, replace with sat_in_game
5+ # remove old tags, replace with sat_in_game and reset old participation fee storage for security.
6+ scoreboard players reset @s sat_match_value
67tag @s remove sat_waiting_for_game
78tag @s remove sat_joining_game
89tag @s add sat_in_game
@@ -22,26 +23,26 @@ effect give @s minecraft:resistance 4 12 true
2223# set gamemode
2324gamemode adventure
2425
25- # hand out some point in case the player has never played before and grant advacnement
26- execute unless score @s sat_leaderboard matches -2147483648 .. 2147483647 run function stack_attack_arena:setup/prepare_new_players
27-
28- # pay participation fee if player has at least 1 point
29- execute if score @s sat_leaderboard matches 1 .. run function stack_attack_arena:setup/pay_participation_fee
30-
3126# track games played stat
3227scoreboard players add @s sat_games_played 1
3328
3429# playsound
3530playsound minecraft:entity.player.attack.sweep player @s ~ ~ ~ 0.5 0 0
3631
37- # equip vests
38- replaceitem entity @s [ scores = {sat_leaderboard = 7 .. 9 }] armor . chest leather_chestplate {display : {color:15468800 , Name : " { \" text \" : \" Piñiata's Rough Quilt \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
39- replaceitem entity @s [ scores = {sat_leaderboard = 10 .. 13 }] armor . chest leather_chestplate {display : {color:16166926 , Name : " { \" text \" : \" Piñiata's Coarse Quilt \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
40- replaceitem entity @s [ scores = {sat_leaderboard = 14 .. 17 }] armor . chest leather_chestplate {display : {color:16773687 , Name : " { \" text \" : \" Piñiata's Wooly Quilt \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
41- replaceitem entity @s [ scores = {sat_leaderboard = 18 .. 21 }] armor . chest leather_chestplate {display : {color:12123959 , Name : " { \" text \" : \" Piñiata's Warm Mantle \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
42- replaceitem entity @s [ scores = {sat_leaderboard = 22 .. 25 }] armor . chest leather_chestplate {display : {color:2150446 , Name : " { \" text \" : \" Piñiata's Comfortable Mantle \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
43- replaceitem entity @s [ scores = {sat_leaderboard = 26 .. 29 }] armor . chest leather_chestplate {display : {color:2150562 , Name : " { \" text \" : \" Piñiata's Beloved Mantle \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
44- replaceitem entity @s [ scores = {sat_leaderboard = 30 .. 33 }] armor . chest leather_chestplate {display : {color:1177343 , Name : " { \" text \" : \" Piñiata's Simple Jacket \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
45- replaceitem entity @s [ scores = {sat_leaderboard = 34 .. 37 }] armor . chest leather_chestplate {display : {color:1151743 , Name : " { \" text \" : \" Piñiata's Plush Jacket \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
46- replaceitem entity @s [ scores = {sat_leaderboard = 38 .. 41 }] armor . chest leather_chestplate {display : {color:6955247 , Name : " { \" text \" : \" Piñiata's Magical Jacket \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
47- replaceitem entity @s [ scores = {sat_leaderboard = 42 .. }] armor . chest leather_chestplate {display : {color:8716537 , Name : " { \" text \" : \" Piñiata's Robe \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
32+ # hand out some point in case the player has never played before and grant advacnement
33+ execute unless score @s sat_leaderboard matches -2147483648 .. 2147483647 run function stack_attack_arena:setup/prepare_new_players
34+
35+ # equip vests before participation fee is payed
36+ replaceitem entity @s [ scores = {sat_leaderboard = 8 .. 11 }] armor . chest leather_chestplate {display : {color:15468800 , Name : " { \" text \" : \" Piñiata's Rough Quilt \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
37+ replaceitem entity @s [ scores = {sat_leaderboard = 11 .. 14 }] armor . chest leather_chestplate {display : {color:16166926 , Name : " { \" text \" : \" Piñiata's Coarse Quilt \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
38+ replaceitem entity @s [ scores = {sat_leaderboard = 15 .. 18 }] armor . chest leather_chestplate {display : {color:16773687 , Name : " { \" text \" : \" Piñiata's Wooly Quilt \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
39+ replaceitem entity @s [ scores = {sat_leaderboard = 19 .. 22 }] armor . chest leather_chestplate {display : {color:12123959 , Name : " { \" text \" : \" Piñiata's Warm Mantle \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
40+ replaceitem entity @s [ scores = {sat_leaderboard = 23 .. 26 }] armor . chest leather_chestplate {display : {color:2150446 , Name : " { \" text \" : \" Piñiata's Comfortable Mantle \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
41+ replaceitem entity @s [ scores = {sat_leaderboard = 27 .. 30 }] armor . chest leather_chestplate {display : {color:2150562 , Name : " { \" text \" : \" Piñiata's Beloved Mantle \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
42+ replaceitem entity @s [ scores = {sat_leaderboard = 31 .. 34 }] armor . chest leather_chestplate {display : {color:1177343 , Name : " { \" text \" : \" Piñiata's Simple Jacket \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
43+ replaceitem entity @s [ scores = {sat_leaderboard = 35 .. 38 }] armor . chest leather_chestplate {display : {color:1151743 , Name : " { \" text \" : \" Piñiata's Plush Jacket \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
44+ replaceitem entity @s [ scores = {sat_leaderboard = 39 .. 42 }] armor . chest leather_chestplate {display : {color:6955247 , Name : " { \" text \" : \" Piñiata's Magical Jacket \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
45+ replaceitem entity @s [ scores = {sat_leaderboard = 43 .. }] armor . chest leather_chestplate {display : {color:8716537 , Name : " { \" text \" : \" Piñiata's Robe \" , \" italic \" : \" false \" } " }, Unbreakable : 1b , AttributeModifiers : [ {AttributeName : " generic.armor " , Name : " generic.armor " , Slot : " chest " , Amount : 0 , Operation : 0 , UUIDMost : 10513 , UUIDLeast : 111743 }] , Enchantments : [ {id : " binding_curse " , lvl:1 }, {id : " vanishing_curse " , lvl:1 }] , HideFlags : 1 } 1
46+
47+ # pay participation fee if player has at least 1 point
48+ execute if score @s sat_leaderboard matches 1 .. run function stack_attack_arena:setup/pay_participation_fee
0 commit comments