Item Commander
by Camper_Samu
Item Commander lets server operators attach commands to item stacks, so a player who holds a configured item in the main hand runs the command when using it.
What it does
The mod is a server-side Fabric and Quilt addon that assigns commands to item stacks. Commands are written into an item's NBT data under an ItemCommander tag tree, which lists the command to execute, and a cooldown in ticks can be set for each item. A player who uses the item triggers the stored command, and the item can store several commands at once.
Commands are attached with the commander family of commands. Operators create a command item, append further commands to an existing one, give a copy to a player, or save an item to a file on the server. Custom values can be read at run time when a command item contains placeholders in the form modid:type or modid:type/data. Optional support for LuckPerms and Text Placeholder API is listed as a dependency.
Environment is server-side only, so players join without installing anything. The code is released under the CC0 1.0 Universal license and is open source. Files exist for 1.18 – 1.21.1, with the latest 1.7.0-pre.2 build for 1.21.1 in the beta channel, published on Fabric and Quilt. Setup instructions for IDE use are on the Fabric wiki page.
Key features
Commands on item stacks
A command written to an item runs when a player holding it in the main hand uses it, with no separate command input.
Command item creation
The create command turns a held item into a command item, and the commander.command.create permission controls who can use it.
Appending and giving
Further commands can be appended to an existing command item, and the give command hands a copy to a player.
Saving to a file
A command item can be saved to a file on the server, so its configuration can be kept and loaded again later.
Custom placeholders and cooldowns
Placeholders read values inside command text, and a cooldown in ticks limits how often an item can fire.
Gallery
Compatibility
Latest build for each game version and loader.
1.21.x2 of 2 versions with builds
1.20.x7 of 7 versions with builds
1.18.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Optional 2
Questions
Does Item Commander need to be installed on the client?
Which loaders does Item Commander support?
Are LuckPerms and Text Placeholder API required?
In the catalog
Item Commander is one of 7,555 Cursed mods on ModsFinder, and one of 4,235 Cursed mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from Camper_Samu
Similar mods
What the author says
A simple Serverside Fabric mod that allows you to assign commands to Item(Stacks). It works by adding NBT data to the item, then when a player uses an item the NBT data for that item is checked, if it contains the ItemCommander tag tree it executes the specified command. To embed a command in an item, hold it in your…
Official listing
- Modrinth page
- modrinth.com/mod/itemcommander
- Owner
- Camper_Samu
- Published
- 2022-02-17
- Updated on Modrinth
- 2024-09-18
- Facts verified
- 2026-10-15
