MORIMORI0317 / BEStyleWither

Brings the behavior of Wither closer to Bedrock Edition. (Minecraft Mod)
https://modrinth.com/mod/be-style-wither
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Wither giving self damage #6

Closed peow closed 8 months ago

peow commented 9 months ago

When the Wither's double health option is enabled, when the Wither spawns and explodes, it takes damage from the explosion itself, what doesn't happen when this option is disabled 2024-01-30_23 03 57

(spawning) 2024-01-30_23 06 41

(explosion) 2024-01-30_23 06 45

(look at his life) 2024-01-30_23 06 47


I pressed F3+ i on the Wither to copy its data, this here is the Wither's data without double health

/summon minecraft:wither -1376.77 -27.59 966.55 {NoGravity: 1b, Brain: {memories: {}}, HurtByTimestamp: 403, Attributes: [{Base: 0.6000000238418579d, Name: "minecraft:generic.movement_speed"}], Invulnerable: 0b, FallFlying: 0b, PortalCooldown: 0, AbsorptionAmount: 0.0f, Invul: 0, FallDistance: 6.380333f, FPower: 0b, DeathTime: 0s, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, BalmData: {}, Motion: [0.08786589638276371d, 0.028543691165005776d, -0.00521039943998736d], Health: 300.0f, LeftHanded: 0b, Air: 300s, OnGround: 0b, Rotation: [240.86609f, 0.0f], HandItems: [{}, {}], ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 0b, HurtTime: 0s}


and these are the Wither's data with the option to double health enabled, notice that its health is not at 600.0f, but 420.0f, as it took damage from the explosion itself

/summon minecraft:wither -1382.50 -32.00 978.50 {Brain: {memories: {}}, HurtByTimestamp: 0, Attributes: [{Base: 0.6000000238418579d, Name: "minecraft:generic.movement_speed"}], Invulnerable: 0b, FallFlying: 0b, PortalCooldown: 0, AbsorptionAmount: 0.0f, Invul: 0, FallDistance: 0.0f, FPower: 0b, DeathTime: 0s, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, BalmData: {}, Motion: [0.0d, -0.0784000015258789d, 0.0d], Health: 420.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Rotation: [0.0f, 0.0f], HandItems: [{}, {}], ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 0b, HurtTime: 0s}


im using Fabric 1.20.1, Fabric Loader 0.14.22, BE Style Wither v1.6.0

if is possible to fix this please make an update to Fabric 1.20.1 with support to Fabric Loader 0.14.22, thanks

MORIMORI0317 commented 8 months ago

The problem was that he wasn't taking damage from the explosion, but that his health recovery couldn't keep up with the summoning when he had double health. We have released a fixed version. https://modrinth.com/mod/be-style-wither/version/1.20-1.6.1-Fabric

peow commented 8 months ago

thanks