Перейти к содержимому
Mineforgian

Local Difficulty Utilities

Fixes local difficulty display on the client and syncs inhabited time from the server. Includes configs and commands to easily edit a chunks local difficulty.

Загрузки
509
Подписчики
2
Обновлён
25 мая 2025 г.
Лицензия
MIT

Опубликован 23 мая 2025 г.

Local Difficulty Utilities

Local Difficulty Utilities is a lightweight utility mod that:

  • Fixes the client-side display of local difficulty.
  • Syncs each chunk's inhabited time value from the server, so the client sees the real difficulty.
  • Adds commands to view and edit the inhabited time of chunks.
  • Provides configurable options for debugging, syncing, and modifying local difficulty values.

Commands

/ldu inhabited chunk get <target>

Displays the inhabitedTime value of the target chunk.


/ldu inhabited chunk set <target> <time>

Sets the targets inhabitedTime value.


/ldu inhabited region <x1> <z1> <x2> <z2> <dimension> <time>

Sets all loaded chunks inhabitedTime values in-between the two coordinates at once.


/ldu inhabited cancel

Cancels any ongoing region commands.


Config Options

restoreLocalDifficultly: true

If true, the Local Difficulty entry in the F3 debug menu will be re-enabled so you can see the local difficulty and the day values. If the server doesn't also have this mod with inhabitedTime syncing enabled, then the local difficulty value will be wrong due. The day value will always be correct.


syncInhabitedOnF3: true

If true, the server will respond to chunk sync requests when the client has the F3 debug menu open.


syncInhabitedOnNewChunk: true

If true, the server will respond to chunk sync requests when the client enters a new chunk.


regionMaxChunks: 250001

This is the maximum amount of chunks that can be edited at once with the region command.


regionBatchSize: 100

This limits how many chunks the region command will try to edit per tick.


Other Information

  • The region command will only select and edit chunks that are loaded into the game's memory.
  • This mod can be used on servers without this mod, but the client won't be able to get display the correct local difficulty because it doesn't have access to the needed information.

Requirements

Ченджлог

1.0.1+1.21.2Релиз1.21.3, 1.21.4, 1.21.5 · 25 мая 2025 г.
  • changed syncInhabited to syncInhabitedOnF3 and syncInhabitedOnNewChunk
  • All loaded chunks aren't synced anymore, only the chunk the player is in. Significantly reduced packets, idk what I was cooking before.
1.0.1+1.21Релиз1.21, 1.21.1 · 25 мая 2025 г.
  • changed syncInhabited to syncInhabitedOnF3 and syncInhabitedOnNewChunk
  • All loaded chunks aren't synced anymore, only the chunk the player is in. Significantly reduced packets, idk what I was cooking before.
1.0.0+1.21.2Релиз1.21.3, 1.21.4, 1.21.5 · 23 мая 2025 г.
  • Added the restoreLocalDifficultly config that will re-enable the entry in the debug menu client side
  • Added the syncInhabited config that will sync the client chunks inhabitedTime variable with the servers
  • Added the regionMaxChunks config that controls the maximum amount of chunks that can be selected with the region command
  • Added the regionBatchSize config that limits how many chunks can be edited each tick by the region command
  • Added the chunk set and chunk set commands to view or the inhabited time value for individual chunks
  • Added the region command that will select all loaded chunks between two coordinates and edit their inhabited time value
1.0.0+1.21Релиз1.21, 1.21.1 · 23 мая 2025 г.
  • Added the restoreLocalDifficultly config that will re-enable the entry in the debug menu client side
  • Added the syncInhabited config that will sync the client chunks inhabitedTime variable with the servers
  • Added the regionMaxChunks config that controls the maximum amount of chunks that can be selected with the region command
  • Added the regionBatchSize config that limits how many chunks can be edited each tick by the region command
  • Added the chunk set and chunk set commands to view or the inhabited time value for individual chunks
  • Added the region command that will select all loaded chunks between two coordinates and edit their inhabited time value

Комментарии

Загружаем…