Command Statistics

Command Statistics

Mod

Adds /statistics [add | query | set | store | reduce |project ] to allow OPs and datapacks to manipulate players' statistics.

Server Utility

283 downloads
1 follower
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Command Statistics 0.8.1-1.21

Changelog

Moving to Beta

I'm moving the classification of the mod from alpha to beta: this represents my feelings of the mod's done-ness. It is as far as I'm aware, feature complete and just needs some polishing.

Bug fixes

Command Structure.

Some paraenthesis in the command registration were in the wrong place, conoddling their neighbors spouse, causing erroneous behavior. The offending punctuation marks have been appropriately blackmailed with picture of the affair, and have returned to the correct positions in the code.

Feature Changes

Feedback

All commands entered into chat should now give the user appropriate basic feedback.

Future Plans: Natlang Feedback

I do plan on making feedback better and more naturalistic, but for now; it delivers the information it needs to, albeit rather dryly. It's gonna be on my low priority list because of how frustrating I've found the whole idea of implementing it

Units

Units of measurement such as kilometers of distance or hearts of damage, or cakes worth of cake slices have been re-implemented as a system.

New Units

The following units have been added to the game:

  • Blocks
    • Chunk layer (256 blocks)
    • Subchunk (4,096)
    • Map Layer (16,384)
  • Item
    • Stack (varies per item: [1 | 16 | 64] items )
    • Hopper (5 stacks)
    • Dropper (9)
    • Chest (27)
    • Player Inventory (36)
    • Double Chest (54)
    • Chest of Shulkers (729)
    • Double Chest of Shulkers (1,458)
  • Distance (Metric)
    • Meter (100cm)
    • Kilometer (100000)
  • Distance (Yanklandaen)
    • Inch (~2.5 cm)
    • Foot (12 Inches)
    • Yard (36)
    • Mile (63360)
  • Time
    • Second (20 ticks)
    • Minute (60 seconds)
    • Minecraft Day (20 minutes)
    • Hour(60 minutes)
    • Day (24 hours)
    • Week (7 days)
    • Month (~30.4 days, exactly 1/12th a year)
    • Year (31,556,952 seconds)
  • Damage
    • Heart (2 points)
  • Cake
    • Cake (7 slices)

Function

Most commands can now be appended with a string word which will be parsed as a unit. This will affect how the command executes. For Query and Store, the stat value will be divided by the unit's conversion factor before being used. For Add, Set, and Reduce, the argument will be multiplied by the unit's conversion factor before being used.

Alternate Names

Most units have more than one string that can parse as it. For example, the kilometer can be specified using "kilometer" or "km", or "chest" and "shulker". A complete list of these has not been provided.

Sanity Checks

A command with a unit will only properly function if that unit is a sensical measure of the stat; trying to measure distance in years will fail. Commands which

Future Plans: Command Suggestions

When typing the command, I'd like to have the mod suggests the units.

Future Plans: Project Units

Currently project cannot use units. Adding units to the project feature is at the very bottom of my priority list right now, below even implementing natlang feedback, not because it'd be difficult; but because it'd be annoying.

Future Plans: More Units

I will hear requests for any addition units you might want to use. I will not necessarily accept them, but I will hear them. To be considered, any such request must be come with a relevant wiki or wikipedia article, and a conversion factor.

Files

command-statistics-0.8.1-1.21.jar(144.35 KiB) Primary Download

Project members

Hydraheadhunter

Member

Details

Licensed CC-BY-NC-SA-4.0
Published 7 months ago
Updated 4 months ago