Detects when a player pops a custom totem named "Totem of Null" via the used_totem advancement trigger, executes a function that kills all online players on team Null, and revokes the advancement for reuse. Includes the exact 1.21 component give command for the custom totem with a vanishing curse enchantment.
About
Datapack for Minecraft 1.20.1 that lets a player give items from their inventory to another player by right-clicking them while holding a special item. The special item is not given to the player and is consumed on use. Uses scoreboard tags to track the special item, detects player interaction via advancement triggers, and transfers items using container mechanics. Includes functions for setup, item detection, click handling, inventory transfer, and cleanup.