The Bug:
Sniffers ignore the "minecraft:generic.movement_speed" attribute.
Steps to Reproduce:
Summon a sniffer with its "minecraft:generic.movement_speed" attribute set to a value of "0" by using the command provided below.
/summon minecraft:sniffer ~ ~ ~ {Attributes:[{Base:0.0d,Name:"generic.movement_speed"}]}Wait for the sniffer to begin wandering around.
Take note as to whether or not sniffers ignore the "minecraft:generic.movement_speed" attribute.
Observed Behavior:
Sniffers ignore the "minecraft:generic.movement_speed" attribute.
Expected Behavior:
Sniffers would not ignore the "minecraft:generic.movement_speed" attribute.
Code Analysis:
Code analysis by @unknown can be found in this comment.
Code analysis: in
Sniffer#tick, the first line overwrites the movement speed attribute every tick.Use the below commands to verify that the movement speed attribute is overwritten after modifying (movement speed should be 0.42, but is 0.1 or 0.2).