
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
New features
- World spawn tracker
- Tag entities with
spawnlockedto ensure they stay at world spawn - Functions with the tag
#server_utils:spawn_changedwill run when spawn changes
- Tag entities with
- Function tag
#server_utils:spawn_loadedruns 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:configto 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_loopand#server_utils:1_min_loop, respectively. - Can be forcefully enabled by data packs that require them
- 1 second, 10 second and 1 minute loops available, which run functions in
- 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_playerwill 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_nameare run if this occurs
- Functions with the tag
- Inventory clearing and restoration system
- Run
function server_utils:clear_inventoryas a player to temporarily clear their inventory - Run
function server_utils:restore_inventoryto restore it
- Run
- Functions with the tag
#server_utils:loadwill load after Server Utilities - Running
function server_utils:uninstallwill uninstall Server Utilities
Changes
- Namespace changed to
server_utils(fromplayer_id)- Tags
#player_id:player_join,#player_id:player_leaveare now#server_utils:player_leaveand#server_utils:player_join
- Tags
- Player ID system now uses scoreholder called
#counterinstead ofcounterto store the next ID - Player joining can now handle multiple players joining in the same tick
#server_utils:player_leavewill now run for every player that leaves in the tick as their corresponding marker.- Tag
#player_id:new_playerhas been removed and is replaced by#server_utils:register_player pack_formatupdated 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 г. назад