Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Mailbox

Mailbox

This datapack adds mailboxes that are used to deliver items between players.

980
22
Social
Transportation
Utility
AboutChangelogVersions

Mailbox

This datapack adds mailboxes in the form of barrels that can be used to send and receive items between other players. This is intended for multiplayer use on servers.

Setting up your mailbox

Look directly at an empty barrel which you want to make your mailbox, then run the command /trigger set-mailbox. Said barrel is now your mailbox. Whenever other players send you any items, those items will appear in your mailbox.

If you want to change the position of your mailbox, break your current mailbox and follow the steps above again.

Sending mail to other players

Run the command /trigger send-mail and a barrel will appear in front of you. Instructions on what to do next will be written in your chat.

You can send mail to other players even if they are offline and the chunk their mailbox is in isn't loaded. You also do not need to have your own mailbox to send mail.

Other things to note...

  • To remove the datapack, run /function mailbox:uninstall.
  • To allow players to send mail ONLY IF they are within 10 blocks of any mailbox, run /scoreboard players set MustBeNearMailboxToSend mailbox.config 1. By default, this is set to 0 so players can send mail from anywhere in the world.
  • To set a SEND-ONLY mailbox, run /function mailbox:send-only-mailbox/set. These mailboxes are intended to be used together with the 10 blocks rule if enabled.
  • The two scoreboards mailbox.stats.sent and mailbox.stats.received track the number of sent/received mail for each player.

Credit to PlayerDB as it was used extensively in this datapack.

This datapack was originally inspired by this Hermitcraft video. I wanted to challenge myself to see if I could recreate it via datapacks. So here we are!

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.4–1.20.6

Platforms

Data Pack

Supported environments

Server-side
Client and server (optional)

Links

Report issues

Creators

Ninjaking312
Ninjaking312 Member

Details

Licensed MIT
Published last year
Updated last month

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.