-
Notifications
You must be signed in to change notification settings - Fork 0
/
death.mcfunction
43 lines (43 loc) · 10.2 KB
/
death.mcfunction
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
clear @s[scores={death=1}]
execute as @s[scores={death=1}] run tag @s add dead
execute at @s[scores={death=1,voted=0}] run summon villager ~ ~-15 ~ {Tags:["report_body","body"],NoAI:1b,Silent:1b,Invulnerable:1b,NoGravity:1b}
execute if entity @s[scores={death=1,voted=1..}] run scoreboard players set @s death 0
scoreboard players set @s[tag=color_picked,scores={voted=1..}] voted 0
execute if entity @s[scores={death=1},team=redsus] at @s[scores={death=1},team=redsus] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:14425632}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (red)"}'},SkullOwner:{Id:[I;1180736830,2027045052,-1647592044,1801125370],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGM0ZDQ0YTBmZmUwMjM0OWU5OWRhMDYyOTIxMzA2MzExM2U2YmIzYWZjMjU5ZjQ2NjE4YzkwZWRjZTgzMDc4NiJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=green] at @s[scores={death=1},team=green] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:3907597}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (green)"}'},SkullOwner:{Id:[I;1022014994,-2055255964,-1990289789,-1305013761],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGU3YjFmYTNkMTVmM2E3NWM4NzhhNGNmZGQ2OTUzYjdkOTcwMTlmNzM4YWQzY2Q1ZDg4NTUzZWM2ODg0Y2NkNSJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=aqua] at @s[scores={death=1},team=aqua] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:2424829}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (cyan)"}'},SkullOwner:{Id:[I;1627740602,-1939586352,-2113633294,-1515178172],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODAzNzZlNzRiZjc1OGEwMGFlYTYyOGE3MGFlNTNkODVkZTVlMWI1NzcxNDc3YzE0YTg0N2RmOGZiYjFkZTgzMCJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=black] at @s[scores={death=1},team=black] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:2697513}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (black)"}'},SkullOwner:{Id:[I;342898611,-2140254624,-1432413330,-1572921255],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTg1NTI3ZmUyNjk0N2Y0M2E3MmRkY2IwMDZjNmRkYzQxZGE3YjIxMGRiMmRlNzEyNDdlNTNiZjA2MWZkODJiZSJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=blue] at @s[scores={death=1},team=blue] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:3292078}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (blue)"}'},SkullOwner:{Id:[I;-1226288209,862011900,-1373706256,640003710],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzAxNjAxNDcxNmY1ZDllMjk0OTE3OGVjMzgyNzkyZjk4OTk2NzFkZTg5NGMxZDM4MTg0ODhlNWRiNTZkOWZhZSJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=gray] at @s[scores={death=1},team=gray] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:10592673}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Among Us (gray)"}'},SkullOwner:{Id:[I;-1732663621,-1028897995,-1503093863,-850396418],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDgxMmVjNDE1MmMzYjY4YTM5NDQxNmY4NjQyMmJmMjc3ODQ0YWMyY2E3Nzc5ZDMzNzRmMWEwOGYxMWNhZmRkMyJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=lime] at @s[scores={death=1},team=lime] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:4194089}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (lime)"}'},SkullOwner:{Id:[I;1901172161,437929781,-1566509688,1549589200],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTJlODgzY2QyODdjMTg1NWFmNmE3ZmEyNzZhNzEyNDc3Y2NkMDJiMWRmNGU4NjYzZDFhN2EwYzc1MDM3ZGMxZCJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=orange] at @s[scores={death=1},team=orange] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:16750121}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (orange)"}'},SkullOwner:{Id:[I;-630017417,-1376566795,-2006685732,-1866303261],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzE5YjE4MzNjMDg2YzQ4ZmI0ZmVmZTIzYjZhY2Q4MWRhMzU5MGI2MWVlZDQwZjM5NmRiZGY3YWE2ODE1OTBhOSJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=pink] at @s[scores={death=1},team=pink] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:16344821}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (pink)"}'},SkullOwner:{Id:[I;40474398,2140029139,-1783819896,2024713992],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTJiMDUwODgwM2MwOTA4OGI3MWQ5NWViZTU3YTM0NWY3NzU0NzMzZDBjOWEyN2Y4YzE0Y2FlY2U1NWY1MjBmZiJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=purple] at @s[scores={death=1},team=purple] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:7288776}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (purple)"}'},SkullOwner:{Id:[I;640240899,778325752,-1536767329,-1015090256],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmE4ZWNjM2IzNmU5OWExNmY3NTgyMjA3ZGRkMzc1NjA4NGMwMmIwZmIwYjBhMTllNGQzYThkMjA2NzQwN2Y3ZSJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=white] at @s[scores={death=1},team=white] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:16777215}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (white)"}'},SkullOwner:{Id:[I;1904482835,881279197,-1692813976,627979781],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjI0ZGFhODQ5ZmZkMmVlODc4MjkzNDljNzQzNDY1MzIxNTRhOTU3MmVhZTBkZmVkMmJiMjgzMWYxYmQwOTdiIn19fQ=="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @s[scores={death=1},team=yellow] at @s[scores={death=1},team=yellow] run summon armor_stand ~ ~-1.2 ~ {Invulnerable:1b,Tags:["body"],NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{},{},{id:"leather_chestplate",Count:1b,tag:{display:{color:16776770}}},{id:"player_head",Count:1b,tag:{display:{Name:'{"text":"Mini Crewmate (yellow)"}'},SkullOwner:{Id:[I;-178225859,-1537978554,-1462670108,49632637],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmQ0NjczOGU2Y2VkYTY1MmU5ZTdiNzYxNzcwY2ZkMGE4Y2FkZDU1NGNmODdmMjAyZDFlMWU4N2U3YWYyZWRiYyJ9fX0="}]}}}},{}],HandItems:[{},{}],Pose:{Body:[90f,0f,0f],Head:[102f,0f,180f],LeftArm:[100f,0f,0f],RightArm:[102f,0f,0f]},DisabledSlots:4144959}
execute if entity @e[tag=report_body] as @e[tag=report_body] at @s run tp @s ~ ~15 ~
effect clear @e[tag=report_body] invisibility
tag @s remove task_asteroids
tag @s remove task_cardswipe
tag @s remove task_course
tag @s remove task_distributor
tag @s remove task_divertpow
tag @s remove task_download
tag @s remove task_engine
tag @s remove task_filter
tag @s remove task_fuel1
tag @s remove task_fuel2
tag @s remove task_garbage
tag @s remove task_manifolds
tag @s remove task_refueling
tag @s remove task_refuel
tag @s remove task_fuel
tag @s remove task_samples
tag @s remove task_scan
tag @s remove task_shields
tag @s remove task_simon
tag @s remove task_steering
tag @s remove task_wires
tag @s remove anim_fuse
tag @s remove cam_player
execute as @s[scores={death=1}] run scoreboard players set @s death 0