邮箱
此数据包以箱子(Barrel)的形式添加了邮箱,可用于玩家之间收发物品。该功能专为服务器多人游戏设计。
设置你的邮箱
正对着一个你想用作邮箱的空箱子,然后执行命令 /trigger set-mailbox。该箱子现在就是你的邮箱了。每当其他玩家向你发送任何物品时,这些物品都会出现在你的邮箱中。
如果你想更改邮箱的位置,请破坏当前的邮箱,然后按照上述步骤重新设置。
向其他玩家发送邮件
执行命令 /trigger send-mail,你面前会出现一个箱子。聊天栏会显示接下来的操作说明。
即使目标玩家处于离线状态,或者其邮箱所在的区块未加载,你仍然可以向他们发送邮件。此外,你不需要拥有自己的邮箱即可发送邮件。
其他注意事项...
- 要移除此数据包,请运行
/function mailbox:uninstall。 - 若要限制玩家仅在距离任意邮箱 10 格以内时才能发送邮件,请运行
/scoreboard players set MustBeNearMailboxToSend mailbox.config 1。默认值为 0,允许玩家在世界任意位置发送邮件。 - 要设置仅发送型邮箱,请运行
/function mailbox:send-only-mailbox/set。这类邮箱通常与启用“10 格限制”规则配合使用。 - 两个记分板
mailbox.stats.sent和mailbox.stats.received分别记录每位玩家发送和接收邮件的数量。
感谢 PlayerDB,本数据包广泛使用了该项目。
此数据包的灵感最初来自 Hermitcraft 的这期视频。我想挑战自己,看能否通过数据包实现类似功能。于是就有了这个!
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!
下载 Mailbox
下载 Mailbox
下载 Mailbox
下载 Mailbox
下载 Mailbox
下载 Mailbox
下载 Mailbox
已更新至 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
手持潜影盒时可直接打开,无需将其放置在地面上。只需按住 Shift 并右键点击即可访问你的潜影盒。
数据包
粉色方块中的千种可能!
评论 0
登录后参与评分
还没有评论,来抢沙发吧