As of 1.9, the wither health bar doesn't go up during spawn
The bug
When spawned with skulls and soul sand, the wither used to show its bar slowly filling up the health right before it was about to explode and be ready for fight. That is no longer the case in this version. Compare it with 1.8.9 to see the difference. This means also that command blocks are unable to detect the health of the wither.
Code analysis
Code analysis by Insane96MCP can be found in this comment.
- Fixed
[Mod] AsteraothAlexMagic
[Mojang] slicedlime- 23
- 9
- Confirmed
Normal
- Mob behaviour Mob spawning
- health spawning wither
1.9 - 1.16.3
1.9 1.9.2 16w15a 16w15b 1.9.3-pre2 1.9.4 16w20a 1.10.2 16w43a 1.11.2 17w06a 17w13b 17w16a 1.12.2 17w45b 18w07a 18w11a 18w20c 18w22c 1.13-pre2 1.13-pre5 1.13-pre7 1.13-pre8 1.13 18w31a 18w32a 18w33a 1.13.1-pre1 1.13.1 1.13.2 18w43b 18w45a 18w46a 18w48a 18w48b 18w49a 19w04b 19w07a 19w12b 19w13b 19w14a 19w14b 1.14.2 1.14.3-pre3 1.14.3-pre4 1.14.3 1.14.4 19w42a 1.15.2 20w12a 20w14a 20w19a 1.16 1.16.1 20w27a 1.16.2-rc1 1.16.2 1.16.3-rc1 1.16.3- 20w46a
Created Issue:
Wither Boss Health Bar is glitchy
When spawned with skulls and soul sand, the Wither used to show his bar filing up his health when he was about to explode and be ready for fight.
That is no longer the case in this version.
This means also that command blocks are unable to detect the health of the Wither.PLS fix
ty
WitherBossHealthBaris glitchyWitherBoss health bar doesn't go up during spawn
When spawned with skulls and soul sand, the Wither used to show
his bar filing up his health when he was about to explode and be ready for fight.
That is no longer the case in this version.
This means also that command blocks are unable to detect the health of the Wither.PLS fix
ty
When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up his health when he was about to explode and be ready for fight.
That is no longer the case in this version.
This means also that command blocks are unable to detect the health of the Wither.
WitherBosshealth bar doesn't go up during spawnAs of 1.9, the Wither health bar doesn't go up during spawn
When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up his health when he was about to explode and be ready for fight.
That is no longer the case in this version. Compare it with 1.8.9 to see the difference.
This means also that command blocks are unable to detect the health of the Wither.
When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up
hishealthwhen hewas about to explode and be ready for fight.
That is no longer the case in this version. Compare it with 1.8.9 to see the difference.
This means also that command blocks are unable to detect the health of the Wither.When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up the health right before it was about to explode and be ready for fight.
That is no longer the case in this version. Compare it with 1.8.9 to see the difference.
This means also that command blocks are unable to detect the health of the Wither.
When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up the health right before it was about to explode and be ready for fight.
That is no longer the case in this version. Compare it with 1.8.9 to see the difference.
This means also that command blocks are unable to detect the health of the Wither.The bug
When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up the health right before it was about to explode and be ready for fight.
That is no longer the case in this version. Compare it with 1.8.9 to see the difference. This means also that command blocks are unable to detect the health of the Wither.Code analysis
Code analysis by Insane96MCP can be found in this comment .
As of 1.9, theWither health bar doesn't go up during spawnAs of 1.9, the wither health bar doesn't go up during spawn
The bug
When spawned with skulls and soul sand, the Wither used to show its bar slowly filling up the health right before it was about to explode and be ready for fight.
That is no longer the case in this version. Compare it with 1.8.9 to see the difference. This means also that command blocks are unable to detect the health of the Wither.Code analysis
Code analysis by Insane96MCP can be found in this comment.
The bug
When spawned with skulls and soul sand, the wither used to show its bar slowly filling up the health right before it was about to explode and be ready for fight. That is no longer the case in this version. Compare it with 1.8.9 to see the difference. This means also that command blocks are unable to detect the health of the wither.
Code analysis
Code analysis by Insane96MCP can be found in this comment.
is duplicated by
is duplicated by
is duplicated by
I have discovered this bug while testing MC-99259.
- Get a Wither Skeleton Skull
- Place it on the ground anywhere
→ Your game will crash
---- Minecraft Crash Report ---- // I blame Dinnerbone. Time: 7/26/18 3:58 PM Description: Unexpected error java.lang.NullPointerException: Unexpected error at bjc.w(SourceFile:119) at biu.a(SourceFile:45) at biu.a(SourceFile:40) at arh.a(SourceFile:63) at arh.a(SourceFile:36) at atc.a(SourceFile:186) at cqx.a(SourceFile:333) at cfl.aw(SourceFile:1176) at cfl.ax(SourceFile:1409) at cfl.m(SourceFile:1250) at cfl.c(SourceFile:820) at cfl.a(SourceFile:394) at net.minecraft.client.main.Main.main(SourceFile:144) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at bjc.w(SourceFile:119) at biu.a(SourceFile:45) at biu.a(SourceFile:40) at arh.a(SourceFile:63) at arh.a(SourceFile:36) at atc.a(SourceFile:186) at cqx.a(SourceFile:333) at cfl.aw(SourceFile:1176) at cfl.ax(SourceFile:1409) -- Affected level -- Details: Level name: MpServer All players: 1 total; [ctb['Asteraoth'/225, l='MpServer', x=-36.83, y=63.00, z=225.18]] Chunk stats: MultiplayerChunkCache: 552, 552 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: {} Level spawn location: World: (-44,63,228), Chunk: (at 4,3,4 in -3,14; contains blocks -48,0,224 to -33,255,239), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 2780 game time, 2780 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 110 total; [amk['Red Mushroom'/769, l='MpServer', x=-94.13, y=14.07, z=232.13], anv['Zombie Villager'/1794, l='MpServer', x=2.18, y=22.00, z=227.50], anu['Zombie'/1795, l='MpServer', x=-84.50, y=50.00, z=252.50], anu['Zombie'/1796, l='MpServer', x=-87.50, y=50.00, z=254.50], amr['Creeper'/2053, l='MpServer', x=-64.50, y=13.00, z=224.50], anu['Zombie'/2054, l='MpServer', x=-71.50, y=13.00, z=224.50], amk['Rail'/776, l='MpServer', x=-63.32, y=11.00, z=203.48], ajk['Bat'/1549, l='MpServer', x=27.66, y=37.02, z=284.26], anu['Zombie'/2062, l='MpServer', x=28.50, y=21.00, z=200.50], amu['Enderman'/2075, l='MpServer', x=-2.50, y=49.00, z=294.50], anu['Zombie'/2331, l='MpServer', x=-96.50, y=16.00, z=229.50], amr['Creeper'/2078, l='MpServer', x=-97.50, y=16.00, z=198.50], amr['Creeper'/2079, l='MpServer', x=-93.81, y=15.00, z=191.48], amr['Creeper'/2080, l='MpServer', x=-95.60, y=16.00, z=190.98], ajy['Pig'/42, l='MpServer', x=-115.37, y=63.00, z=196.47], ajy['Pig'/43, l='MpServer', x=-115.46, y=63.00, z=198.78], anl['Skeleton'/2347, l='MpServer', x=29.50, y=36.00, z=232.50], ajy['Pig'/44, l='MpServer', x=-114.97, y=64.00, z=193.10], anu['Zombie'/2348, l='MpServer', x=33.50, y=23.00, z=209.50], anu['Zombie'/2350, l='MpServer', x=38.24, y=26.00, z=212.49], anl['Skeleton'/1328, l='MpServer', x=-53.50, y=13.00, z=245.50], anl['Skeleton'/2352, l='MpServer', x=-92.50, y=23.00, z=292.50], anl['Skeleton'/1856, l='MpServer', x=6.37, y=35.00, z=291.47], amk['Rail'/71, l='MpServer', x=-90.63, y=15.00, z=228.59], ajk['Bat'/2119, l='MpServer', x=-62.38, y=48.75, z=284.48], amk['Rail'/72, l='MpServer', x=-90.13, y=15.00, z=224.25], amr['Creeper'/1864, l='MpServer', x=-6.30, y=33.17, z=269.60], ajk['Bat'/2121, l='MpServer', x=16.35, y=25.09, z=214.61], amk['Rail'/76, l='MpServer', x=-82.24, y=8.00, z=284.09], amk['Rail'/77, l='MpServer', x=-81.67, y=8.00, z=282.13], amu['Enderman'/1875, l='MpServer', x=-73.50, y=14.00, z=182.50], akg['Squid'/1620, l='MpServer', x=-95.39, y=62.57, z=248.58], ano['Spider'/1876, l='MpServer', x=-73.50, y=14.00, z=186.50], akg['Squid'/1621, l='MpServer', x=-95.74, y=61.92, z=245.69], apj['Minecart with Chest'/89, l='MpServer', x=-68.50, y=14.06, z=209.50], anl['Skeleton'/1637, l='MpServer', x=-88.50, y=21.00, z=240.50], anl['Skeleton'/2407, l='MpServer', x=-71.50, y=11.00, z=194.50], ajy['Pig'/104, l='MpServer', x=-69.33, y=68.00, z=166.48], anl['Skeleton'/2408, l='MpServer', x=-70.50, y=11.00, z=197.50], ajy['Pig'/105, l='MpServer', x=-61.00, y=66.00, z=172.00], ajy['Pig'/106, l='MpServer', x=-63.10, y=67.00, z=170.00], ajy['Pig'/107, l='MpServer', x=-60.00, y=66.00, z=171.00], apj['Minecart with Chest'/108, l='MpServer', x=-51.50, y=14.06, z=179.50], amk['String'/109, l='MpServer', x=-62.90, y=17.31, z=191.13], amk['String'/110, l='MpServer', x=-60.13, y=17.15, z=191.13], ajk['Bat'/1905, l='MpServer', x=-68.30, y=52.10, z=259.07], amr['Creeper'/2161, l='MpServer', x=-24.50, y=41.00, z=282.50], akd['Sheep'/125, l='MpServer', x=-27.21, y=63.00, z=232.08], anu['Zombie'/1917, l='MpServer', x=-39.50, y=18.00, z=223.50], akd['Sheep'/126, l='MpServer', x=-31.77, y=63.00, z=238.48], anu['Zombie'/1918, l='MpServer', x=-37.50, y=18.00, z=225.50], akd['Sheep'/127, l='MpServer', x=-34.60, y=63.00, z=227.22], akd['Sheep'/128, l='MpServer', x=-38.23, y=63.00, z=224.46], anu['Zombie'/1921, l='MpServer', x=-90.74, y=27.00, z=254.53], anu['Zombie'/1923, l='MpServer', x=-91.81, y=25.00, z=260.52], akd['Sheep'/139, l='MpServer', x=-26.23, y=64.00, z=191.57], akd['Sheep'/140, l='MpServer', x=-24.41, y=64.00, z=209.75], akb['Rabbit'/142, l='MpServer', x=-15.60, y=63.00, z=188.00], akb['Rabbit'/143, l='MpServer', x=-15.00, y=63.00, z=184.00], amr['Creeper'/1679, l='MpServer', x=25.50, y=22.00, z=301.50], akb['Rabbit'/144, l='MpServer', x=-15.00, y=63.00, z=186.00], akd['Sheep'/147, l='MpServer', x=-10.00, y=69.00, z=270.00], amr['Creeper'/1939, l='MpServer', x=-102.79, y=22.00, z=276.41], akd['Sheep'/148, l='MpServer', x=-9.00, y=69.00, z=271.00], amr['Creeper'/1940, l='MpServer', x=-104.58, y=22.00, z=269.54], akd['Sheep'/149, l='MpServer', x=-10.00, y=69.00, z=271.00], akd['Sheep'/150, l='MpServer', x=-11.00, y=69.00, z=271.00], anu['Zombie'/1942, l='MpServer', x=-104.50, y=22.00, z=268.50], ajy['Pig'/151, l='MpServer', x=-17.45, y=64.00, z=284.68], anu['Zombie'/1943, l='MpServer', x=-103.69, y=22.00, z=272.14], ajy['Pig'/152, l='MpServer', x=-23.27, y=64.00, z=294.54], ajy['Pig'/153, l='MpServer', x=-14.11, y=64.00, z=294.22], ajy['Pig'/154, l='MpServer', x=-12.24, y=64.00, z=294.16], amk['Brown Mushroom'/160, l='MpServer', x=14.10, y=14.00, z=261.23], ajp['Chicken'/162, l='MpServer', x=10.52, y=63.00, z=288.02], ajp['Chicken'/163, l='MpServer', x=12.00, y=65.00, z=292.00], ajp['Chicken'/164, l='MpServer', x=10.00, y=64.00, z=289.00], ajp['Chicken'/165, l='MpServer', x=12.00, y=64.00, z=290.00], amr['Creeper'/1194, l='MpServer', x=33.50, y=23.00, z=276.50], ajp['Chicken'/172, l='MpServer', x=26.00, y=64.00, z=304.40], ajp['Chicken'/173, l='MpServer', x=25.00, y=64.00, z=305.00], ajk['Bat'/2221, l='MpServer', x=19.98, y=30.30, z=181.12], ajp['Chicken'/174, l='MpServer', x=27.00, y=64.00, z=304.40], ajy['Pig'/178, l='MpServer', x=35.00, y=64.00, z=240.90], ajy['Pig'/179, l='MpServer', x=36.00, y=65.00, z=251.00], ajk['Bat'/2232, l='MpServer', x=12.50, y=20.87, z=297.50], ajk['Bat'/2233, l='MpServer', x=17.45, y=20.06, z=296.62], ajk['Bat'/2234, l='MpServer', x=15.61, y=22.01, z=293.48], ajk['Bat'/2236, l='MpServer', x=11.86, y=20.84, z=294.69], anu['Zombie'/1990, l='MpServer', x=39.50, y=21.00, z=179.50], anl['Skeleton'/1996, l='MpServer', x=14.50, y=17.00, z=268.50], anl['Skeleton'/2252, l='MpServer', x=-68.50, y=18.00, z=181.50], anl['Skeleton'/2253, l='MpServer', x=-65.50, y=18.00, z=180.50], anl['Skeleton'/2254, l='MpServer', x=-65.50, y=18.00, z=186.50], anl['Skeleton'/2255, l='MpServer', x=-66.50, y=18.00, z=184.50], akg['Squid'/2002, l='MpServer', x=-82.70, y=59.17, z=264.47], akg['Squid'/2003, l='MpServer', x=-85.59, y=60.87, z=261.18], akg['Squid'/2004, l='MpServer', x=-82.09, y=62.32, z=259.17], akg['Squid'/2005, l='MpServer', x=-83.57, y=62.48, z=250.26], amu['Enderman'/2264, l='MpServer', x=8.50, y=49.00, z=299.50], amr['Creeper'/2265, l='MpServer', x=12.50, y=49.00, z=302.50], anu['Zombie'/2270, l='MpServer', x=29.50, y=64.00, z=239.50], anl['Skeleton'/1759, l='MpServer', x=21.26, y=35.00, z=289.52], ctb['Asteraoth'/225, l='MpServer', x=-36.83, y=63.00, z=225.18], amr['Creeper'/749, l='MpServer', x=-50.81, y=48.00, z=279.48], anl['Skeleton'/1774, l='MpServer', x=-55.50, y=13.00, z=160.50], anl['Skeleton'/239, l='MpServer', x=-88.50, y=43.00, z=250.50], amr['Creeper'/752, l='MpServer', x=-86.50, y=9.00, z=254.50], anl['Skeleton'/1779, l='MpServer', x=-55.50, y=13.00, z=162.50], amk['Wheat Seeds'/765, l='MpServer', x=20.88, y=13.00, z=263.66]] Retry entities: 0 total; [] Server brand: vanilla Server type: Integrated singleplayer server Stacktrace: at cqy.a(SourceFile:399) at cfl.b(SourceFile:1821) at cfl.a(SourceFile:407) at net.minecraft.client.main.Main.main(SourceFile:144) -- System Details -- Details: Minecraft Version: 18w30b Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 482312784 bytes (459 MB) / 1358954496 bytes (1296 MB) up to 2147483648 bytes (2048 MB) JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M Launched Version: 18w30b LWJGL: 3.1.6 build 14 OpenGL: GeForce 840M/PCIe/SSE2 GL version 4.6.0 NVIDIA 398.11, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 8x Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
Duplicate of MC-99259.
Confirmed for 16w15a and 16w15b
Confirm for 1.9.3 pre-2
Confirmed for 1.9.4
Confirmed for 16w20a
Confirmed for 17w13b
Confirmed for 17w45b
Confirmed for 18w07a
Confirmed for 18w11a
Confirmed for 1.12.2
Please link to this comment in the description
The following is based on a decompiled version of Minecraft 1.12 using MCP snapshot_20180119
In the EntityWither#updateAITasks method, the line that updates the boss health bar
EntityWither.bossInfo.setPercent(EntityWither.getHealth() / EntityWither.getMaxHealth())
is inside the else of the condition EntityWither.getInvulTime > 0.
This means that the wither health bar is updated only when the wither is NOT invulnerable.
Confirmed for 18w20c
Confirmed for 18w22c
Confirmed for 1.13-pre2
Confirmed for 1.13-pre5
Confirmed for 1.13-pre7
Confirmed for 1.13-pre8
Confirmed for 1.13
Confirmed for 18w31a
Confirmed for 20w14a
Confirmed in 20w22a.
Can confirm that yes, this does still happen in 1.16.2. The fix mentioned by Insane96MCP works perfectly (moving the call to update the boss bar outside the if/else block). I recently fixed this bug in Paper with the following patch file (2 line diff): https://github.com/PaperMC/Paper/commit/c8542f236568b6e168f59d79b02d62d3fb11f690