Can I set Bedrock in Minecraft to trigger a redstone signal after certain ticks?

St
1

E.g. Always after 500 ticks the weather is set to thunder.

an

Jo, just a scoreboard that increases every tick. And then a command block that is triggered when the scoreboard exceeds 500, and a second that resets the scoreboard.