Data Packs Server Utility

Player Gifts Datapack

  • 381 views • 2 today
  • save_alt 19 downloads • 0 today
Compatibility
Minecraft 1.21
Changes include
  • Functions
  • 3
  • 1
Haxuslate
Lvl 21Expert Crafter
3
🎁 Player Gifts Datapack — Send Items to Other Players!

Want a fun way to trade, reward teammates, or surprise friends on your SMP?
Player Gifts lets you send the item you're holding to any online player using simple /trigger commands — no mods required and zero lag.

Perfect for survival multiplayer, roleplay servers, and community events.




✨ Features
  • Send the item in your hand to any online player
  • Gifts are safely stored using NBT — never dropped or lost
  • Receiver gets a notification showing who sent the gift (with team formatting)
  • Gifts must be opened manually — /trigger open_gift
  • Multiplayer-safe — multiple gifts can be sent at the same time
  • Extremely lightweight — minimal tick usage, no entity spam





🎮 Commands

CommandPurpose
/trigger gp_helpShows helpful information
/trigger list_playersShows numbered list of online players
/trigger open_giftOpens a received gift
/trigger send_gift set <number>Sends your held item to the selected player





🔔 Notifications
  • Sender sees who received their gift
  • Receiver sees who sent them the gift (team colors supported)
  • Reminders if a gift hasn't been opened





🛡 Anti-Exploit Protection
  • Cannot send gifts with empty hand
  • Cannot target offline or invalid players
  • Prevents item duplication and item loss
  • Item returns to sender if delivery fails





📦 Installation
1. Download the datapack `.zip`
2. Drag it into:
world/datapacks/
3. Load the world or run:
/reload




✔ Compatibility
Minecraft Java 1.21.10
Multiplayer / SMP ✔
Fabric / Forge / Spigot not required ✔





🔗 Useful Links
GitHub (source & updates): GitHub Repository
Modrinth (primary downloads): Modrinth Page
CurseForge (primary downloads): CurseForge Page




If you use it on your SMP, feel free to share — I'd love to see it in action!

1 Update Logs

Update #1 : by Haxuslate 11/30/2025 3:25:34 amNovember 30, 2025 @ 8:25 am UTC

Added:
  • Core gift-sending system using `/trigger send_gift`
  • Dynamic player listing using `/trigger list_players`
  • Manual gift opening system using `/trigger open_gift`
  • Safe NBT gift storage (no dupes, no item loss)
  • Actionbar notifications with team-colored player names
  • Automatic online player indexing (supports joins/leaves)
  • Periodic unopened gift notifications

  Have something to say?

Welcome