跳到正文

Player Gifts

作者:Haxuslate

Player Gifts is a lightweight datapack that allows players to send items to each other using simple trigger commands.

收藏

截图

介绍

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

Player Gifts Datapack

Player Gifts is a lightweight datapack that allows players to send items to each other using simple trigger commands.

Commands

| Command | Description |
|——–|————-|
| /trigger gp_help | Shows general help info |
| /trigger list_players | Shows a numbered list of online players (updates dynamically with joins and leaves) |
| /trigger send_gift set <number> | Sends your held item to the player with that index |
| /trigger open_gift | Opens a pending gift and drops it at your feet |

Notifications

  • Sender is told who received the gift
  • Receiver is told who sent the gift (with correct team formatting, colors and prefixes)
  • Periodic gift reminder (every 5 minutes) to open pending gifts

Installation

  1. Download PlayerGifts.zip
  2. Place into: world/datapacks/
  3. Run /reload in game

How to Use

1. Player Gifts Help
Use the command below to display the Player Gifts Help text:

/trigger gp_help

Gift Help Display

2. List players online
Use the command below to display a numbered list of all online players:

/trigger list_players

List Players Display

3. Select who to send the gift to
With the item you want to send in your hand, chose the target player from the list:

/trigger send_gift set <number>

/trigger send_gift set 2

If the delivery was successful, you’ll see a confirmation message showing who received the gift

Sent Gift Confirmation

If the delivery was unsuccessful, you’ll see an error message showing why it cannot be sent

Sent Gift Error 1

Sent Gift Error 2

4. Open a received gift
If another player has sent you a gift, you’ll see a confirmation message showing who sent it

Gift Received Confirmation

If the gift isn’t opened after 5 minutes a message will be sent reminding you of the unopened gift

Received Gift Reminder

To open the gift, run:

/trigger open_gift

and the gift will drop as an item at your feet

Successfully claimed gift

If you have not received a gift, but try and open a gift, an error message will appear

No gifts in player's inbox

常见问题

Player Gifts 支持哪些 Minecraft 版本?

Player Gifts 支持 Minecraft Java 版 1.21.10。下载时注意选择和你游戏版本一致的文件。

Player Gifts 怎么安装?

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

评论

登录后评论和评分