1

Keeping Potion Effects After Respawn.

CookieMan3106 •11/27/21 11:19 pm
•
182
•
11/29/2021 1:00 am
So, I wanted to give people permanent effects even after death or drinking milk. So, I thought of making a repeating command block to constantly do /effect (username) (effect) (infinite amount of time) (effect level). However, I'm wondering if it would fill up the chat for operators or lag the server badly. If anyone knows anything about this please tell me.
Posted by
CookieMan3106
Level 6 : Apprentice Miner
2

  Have something to say?

Join • Sign in

7

MaybeMayaank
• 11/29/2021 1:00 am
• Level 4 : Apprentice Network
gae lol
1
mari2
• 11/28/2021 9:58 pm
• Level 42 : Master uwu
effect give @a[name=(username),nbt=!{ActiveEffects:[{Id: "insert potion id here" }]}] (effect) 999999 (level) (true/false)
1
mari2
• 11/28/2021 9:58 pm
• Level 42 : Master uwu
i think it would be more efficient
1
HoboMaggot
• 11/28/2021 10:53 pm
• Level 56 : Grandmaster Blob
It wont be the most efficient as you're searching for nbt that is heavily nested (especially when there are multiple effects).

Just detect when the player has died through a scoreboard and apply the effects before removing the deathscore.
Much more efficient as scoreboards are heavily optimised
1
mari2
• 11/28/2021 11:44 pm
• Level 42 : Master uwu
ok
1
mari2
• 11/28/2021 10:01 pm
• Level 42 : Master uwu
lag will not be a problem for 1 repeating thing unless you have terrible hardware.
1
sleepwalkr23
• 11/28/2021 9:22 pm
Any/All • Level 37 : Artisan Bunny Procrastinator
There is a gamerule for that!
/gamerule commandBlockOutput falseAs for the lag, can't help you there bud. Hope this helps!
2

Welcome