execute as @e[type=#enemy_mobs_only,distance=..10,sort=arbitrary,limit=1] run tag @s add malachite_field_target
tellraw @s [{"text": "[","color": "gray"},{"text":"Set Bonus","color": "gold"},{"text": "]","color": "gray"},{"text": " Invoked a field of malachite on a nearby "},{"selector":"@e[tag=malachite_field_target,limit=1,distance=..10]","color": "red"},{"text": "!"}]
execute at @e[tag=malachite_field_target,limit=1,sort=nearest] run summon area_effect_cloud ~ ~ ~ {Particle:{type:"block",block_state:"minecraft:emerald_block"},Radius:3f,Duration:60,potion_contents:{custom_color:11599824},Tags:["malachite_field"]}
playsound minecraft:entity.illusioner.cast_spell master @a[distance=..10] ~ ~ ~ 1 2
tag @e[tag=malachite_field_target] remove malachite_field_target