so I'm trying to make a spell where when your health reaches below 50% you get a regen effect and i cant figure out what I'm doing wrong here's my code please help me
{modsRequired:[{modName:"psi",modVersion:"2.0.0"}],spellList:[{data:{key:"psi:selector_caster"},x:0,y:0},{data:{key:"psi:operator_entity_health",params:{_target:3}},x:1,y:0},{data:{key:"psi:operator_max",params:{_number1:3,_number2:4,_number3:0}},x:2,y:0},{data:{key:"psi:operator_subtract",params:{_number1:1,_number2:4,_number3:0}},x:2,y:1},{data:{key:"psi:operator_ceiling",params:{_number:1}},x:2,y:2},{data:{constantValue:"50",key:"psi:constant_number"},x:3,y:0},{data:{key:"psi:connector",params:{_target:1}},x:3,y:1},{data:{key:"psi:trick_die",params:{_target:3}},x:3,y:2},{data:{constantValue:"5",key:"psi:constant_number"},x:3,y:3},{data:{key:"psi:selector_caster"},x:4,y:2},{data:{key:"psi:trick_regeneration",params:{_power:4,_target:1,_time:3}},x:4,y:3},{data:{constantValue:"2",key:"psi:constant_number"},x:5,y:3}],spellName:"restore",uuidLeast:-7836559732567330415L,uuidMost:4461845248438714970L,validSpell:1b}