The Bug:
Lightning can deoxidize copper in spawn protection.
Steps to Reproduce:
Start a server, join it, give operator permissions to yourself, and switch into creative mode.
Set the world spawn to your current location and summon a large area of oxidized copper blocks below your feet by using the commands provided below.
/setworldspawn ~ ~ ~
/fill ~5 ~-1 ~5 ~-5 ~-1 ~-5 minecraft:oxidized_copper
Switch into survival mode, remove your operator permissions, and grant anyone else with them in order to activate spawn protection.
Summon some lightning at your position by using the command provided below in the server console.
/execute at @p run summon minecraft:lightning_bolt ~ ~ ~
Take note as to whether or not lightning can deoxidize copper in spawn protection.
Observed Behavior:
Copper is deoxidized.
Expected Behavior:
Copper would not be deoxidized.
Comments 4
That is separately tracked at MC-225175.
Given the resolution of MC-249204, MC-224203, and MC-224867, it is highly likely that this behavior is working as intended despite the assigned "Mojang Priority". This comment from @unknown states that spawn protection is supposed to prevent any kind of player interaction, and since lightning can naturally hit spawn protection, this is most likely intentional behavior.
Because players are not affecting it, it is not protected. WAI.