Swap Item [Data Pack]
The installation process is straightforward - download the datapack, navigate to the "datapacks" folder of your game world, move the Swap Item file there, and execute the /reload command.
Features
Transform your item interaction experience with this innovative datapack! It provides a set of functional commands for exchanging items between the player and any creature in your line of sight. Imagine the possibility of swapping equipment with any mob - now it's a reality!
Commands in action:
/trigger swapitem.entity.mainhand— exchange item in main hand/trigger swapitem.entity.offhand— change offhand slot content/trigger swapitem.entity.head— replace headgear/trigger swapitem.entity.chest— swap chest armor/trigger swapitem.entity.legs— exchange leggings/trigger swapitem.entity.feet— swap footwear/trigger swapitem.head— automatically place item in head slot
Video Showcase
Uninstalling the Datapack
To completely remove all components, simply activate the /function swap_item:uninstall command. After the process completes, you'll receive a confirmation message in the chat.