Started by
EfLIX20
on
Topic category: Help with Minecraft modding (Java Edition)
So i wanna to make a jumpscare for an entity when it collides with a player
is there a way to make the player force look at the entity and cant turn away from it (while the animation plays)
Edited by EfLIX20 on Tue, 06/17/2025 - 20:20
As long as the animation plays, repeatedly force the head direction of the player to be your variable. You can find the direction blocks in the "Direction Procedures".
ok i'll try this out
Can you show me the procedure by imgur? i quite dont get it
Its a bit more complicated than i thought. I hope i can get the right code tomorrow. You need to transport entity data and call procedures.
ty ty, whatever code you will come up with tomorrow send the imgur here, also maybe the jumpscare will turn out better/easier to made if it was made with the entity attacking, rather than on collision trigger
but make it the way you think is easier
This is the procedure for when the horror entity collides with the player. The procedure this procedure should call is the one below
This is the entire grabbing feature condition. But i have know idea if it works well.
What the procedure should do is repeatedly damage the player and teleport it closer and closer to the entity while facing the entity face to face.
And this is the Playback-Condition for the Jumpscare-Animation.
it works like i wished Thx so much!