Topic category: Help with Minecraft modding (Java Edition)
I'm trying to work on a mod that has horror elements where you play as characters in the mod to scare unsuspecting players.
I have a rough draft of how this would work.
You press a key bind to run a procedure that detects if a player is near, then it places a tag on the player it detected with a limit of one. Then it teleports you to that player, facing you towards the player's head and facing the player towards your head. It then applies slowness and blindness to the target, plays a cave noise and then it's over. If anybody could help with examples of how this may work, that'd be greatly appreciated. I've been stumped for a while now.
At the moment, I'm detecting if the player is sneaking just to make it easier to test along with the single nbt tag for the boot slot. Along with that, I'm using iron armor as a placeholder for the finished product.
Oohh. What if the keybind gives you a potion effect that does it?
How would that work though?.. A potion that jumpscares someone?
Try "overlay". I made it on 1.20.1, but I think it's still possible.
step 1: draw a texture, save it like "screen"
step 2: make a checking procedure(there should always be a "not" before checking block! "Repeats" is also important)
step 3: next, create an "overlay", insert the texture and procedure that we did earlier
Well done!
I used a custom potion for the trigger, but you can use, for example, "if it holds an object", "if it has such and such a value", etc.*
Ooo I do like that idea. But I'm trying to simulate an effect I saw a while back in a youtube video, I don't know if I'm allowed to post youtube links on here but it was by commandgeek, he achieved the affect through a datapack with commands. He achieved it on the exact version of minecraft I'm working on, except I'm doing it with mcreator and code blocks on a different kind of project
https://youtu.be/2LRvq6H11bs?t=314
Unfortunately, I'm not that good at it, sorry, I hope you find the answer.
I'm working on a procedure for how I think this could work, I'll show you once it is done.
Sounds good, I've still been stumped trying to figure it out
Any update on the procedure you think could work? I've still got nothing at the moment