▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Датапаки/Server Utilities
Server Utilities

Server Utilities

Features a number of utilities for data pack creators including a player ID system, function tags for detecting server events, inventory clearing and restoring system, systems for maintaining player data across username changes, and more!

1.1K
12
Все версииServer Utilities v2.0.2

Server Utilities v2.0.2

Release2 г. назад

Список изменений

Server Utilities v2.0.2

New features

  • World spawn tracker
    • Tag entities with spawnlocked to ensure they stay at world spawn
    • Functions with the tag #server_utils:spawn_changed will run when spawn changes
  • Function tag #server_utils:spawn_loaded runs when spawn is loaded, this has two implementations depending on version:
    • 1.18-1.19.3: The data pack waits one second after it has loaded
    • 1.20+: The data pack checks when spawn is loaded using execute if loaded
  • Config menu. Run function server_utils:config to turn on/off some optional features
  • Loops
    • 1 second, 10 second and 1 minute loops available, which run functions in #server_utils:1_sec_loop, #server_utils:10_sec_loop and #server_utils:1_min_loop, respectively.
    • Can be forcefully enabled by data packs that require them
  • Registration level system
    • Registration system now has levels, which can be increased in the config menu
    • When a player's registration level is below current, the function tag #server_utils:register_player will run. Then, their registration level will be updated.
  • Player-tracking markers
    • A marker is spawned for each player that joins the server
    • Allows for player ID and registration level to be transferred if a player changes their username.
      • Functions with the tag #server_utils:player_changed_name are run if this occurs
  • Inventory clearing and restoration system
    • Run function server_utils:clear_inventory as a player to temporarily clear their inventory
    • Run function server_utils:restore_inventory to restore it
  • Functions with the tag #server_utils:load will load after Server Utilities
  • Running function server_utils:uninstall will uninstall Server Utilities

Changes

  • Namespace changed to server_utils (from player_id)
    • Tags #player_id:player_join, #player_id:player_leave are now #server_utils:player_leave and #server_utils:player_join
  • Player ID system now uses scoreholder called #counter instead of counter to store the next ID
  • Player joining can now handle multiple players joining in the same tick
  • #server_utils:player_leave will now run for every player that leaves in the tick as their corresponding marker.
  • Tag #player_id:new_player has been removed and is replaced by #server_utils:register_player
  • pack_format updated to 10, for Minecraft 1.19-1.19.3 (should still work for all versions 1.18-1.20.1 except 1.19.4).

Note for older versions

When running in versions prior to Minecraft 1.19.4, the server's console will complain that the file server_utils:check_spawn_loaded could not be loaded. This is perfectly fine as this file uses commands introduced in 1.19.4 and the data pack is designed to still function properly without it.

Uploaded for archival purposes.

Файлы

ServerUtilities-v2.0.2.zip(21.47 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

2.0.2

Загрузчики

Версии игры

1.18–1.20.6

Загрузок

32

Дата публикации

2 г. назад

Загрузил

ID версии

Главная