When attacking any entity in creative mode then switching to survival after any amount of time, it will take 5 additional ticks to break the first block after switching to survival mode.
Code analysis:
The last if statement (including body) in the MultiPlayerGameMode::attack method was newly added in 26.3:
public void attack(final Player player, final Entity entity) {
this.ensureHasSentCarriedItem();
this.connection.send(new ServerboundAttackPacket(entity.getId()));
player.attack(entity);
player.resetAttackStrengthTicker();
if (player.getAbilities().instabuild) {
this.destroyDelay = 5;
}
}The destroyDelay field doesn’t seem to do anything in creative mode and it also doesn’t decrease every tick, but instead only decrements when the player tries breaking a block in survival or adventure mode.
Thank you for helping us improve Minecraft! We saved your files: