I know there is a Query Event to change query data. But how can I change the query data every second using a Repeatingtask?
Store your result from your repeating task somewhere internally and apply it when QueryRegenerateEvent is called.