HomeJavaDatapacksCommands to items
Commands to items

This datapack adds command support to items.

to add an executable command to your item, simply hold the item in your mainhand and run

/function addcommand:add {command:'CommandHere'}

if you want to make it one time use, run

/function addcommand:add_once {command:'CommandHere'}

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more