From 61086b6444db1f5f46e78b5479b07974806c13e3 Mon Sep 17 00:00:00 2001 From: Vincent Foriel Date: Thu, 4 Jan 2024 14:36:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(fix)=20Wallstreet:=20it=20was?= =?UTF-8?q?=20possible=20for=20players=20to=20die=20during=20a=20game?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minigames/data/wallstreet/functions/start/start.mcfunction | 5 +++++ .../data/wallstreet/functions/stop/reset_player.mcfunction | 3 +++ 2 files changed, 8 insertions(+) diff --git a/minigames/data/wallstreet/functions/start/start.mcfunction b/minigames/data/wallstreet/functions/start/start.mcfunction index 49377d2..7da1d97 100644 --- a/minigames/data/wallstreet/functions/start/start.mcfunction +++ b/minigames/data/wallstreet/functions/start/start.mcfunction @@ -48,3 +48,8 @@ function #bs.sidebar:create { \ scoreboard objectives setdisplay sidebar.team.yellow bs.sidebar.wallstreet function wallstreet:music/start + + +effect give @a[team=wallstreet] resistance infinite 127 true +effect give @a[team=wallstreet] regeneration infinite 127 true +effect give @a[team=wallstreet] weakness infinite 127 true \ No newline at end of file diff --git a/minigames/data/wallstreet/functions/stop/reset_player.mcfunction b/minigames/data/wallstreet/functions/stop/reset_player.mcfunction index 58ab287..06b9a41 100644 --- a/minigames/data/wallstreet/functions/stop/reset_player.mcfunction +++ b/minigames/data/wallstreet/functions/stop/reset_player.mcfunction @@ -1,5 +1,8 @@ clear @s +effect clear @s resistance +effect clear @s regeneration +effect clear @s weakness team leave @s tag @s remove wallstreet.villager.client tag @s remove wallstreet.villager.locked