Make every <timespan> Independent of Server Tick Rate
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by locating how every <timespan> is scheduled and how explicit tick intervals are handled; the issue does not name files or tests. Compare the current 20-ticks-per-second behavior with real elapsed-time scheduling, and check how the two interval forms should behave when server TPS changes. Done means time units track real elapsed time while tick intervals remain tick-based.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Suggestion
I propose that every events use real elapsed time rather than a fixed number of Minecraft ticks.
For example:
every 1 second:
should execute once every real-world second regardless of the server's configured or actual tick rate.
Why?
The term "second" implies a real-world second rather than a specific number of game ticks.
Making every use real elapsed time would:
Produce consistent behavior across servers.
Match user expectations.
Prevent timers from speeding up or slowing down when TPS differs from 20.
Make periodic tasks more suitable for cooldowns, statistics, API polling, and other time-sensitive systems.
Other
every 1 second is currently based on 20 ticks.
This means the real-world interval changes when the server's tick rate differs from 20 TPS:
20 TPS → every 1.0 seconds
30 TPS → every ~0.67 seconds
10 TPS → every 2.0 seconds
As a result, the same script can behave differently across servers.
Tick-based scheduling would still be available through explicit tick intervals:
every 20 ticks:
This allows scripts that need game-time precision to continue using ticks while making time units behave according to their literal meaning.
Agreement
- I have read the guidelines above and affirm I am following them with this suggestion.
- Lingua principale
- Java
- Stelle
- 1.3k
- Fork
- 456
- Merge medio
- 4g 14h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SkriptLang/Skript
-
bug priority: lowest
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
SkriptLang/Skript#8953 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority: lowest
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SkriptLang/Skript#8952 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Support `glid(e|ing)` in glide toggle eventForse già presa @AnOwlBe l’ha presa 201 giorni fa. Apertaenhancement priority: lowest suggestion
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
SkriptLang/Skript#8573 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority: lowest
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
SkriptLang/Skript#8954 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Command BugsForse già presa @APickledWalrus l’ha presa 1 giorno fa. Apertabug PR available priority: medium
SkriptLang/Skript#8936 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SkriptLang/Skript
Issue simili
-
Startup can freeze while MigLayout's component wrapper runs its static initializer on the EDTApertadesktop edt not responding
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
physical
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
antonyrag/ragleap-core#1339 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rezelyn/Wathe-Extended#116 ·