$execute if score .$(essence_1) essence matches ..0 run return fail
$execute if score .$(essence_2) essence matches ..0 run return fail

$execute if score .$(essence_1) essence < .$(cost_1) number run return run data modify storage craft list append value '$(cost)$(name)"gray"$(description)'

$execute if score .$(essence_2) essence < .$(cost_2) number run return run data modify storage craft list append value '$(cost)$(name)"gray"$(description)'

$data modify storage craft list append value '$(cost)$(name)"#BFA602"$(function)$(description)'
