Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameResourcePack
Syntaxresourcepack [url:<url>] [hash:<hash>] (forced) (prompt:<text>) (targets:<player>|...)
Short DescriptionPrompts a player to download a server resource pack.
Full DescriptionSets the current resource pack by specifying a valid URL to a resource pack.

The player will be prompted to download the pack, with the optional prompt text or a default vanilla message.
Once a player says "yes" once, all future packs will be automatically downloaded. If the player selects "no" once, all future packs will automatically be rejected.
Players can change the automatic setting from their server list in the main menu.

Use "hash:" to specify a 40-character (20 byte) hexadecimal SHA-1 hash value (without '0x') for the resource pack to prevent redownloading cached data.
Specifying a hash is required, though you can get away with copy/pasting a fake value if you don't care for the consequences.
There are a variety of tools to generate the real hash, such as the `sha1sum` command on Linux, or using the 7-Zip GUI's Checksum option on Windows.

Specify "forced" to tell the vanilla client they must accept the pack or quit the server. Hacked clients may still bypass this requirement.

"Forced" and "prompt" inputs only work on Paper servers.

Optionally specify players to send the pack to. If unspecified, will use the linked player.

See also Event:resource pack status.
Related TagsNone
Usage Example
# Use to send a resource pack with a pre-known hash.
- resourcepack url:https://example.com/pack.zip hash:0102030405060708090a0b0c0d0e0f1112131415
Groupplayer
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/ResourcePackCommand.java#L28