Skip to content

✈️ Cinématique de vol (Minecraft 26.2) ​

📌 Avis de non-responsabilité concernant le code source du dépôt : La documentation de ce Wiki reflète l'état actuel du code source dans le dépôt, qui peut inclure des commits récents non publiés ou des fonctionnalités en cours de développement en avance sur les versions publiques sur CurseForge et Modrinth.


📋 Technical Infobox ​

SpecificationTechnical Details
System ArchitectureServer-Authoritative Abilities Pipeline + Permille Multiplier
Vanilla Baseline Speed$0.05\text{ blocks/tick}$ ($1.0\text{ blocks/second}$ base flying speed)
Controlling GameRulesvo_creative_fly_speed, vo_spectator_fly_speed
Unit ScalePermille ($1000 = 1.0\times$ vanilla, $2500 = 2.5\times$, $10000 = 10.0\times$)
Epsilon Drift Guard$\Delta \le 10^{-6}\text{ F}$ (Prevents packet spam on steady ticks)
Target Minecraft Version26.2

📐 Mathematical Formulation ​

1. Flying Speed Multiplier Equation ​

The target flight speed $V_{\text{fly}$ is derived from the configured permille value $P$:

$$V_{\text{fly} = 0.05 \times \frac{P}{1000.0}$$

Where:

  • $P = 1000 \implies V_{\text{fly} = 0.05$ (Vanilla baseline: $1.0\times$)
  • $P = 2000 \implies V_{\text{fly} = 0.10$ ($2.0\times$ speed)
  • $P = 5000 \implies V_{\text{fly} = 0.25$ ($5.0\times$ speed)
  • $P = 20000 \implies V_{\text{fly} = 1.00$ ($20.0\times$ speed)

2. Zero-Packet Network Epsilon Guard ​

To eliminate network packet spam and bandwidth waste during flight: $$\Delta = |V_{\text{current} - V_{\text{fly}|$$ Network synchronization packet ClientboundPlayerAbilitiesPacket is dispatched if and only if: $$\Delta > 10^{-6}\text{ F}$$

java
if (Math.abs(abilities.getFlyingSpeed() - targetSpeed) > 1e-6F) {
    abilities.setFlyingSpeed(targetSpeed);
    player.onUpdateAbilities();
}

🎮 Gamemode State Separation ​

GamemodeControlling GameRuleDefault ValueNotes
Creative Modevo_creative_fly_speed1000Applied strictly when gameMode.isCreative() is true.
Spectator Modevo_spectator_fly_speed1000Applied strictly when gameMode.isSpectator() is true.
Survival / AdventureNoneN/AUntouched; retains vanilla gravity and movement constraints.

Official documentation & web portal for Dasik Igaijinn mods.