Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
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
- Download
PlayerGifts.zip - Place into:
world/datapacks/ - Run
/reloadin game
How to Use
1. Player Gifts Help Use the command below to display the Player Gifts Help text:
/trigger gp_help
2. List players online Use the command below to display a numbered list of all online players:
/trigger list_players
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>
If the delivery was successful, you'll see a confirmation message showing who received the gift
If the delivery was unsuccessful, you'll see an error message showing why it cannot be sent
4. Open a received gift If another player has sent you a gift, you'll see a confirmation message showing who sent it
If the gift isn't opened after 5 minutes a message will be sent reminding you of the unopened gift
To open the gift, run:
/trigger open_gift
and the gift will drop as an item at your feet
If you have not received a gift, but try and open a gift, an error message will appear


