execute unless score @s hatred_skill_point_count matches 1.. run return run function hatred:func/level/skill/not_enough_point
execute if score @s hatred_skill_influence matches 30 run return run function hatred:func/level/skill/maximum
playsound minecraft:block.trial_spawner.ominous_activate
scoreboard players remove @s hatred_skill_point_count 1
scoreboard players add @s hatred_skill_influence 1
function hatred:func/level/skill/give_attribute1
function hatred:func/level/book/book_skill