Skip to content

rpglookup command

Silver edited this page Jan 4, 2023 · 3 revisions

rpglookup

rpglookup is a command for datapackers and other people interacting with the mod through the command interface. As such, it provides no feedback and only uses return values. The various arguments allow you to change what is being looked up or computed. Certain lookups will require a stat ID provided as well afterwards.

This command requires permission level 2 or above.

Lookups that require a stat ID:

  • level - returns the level of a stat
  • xp - returns the xp of a stat
  • total_xp - returns the total xp gained in a stat

Lookups that work independently:

  • highest_level - returns the highest stat level a player has achieved
  • lowest_level - returns the lowest stat level a player has achieved
  • highest_total_xp - returns the highest amount of stat xp gained by a player
  • lowest_total_xp - returns the lowest amount of stat xp gained by a player

Examples

  • /rpglookup @s total_xp rpgstats:mining - gets the total amount of xp gained in the mining stat
  • /rpglookup @r highest_level - gets the highest level of a random player
Clone this wiki locally