execute if score bookstats hardmode matches 9 as @e[type=experience_orb,nbt={Value:1s}] run data modify entity @s Value set value 4s
execute if score bookstats hardmode matches 9 as @e[type=experience_orb,nbt={Value:2s}] run data modify entity @s Value set value 4s
execute if score bookstats hardmode matches 9 as @e[type=experience_orb,nbt={Value:3s}] run data modify entity @s Value set value 4s