How do i make my mod change/manipulate the game settings of a player

Started by eeScore on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make my mod change/manipulate the game settings of a player

im making a horror mod and i want the players chunk render distance thing be locked at 2

if somebody knows how to do this please tell me

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
...To the best of my…
Thu, 02/08/2024 - 15:06

...To the best of my knowledge, not possible- definitely not using MCreator's built in tools. There might be a way to do this with custom code, but I'm pretty sure the settings are kind of off limits when it comes to modding.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wouldn't advise changing…
Thu, 02/08/2024 - 15:08

I wouldn't advise changing the render distance. It's very intrusive and can cause problems if you're using shaders. I'd recommend using fog instead. 

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and how would you make fog?
Sun, 04/20/2025 - 16:15

and how would you make fog?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A very simple way would be…
Sun, 04/20/2025 - 16:58

A very simple way would be to just give the player the blindness or darkness potion effects.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What about white fog?
Sun, 04/20/2025 - 18:38

What about white fog?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You would probably need to…
Mon, 04/21/2025 - 18:31

You would probably need to do something with rendering code or the world renderer plugin.

However, I have no clue how to work with rendering code, and the world renderer plugin hasn't been updated to the newest MCreator version. You will need to either download an old MCreator version, wait for the world renderer plugin to be updated, or learn java code.

There might also be some other solution that I am not aware of.