
Mailbox
This datapack adds mailboxes that are used to deliver items between players.
- Загрузки
- 2K
- Подписчики
- 34
- Обновлён
- 3 июля 2025 г.
- Лицензия
- MIT
Опубликован 22 февраля 2024 г.
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.sentandmailbox.stats.receivedtrack 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!
Ченджлог
1.1.4Релиз26.1.1, 26.1.2, 26.2 · 3 июля 2025 г.
- Fix a bug that causes the set-mailbox trigger to not detect an empty barrel if it is being partially covered by a non-full block (e.g. snow layers)
- Same fix applies to setting send-only mailboxes
- Improve the send-mail trigger's placement of the draft mail barrel
1.1.3Релиз1.21.5, 1.21.6, 1.21.7 · 26 марта 2025 г.
Updated for 1.21.5
1.1.2Релиз1.21.2, 1.21.3, 1.21.4 · 9 ноября 2024 г.
- Fixed a bug where yellow shulker boxes would drop their contents when mined.
- Setting a mailbox now requires the player to look at an empty barrel instead of just any block. This is to prevent players from abusing this to break unbreakable blocks.
- Fixed a bug where the name of the mailbox was not set properly.
Thank you to those that sent in their feedback/bug reports :)
Have any feedback? See here.
1.1.1Релиз1.21.1, 1.21.2, 1.21.3 · 13 июня 2024 г.
Updated for 1.21
1.1.0Релиз1.20.5, 1.20.6 · 24 апреля 2024 г.
IMPORTANT WARNING
If you are updating from Mailbox 1.0.0, some sent but yet to be delivered mail may be lost due to the item stack component changes in 1.20.5. To mitigate this, while you are still on Mailbox 1.0.0 and MC 1.20.4, please ensure that every chunk that has a mailbox in it is loaded fully for at least 5 seconds and that no mailboxes are completely full. This will allow any items pending delivery in the datapack's virtual queue to be delivered to the mailbox.
I am sorry if this update causes any mail loss but unfortunately due to the nature of the breaking changes there is not much I can do on my end to prevent it.
- Updated for 1.20.5
- Added a scoreboard toggle to allow players to send mail ONLY IF they are within 10 blocks of any mailbox. By default, players can still send mail from anywhere in the world.
- Added SEND-ONLY mailboxes intended for use together with the 10 blocks rule.
- Added scoreboards to track sent/received mail statistics for each player.
More detailed explanation for these new features are given at the "Other Things to Note..." section of the description page.
1.0.0Релиз1.20.4 · 23 февраля 2024 г.
First release!
Комментарии
Загружаем…