Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_PsSKv7Pv.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Player Gifts - 墨喵 Minecraft 资源
Player Gifts 图标

Player Gifts

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/player-gifts
资源信息

Minecraft 版本: 1.21.10

平台: datapack

标签: game-mechanics social utility

资源介绍

🎁 Player Gifts Datapack

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

Perfect for SMP survival worlds, roleplay servers, and community events.


✨ Features

  • Send the item in your hand to any online player
  • No dropped items lost to lag or void (gifts are stored safely until opened)
  • Receiver gets a notification showing who sent the gift (with team formatting)
  • Gifts are not delivered instantly — players must use /trigger open_gift
  • Lightweight and SMP-friendly (minimal tick usage, no entity spam)
  • Fully multiplayer compatible (supports multiple simultaneous gifts without conflict)

🎮 Commands

Command Description
/trigger gp_help Shows general help info
/trigger list_players Shows a numbered list of online players (updates dynamically with joins & 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 & prefixes)
  • Periodic gift reminder (every 5 minutes) to open pending gifts

🛡 Safety

  • Items are stored using NBT — never duped, never voided
  • Cannot send gifts with an empty hand
  • Cannot target offline or invalid players
  • Fails safely and returns the item if delivery is not possible

📦 Installation

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

🧩 Supported Versions

Minecraft Java 1.21.10


📘 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


If you encounter any issues or have feature requests, feel free to open an Issue or Pull Request.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Item tint

价格:0 墨喵币
下载量:0

查看详情
BetaMoon

价格:0 墨喵币
下载量:0

查看详情
ItemSave

价格:0 墨喵币
下载量:0

查看详情
Nitpicks

价格:0 墨喵币
下载量:0

查看详情