Skip to content

RarityCore Command Reference

RarityCore provides two sets of commands: /raritycore (server commands, requires OP permission) and /raritycore-client (client commands, available to regular players).

Server Commands

All /raritycore subcommands require OP permission (permission level 2).

Rarity Management

CommandDescription
/raritycore sethand <rarity>Sets the rarity of the item in main hand
/raritycore removehandRemoves the rarity of the item in main hand
/raritycore setrarity <item> <rarity>Sets the rarity of a specified item
/raritycore removerarity <item>Removes the rarity of a specified item
/raritycore recalculate-autoRecalculates all auto rarity configurations

Examples:

/raritycore sethand 3
/raritycore setrarity minecraft:diamond_sword 5
/raritycore removerarity minecraft:iron_sword

Configuration Management

CommandDescription
/raritycore reloadReloads all configurations and rarity data

Data Export

CommandDescription
/raritycore export allExports all rarity data to a single file
/raritycore export all-modExports rarity data separately by mod
/raritycore export mod <modid>Exports rarity data for a specified mod
/raritycore export rarity <level>Exports all items of a specific rarity level

Export File Description:

  • Filename: export_<type>_<MC version>_<timestamp>.json; for export rarity: export_rarity_<level>_<timestamp>.json
  • Save location: mod config directory

Details

CommandDescription
/raritycore detailsDisplays current rarity configuration statistics
/raritycore details nbtDisplays NBT matching configuration details

Edit Mode

Ver.13 Refactored: Edit mode is now mode-driven + parameter-driven. See Rarity Configuration Guide.

Edit Mode Control:

CommandDescription
/raritycore edit toggle <true|false>Enable/disable edit mode
/raritycore edit mode <normal|fullmatch>Switch edit mode

Parameter Settings (all parameters can be changed anytime; effectiveness depends on current mode):

CommandDescriptionMode
/raritycore edit parameter rarity <value>Set rarity level (≥0)All
/raritycore edit parameter autoReload <true|false>Auto-reload after config generationFullMatch
/raritycore edit parameter stringContains <true|false>Use contains matching for string NBTFullMatch
/raritycore edit parameter ignore "<aa|bb|cc>"Exclude NBT tags, separated by |FullMatch

GUI Operations:

  • When edit mode is active, a floating panel appears in the top-left corner
  • Click the mode name to toggle Normal/FullMatch
  • [-] [+] buttons adjust rarity level
  • Ctrl+1~Ctrl+7 select level, Ctrl+0 clear rarity
  • Ctrl+H collapse/expand panel

Client Commands

/raritycore-client commands do not require OP permission and are available to all players.

CommandDescription
/raritycore-client reloadReloads client config (client.json and RarityClientConfig.json)
/raritycore-client cache statsShows cache statistics
/raritycore-client cache clearClears local cache

Permission Requirements

Permission LevelDescription
0Regular player (can only use /raritycore-client commands)
2OP player (can use all /raritycore commands)
4Server administrator

Released under the MIT License