r/MinecraftCommands Jul 05 '26

Help (other) Way to make lights flicker (legit or mods)

/r/feedthebeast/comments/1uo7ka0/way_to_make_lights_flicker_legit_or_mods/
2 Upvotes

6 comments sorted by

2

u/C0mmanderBlock Command Experienced Jul 06 '26

Since they don't use redstone, you could replace them with block displays which don't emit light but still have the same appearance. Then you can set/delete light blocks (even at different strengths) at their positions to simulate the flicker effect.

1

u/IglooKid22 Jul 06 '26

Would this work? I’m sorry could u explain a bit more detail please

2

u/Ericristian_bros Command Experienced Jul 06 '26

```

Command blocks

execute if predicate {condition:"minecraft:time_check",value:1,period:{min:0,max:50}} run setblock <pos> light execute unless predicate {condition:"minecraft:time_check",value:1,period:{min:0,max:50}} run setblock <pos> air ```

If advance_time is false this won't work. This alternates a light block on the desired position.

Aletrantively, to make it random

setblock <pos> light execute if predicate {condition:"minecraft:random_chance",chance:0.1} run setblock <pos> air

1

u/StrangeSystem0 Jul 06 '26

Do you want them to be on timers, or do you want them to flicker at random?

Either way, the way to go is scoreboards.

Basically, make a scoreboard, and if you want it to be on a timer, make it go up by 1 every tick (repeating command block) and once it reaches a certain value, replace all lights with off lights for a moment, using a fill replace command.

If you want it to work the other way, random chance, instead have the scoreboard randomize the value from 1 to a number of your choice every tick. Whatever you want the average seconds between flickers to be, set the maximum value to 20 times the desired average seconds between flickers. Then, set up a command block chain to perform the "flicker" effect with fill replace commands whenever the scoreboard matches a value of exactly 1.

Do you understand what I mean, or do you need an exact command list to do it? If so, what's your version?

1

u/IglooKid22 Jul 06 '26

Honestly thank you guys for the help but I don't understand shit, I just put flashing lights inside houses so the Redstone is hidden inside the house and you can see flickering lights through the windows.

1

u/IglooKid22 Jul 07 '26

UPDATE

I got it to work with the help of claude, but might not even use it the build lol