Compatibility
Minecraft: Java Edition
1.21–1.21.4
1.20.x
1.19.x
1.18.x
1.17.x
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed GPL-3.0-only
Published last year
Updated 4 months ago
Changelog
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
- Tag entities with
- 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
- 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_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
- Functions with the tag
- 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
- Run
- 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
(fromplayer_id
)- Tags
#player_id:player_join
,#player_id:player_leave
are now#server_utils:player_leave
and#server_utils:player_join
- Tags
- Player ID system now uses scoreholder called
#counter
instead ofcounter
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.
Files
Metadata
Release channel
ReleaseVersion number
2.0.2Loaders
Game versions
1.18–1.19.3, 1.20–1.20.6Downloads
22Publication date
July 18, 2023 at 12:55 AMPublisher
ZacNVR
Owner