if you want to give a player a permanent potion effect set up a repeating command block set to always active that gives the player the effect.
"/effect @p/@a 1 1 true"
you can change the duration or level of the effect to how you want, (but if your doing night vision id suggest 15-20 seconds so the screen isnt flickering)
ALSO if you want this to apply even when the player is far away use the /tickingarea command to permanently load the chunk the command block is in.
i dont know the exact syntax but the chat can tell you. i hope this helps?
As for checking if a player has an effect, I don't think this is possible on bedrock.
I wanna know to to make a command block check for the player @e if he has night vision, if not give him infinite night vision
Dam no response
if you want to give a player a permanent potion effect set up a repeating command block set to always active that gives the player the effect.
"/effect @p/@a 1 1 true"
you can change the duration or level of the effect to how you want, (but if your doing night vision id suggest 15-20 seconds so the screen isnt flickering)
ALSO if you want this to apply even when the player is far away use the /tickingarea command to permanently load the chunk the command block is in.
i dont know the exact syntax but the chat can tell you. i hope this helps?
As for checking if a player has an effect, I don't think this is possible on bedrock.