So im working on my server, and I want everyone to have night vision, but if I just leave it how it is now, the console is constantly spammed with "Given effect minecraft:night_vision to {Player} for 1000000 Seconds". How would I target only the players that dont have night vision? Thanks!
So im working on my server, and I want everyone to have night vision, but if I just leave it how it is now, the console is constantly spammed with "Given effect minecraft:night_vision to {Player} for 1000000 Seconds". How would I target only the players that dont have night vision? Thanks!
/effect give @a[nbt=!{ActiveEffects:[{Id:16b}]}] minecraft:night_vision 1000000 0 true
So im working on my server, and I want everyone to have night vision, but if I just leave it how it is now, the console is constantly spammed with "Given effect minecraft:night_vision to {Player} for 1000000 Seconds". How would I target only the players that dont have night vision? Thanks!
/effect give @a[nbt=!{ActiveEffects:[{Id:16b}]}] minecraft:night_vision 1000000 0 true
This is in 1.13. Does this work?
my server is on 1.12.2...
and that command doesn't work even with some modifications to it
scoreboard players tag @a add had_nv {ActiveEffects:[{Id:16b}]}
effect @a[tag=!hav_nv] minecraft:night_vision 1000000 0 true
scoreboard players tag @a remove had_nv
I haven't work on maps in 1.12 since 1.13 officially relesed, so I might get a little rusty. Check if these 3 commands work.
how should I run those? in 3 different repeating command blocks?
Yeah. You won't rly expect it to be impulse, right?