From a0c3e646c6bd3d163b274678cc0124358d6091d7 Mon Sep 17 00:00:00 2001 From: MrBurdy <78470748+MrBurdy@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:35:53 +0100 Subject: [PATCH] fixed death message Respawn keep this effect --- .../functions/player/death/respawn/revive.mcfunction | 4 ++++ .../functions/player/death/respawn/start.mcfunction | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/revive.mcfunction b/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/revive.mcfunction index b0e3ba72..e49dc4ed 100644 --- a/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/revive.mcfunction +++ b/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/revive.mcfunction @@ -1,4 +1,8 @@ +# Remove the "Red Screen" +item replace entity @s armor.head with air + + execute positioned as @e[type=villager,tag=respawn_villager,tag=red_villager,limit=1,sort=nearest] run tp @s[team=red,tag=player.can_respawn,tag=!inTutorial] ~ ~ ~ execute positioned as @e[type=villager,tag=respawn_villager,tag=blue_villager,limit=1,sort=nearest] run tp @s[team=blue,tag=player.can_respawn,tag=!inTutorial] ~ ~ ~ execute positioned as @e[type=villager,tag=respawn_villager,tag=green_villager,limit=1,sort=nearest] run tp @s[team=green,tag=player.can_respawn,tag=!inTutorial] ~ ~ ~ diff --git a/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/start.mcfunction b/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/start.mcfunction index c39abd0d..45f8d6ae 100644 --- a/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/start.mcfunction +++ b/datapacks/Scaffolding Rush/data/scaffolding_rush/functions/player/death/respawn/start.mcfunction @@ -5,7 +5,6 @@ scoreboard players operation @s respawn.timer = #respawn.delay.tick options scoreboard players operation @s respawn.timer > 1 const gamemode spectator @s -item replace entity @s armor.head with air tag @s remove player.death.drown_in_lava tag @s remove player.death.killed_by_player tag @s add player.item.can_have_items \ No newline at end of file