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 rarity configurations
/raritycore config versionDisplays configuration file version information
/raritycore config upgradeForces verification and upgrade of configuration files

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

Export File Description:

  • Filename format: export_<type>_<Minecraft version>_<timestamp>.json
  • Save location: Mod configuration directory

Details

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

Edit Mode

Edit mode allows real-time preview of rarity changes in-game.

CommandDescription
/raritycore edit enableEnables edit mode
/raritycore edit disableDisables edit mode
/raritycore edit toggleToggles edit mode
/raritycore edit statusDisplays current edit mode status

Performance Monitoring

CommandDescription
/raritycore perf statsDisplays performance statistics
/raritycore perf optimizeManually triggers performance optimization

Client Commands

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

CommandDescription
/raritycore-client reloadReloads client configuration
/raritycore-client texture toggleToggles texture border display
/raritycore-client cache statsDisplays 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