跳到正文

Mailbox

作者:Ninjaking312

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

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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!

常见问题

Mailbox 支持哪些 Minecraft 版本?

Mailbox 支持 Minecraft Java 版 1.20.4–26.3,共 20 个版本。下载时注意选择和你游戏版本一致的文件。

Mailbox 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Ninjaking312 的其他作品

查看全部 →