Flying and holding CTRL really close to the ground, emits walking particles
The bug
Flying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.
How to reproduce
- Stand still in the air (levitating)
- /tp yourself 0.000001 over a block, i.e /tp ~ 75.00001 ~
- Start sprint-flying
Code analysis
Code analysis by [Mod] bemoty can be found in this comment.
Created Issue:
Flying and holding CTRL really close to the ground, emits walking particles
Flying really close to the ground, but still over. (I.e 0,00001 blocks over the ground) you will emit walking particles whilist holding the sprint key.
What I expected to happen was...:
No particlesWhat actually happened was...:
Walking particles
Steps to Reproduce:
1. Stand stil in the air, (levitating)
2. Tp yourself 0.000001 over a block (i.e tp @p ~ 75.00001 ~)
3. Start sprint-flyingEnvironment
Windows 8
Flying really close to the ground, but still over. (
I.e 0,00001 blocks over the ground) you will emit walking particles whilist holding the sprint key.What I expected to happen was...:
No particlesWhat actually happened was...:
Walking particles
Steps to Reproduce:
1. Stand stil in the air,(levitating)2. Tpyourself 0.000001 over a block(i.etp @p ~ 75.00001 ~)
3. Start sprint-flyingFlying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.
What I expected to happen was...:
No particlesWhat actually happened was...:
Walking particlesSteps to Reproduce:
1. Stand still in the air (levitating)
2. /tp yourself 0.000001 over a block, i.e /tp @p ~ 75.00001 ~
3. Start sprint-flying
Windows 8
Flying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.
What I expected to happen was...:
No particlesWhat actually happened was...:
Walking particlesSteps to Reproduce:
1. Stand still in the air (levitating)
2. /tp yourself 0.000001 over a block, i.e /tp@p~ 75.00001 ~
3. Start sprint-flying
relates to
Flying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.
What I expected to happen was...:
No particlesWhat actually happened was...:
Walking particlesSteps to Reproduce:
1. Stand still in the air (levitating)
2. /tp yourself 0.000001 over a block, i.e /tp ~ 75.00001 ~
3. Start sprint-flying
Code analysis by [Mod] bemoty can be found in this comment.
Flying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.
What I expected to happen was...:
No particlesWhat actually happened was...:
Walking particlesSteps to Reproduce:
1. Stand still in the air (levitating)
2. /tp yourself 0.000001 over a block, i.e /tp ~ 75.00001 ~
3. Start sprint-flying
Code analysis by [Mod] bemoty can be found in this comment.
The bug
Flying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.
How to reproduce
- Stand still in the air (levitating)
- /tp yourself 0.000001 over a block, i.e /tp ~ 75.00001 ~
- Start sprint-flying
Code analysis
Code analysis by [Mod] bemoty can be found in this comment.
is duplicated by
relates to
The bug
When I was testing the newest snapshot, I tried Spectator mode. I tried to sprint, and I saw sprint particles. The particles is only there if I'm flying on the ground. I'm not sure if other players can see that, but at least the player that's sprinting can see it.
As of snapshot 18w07a, sprint particles will continuously appear even when stationary. This doesn't occur in 18w20c anymore.
You can see this when the Particles setting is All or Decreased, but not Minimal.
Code analysis
Code analysis by [Mod] bemoty can be found in this comment (v2 fixes both MC-46417 and MC-94535).
If you are in spectator mode (/gamemode <3|spectator> [Name/Selector]) and you sprint while on or in a block, you see particles.
==============
What I expected: Particles would be invisible.
What Happened: Particles are visible.
==============
REPRODUCTION:
==============
1) Go into Spectator Mode ('/gamemode 3')
2) Go into/onto a block
3) Hold CTRL/your Sprint key
4) See your particles
Best seen if you are being supported on a block (i.e. not flying) and then switching
==========
Possible duplications:
MC-94535 - Flying and holding CTRL really close to the ground, emits walking particles
(doesn't mention spectator mode/must be on a block)
Edited MC-94535 text and selected gamemode
The following is based on a decompiled version of Minecraft 1.12 using MCP 9.40pre-1.
This happens because the class net.minecraft.entity.player.EntityPlayer doesn't override the method net.minecraft.entity.Entity.spawnRunningParticles(), which means the game doesn't check if the player is on the ground (it only checks if the player is sprinting and if the player isn't in water) before it spawns running particles.
@Override public void spawnRunningParticles() { if(this.onGround) { super.spawnRunningParticles(); } }
This is basically just an improved version of the fix posted here as it fixes both MC-46417 and MC-94535 because the field net.minecraft.entity.Entity.onGround will always be false if the player is in spectator mode.
Confirmed for 15w51b, though I remember noticing it in previous versions as well. Also happens in spectator mode while inside blocks. Sprint particles generate as long as you're 0.2 blocks and lower from the surface of the ground.
Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.
This is an automated comment on any open or reopened issue with out-of-date affected versions.
Confirmed for 1.12-pre7
Can confirm for MC 1.12.1.
Related to
MC-46417The following is based on a decompiled version of Minecraft 1.12 using MCP 9.40pre-1.
This happens because the class net.minecraft.entity.player.EntityPlayer doesn't override the method net.minecraft.entity.Entity.spawnRunningParticles(), which means the game doesn't check if the player is on the ground (it only checks if the player is sprinting and if the player isn't in water) before it spawns running particles.
This is basically just an improved version of the fix posted here as it fixes both
MC-46417andMC-94535because the field net.minecraft.entity.Entity.onGround will always be false if the player is in spectator mode.Confirmed for 18w07c.
Affects 18w20c
Confirmed for 1.13-pre8
Confirmed for 1.13
Confirmed for 18w30b
Can confirm for 1.14.3