ItemsAdderAdditionsItemsAdderAdditions
Commands

/iatrademachine

Open an ItemsAdder trade machine GUI for a player.

Since v1.0.7

/iatrademachine

Open an ItemsAdder trade_machine or block_trade_machine GUI for a player without requiring the physical block or furniture to be placed in the world.

Useful for opening trade machine GUIs from menu plugins, NPCs, or custom command flows.

Syntax

/iatrademachine <player> <namespace:id> [-silent]

Parameters

<player>

The online player to open the trade machine for.

<namespace:id>

The ID of the custom block or furniture that has a trade_machine or block_trade_machine behaviour. See IDs.

Example:

stations:alchemy_table

-silent

Optional flag.

If added, the command suppresses the confirmation message normally sent to the command executor.

Examples

/iatrademachine twinkycome stations:alchemy_table
/iatrademachine twinkycome stations:alchemy_table -silent

Permission

ia.admin.iatrademachine

Notes

  • Works from both players and the console.
  • Requires the target ID to have a trade_machine or block_trade_machine behaviour.
  • The full namespaced ID must be used.
  • Command suggestions are populated from registered ItemsAdder custom stack IDs.
  • If the ID does not have a supported trade machine behaviour, the command fails.

Use case example

Combine this command with a GUI plugin such as DeluxeMenus to create a category selection menu that opens different trade machines directly, instead of having players scroll through one large trade machine GUI.

On this page