First Person Cam Lock (Simple Workaround)

Started by IHonestlyDon't… on

Topic category: Help with modding (Java Edition)

Last seen on 07:58, 3. Oct 2024
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First Person Cam Lock (Simple Workaround)
Thu, 10/03/2024 - 07:56 (edited)

Locked Procedure part
https://imgur.com/a/uJektkm

Hello!
I'm new to modding and I only know a little bit of java coding.
What I'm trying to do is to disable the "F5" (camera mode switch) feature completely.
What I've done in that picture is I tried setting the camera type back to first person if it's not first person mode.
I also wanted it to not mess with the camera position since I'm also making a feature that changes the camera position to make cut scenes. (I also might make another topic for it if I can't get it working. Otherwise I'm going to post a tutorial for it)
If there's an alternative approach for this, please tell me (specifically if it's possible to just remove this camera switching feature instead of setting it back to first person as it might break the cut scene cam (I think))


Lastly, does the third and second person change the player's cam position in a way that it'll affect my cam position modifications?

Additional Info:

  • I'm using MCreator 2024.2 | neoforged
  • English is not my native language (I'm really sorry if I confuse you with my grammar)

Uhh... I can't seem to delete my temp comment below and change the forum section ;-;

Edited by IHonestlyDon'tKnowWhatToPutInHere on Thu, 10/03/2024 - 07:56
Last seen on 07:51, 3. Oct 2024
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I got it!But I don't know if…
Thu, 10/03/2024 - 07:45

I got it!
But I don't know if my solution is perfect.
I'll edit this post, wait a min.