Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Commander

Commander

An extension of the data pack system.

42.7k
13
Library
Utility
AboutGalleryChangelogVersions
All versions0.9.0 (1.20.1)

0.9.0 (1.20.1)

Auto-featured
Download
Report

Changelog

What's New:

User Changes:

  • Added the (data pack) expression library!

This feature allows adding common expressions to a library where each is identified using an Identifier.

{
  "replace": false, // Can be omitted.
  "expressions": {
    "test:cool_expression": "score * 2.5",
    "test:boolean_expression": "level.isDay && !level.isRaining"
  }
}

Later on, these expressions can be evaluated inside other expressions using the library container, like so:

sqrt(library.my_id:some_value) * library.my_id:other_value

Or in execute/scoreboard brigadier commands using cmd:library. Prefer using the library in Brigadier commands! It does not require parsing the expression in-place!

  • Brigadier macros in JSON commands should now correctly fail on dangling braces.

Dev Changes:

  • Added more javadoc to the api package.
  • Removed evalex and mapping-io from pom.xml
  • Added LongExpression. Similar to Arithmetica and BooleanExpression, but for longs!
  • Tried to fix expression equality.
  • Added missing 'parameter' methods to Arithmetica, BooleanExpression and BrigadierMacro.
  • Added Expression.Result#NULL.

Other Changes:

  • The mod should now fail with slightly better error messages.
  • Inlined constant BooleanExpression instances.

Dependencies

dependency-iconFabric APIrequired
dependency-iconDark Matterembedded

Files

commander-0.9.0-1.20.1-build.23.jar(910.48 KiB) Primary
Download
commander-0.9.0-1.20.1-build.23-sources.jar(114.83 KiB)
Download

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Metadata

Release channel

Beta

Version number

0.9.0-1.20.1-build.23

Loaders

Fabric

Game versions

1.20.1

Downloads

35703

Publication date

August 6, 2024 at 7:09 PM

Publisher

melontini

melontini

Author

Version ID

Modrinth is open source.

main@a0bd011

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.