Skip to content

[1.21.1] Commands

Insane96 edited this page Apr 19, 2026 · 1 revision

Commands

InsaneLib adds the /insanelib command, available to operators (permission level 2).


/insanelib set_time_played

Sets the played time statistic for one or more players.

Syntax: /insanelib set_time_played <players> <time>

Argument Type Info
players Entity selector The player(s) whose play time to set
time Integer (≥ 0) The play time value to set, in ticks

/insanelib get_data_components

Prints all data components of an item to the chat, as JSON values. If the item has been patched by Item Components, it is noted in the header.

Syntax: /insanelib get_data_components <item>

Argument Type Info
item Identifier The item to inspect (e.g. minecraft:diamond_sword)

Clone this wiki locally