1
Keeping Potion Effects After Respawn.
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.
7
gae lol
effect give @a[name=(username),nbt=!{ActiveEffects:[{Id: "insert potion id here" }]}] (effect) 999999 (level) (true/false)
i think it would be more efficient
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
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
ok
lag will not be a problem for 1 repeating thing unless you have terrible hardware.
There is a gamerule for that!
/gamerule commandBlockOutput falseAs for the lag, can't help you there bud. Hope this helps!
