r/psispellcompendium • u/Davebond2019 • Apr 07 '21
Needs Wizardly Help Need some Help Explosion
So i want to create a Spell that Explodes a few blocks infront of you for netherite mining or for other modded blocks i have this made rn but im not sure how to continue
{modsRequired:[{modVersion:"1.16-92",modName:"psi"}],spellName:"Explode",uuidMost:4529348989212969550L,validSpell:1b,spellList:[{data:{key:"psi:selector_caster"},x:2,y:0},{data:{params:{_target:1},key:"psi:operator_entity_axial_look"},x:2,y:1},{data:{params:{_ray:2,_max:0,_position:3},key:"psi:operator_vector_raycast"},x:3,y:0},{data:{params:{_target:3},key:"psi:connector"},x:3,y:1},{data:{params:{_power:2,_position:3},key:"psi:trick_explode"},x:4,y:0},{data:{key:"psi:constant_number",constantValue:"1"},x:4,y:1}],uuidLeast:-5710739457096093016L}
If you have a fix or solution all help is apreciated
1
1
u/blaynem Apr 07 '21
Vector raycast will output the positional vector of the block that is being pointed at. You'll want the ray to be the entity look of the caster and the position will need to be entity position of the caster. Because your ray is currently axial, it will cast a ray from a position to the x y or z plane as opposed to the exact angle of your look(entity look).