scoreboard players tag @s add EPL
give @s[score_drop_min=1] minecraft:diamond_hoe 1 76 {display:{LocName:"spell.epl.cost"},HideFlags:63,Unbreakable:1b}
title @s[score_mana=3] actionbar ["",{"translate":"error.cost","color":"red","bold":"true"},{"text":" [","color":"red","bold":"true"},{"score":{"objective":"mana","name":"@s"},"color":"red","bold":"true"},{"text":"/4]","color":"red","bold":"true"}]
execute @s[score_mana_min=4] ~ ~ ~ function sorcerersbook:spell/epl
scoreboard players tag @s remove EPL
replaceitem entity @s slot.weapon.offhand minecraft:diamond_hoe 1 76 {display:{LocName:"spell.epl.cost"},HideFlags:63,Unbreakable:1b}
