COWMODSКаталог модов

Expressions Provider

Add MiniPlaceholders placeholders for complex mathematical and text expressions

2,7 тыс.9обновлён 13 сент. 2025 г.
Утилиты

Описание

Expressions-Provider

Add MiniPlaceholders placeholders for complex mathematical and text expressions.

Installation

  • Install MiniPlaceholders
  • Install this project in the mods or plugins folder, depending on the platform you use

Placeholders

Basic Operations

  • Addition | <expr_add:n1:n2:...:nX>
    • <expr_add:5:2:3> == 10
  • Subtraction | <expr_sub:n1:n2>
    • <expr_sub:10:3> == 7
  • Multiplication | <expr_mul:n1:n2:...:nX>
    • <expr_mul:5:2:3:6> == 180
  • Division | <expr_div:n1:n2>
    • <expr_div:10:5> == 2
  • Division remainder <expr_mod:n1:n2>
    • <expr_mod:5:2> == 1
  • Negation | <expr_neg:n>
    • <expr_neg:5> == -5
    • <expr_neg:-5> == 5

Round

  • Round down to integer | <expr_floor:n>
    • <expr_floor:5.05> == 5
    • <expr_floor:2.9> == 2
  • Round to nearest integer | <expr_round:n>
    • <expr_floor:5.05> == 5
    • <expr_floor:2.9> == 3
  • Round up to integer | <expr_ceil:n>
    • <expr_floor:5.05> == 6
    • <expr_floor:2.9> == 3
  • Get the lowest-valued number | <expr_min:n1:n2:...:nX>
    • <expr_min:5:10:15:2:500:9:69> == 2
  • Get the highest-valued number | <expr_max:n1:n2:...:nX>
    • <expr_max:5:10:15:2:500:9:69> == 500
  • A random number from 0 to 1 | <expr_random> | Acts like <expr_random:0:1:0.01>
    • <expr_random> == 0.15
  • A random integer from min to max | <expr_random:min:max> | Acts like <expr_random:min:max:1>
    • <expr_random:1:100> == 69
  • A random number from min to max with a step of step | <expr_random:min:max:step>
    • <expr_random:50:10:0.25> == 68.75

String Operations

  • Concat strings | <expr_concat:s1:s2:...:sN>
    • <expr_concat:hello:_:world> == "hello_world"
  • Create a substring of s from n1 to n2 character | <expr_substring:s:n1:n2>
    • <expr_substring:hello:2:4> == "ll"
  • Get length of the string | <expr_length:s>
    • <expr_length:hello> == 5
  • Format a string using Java String.format() | <expr_format:format:arg1:arg2:...:argX> | It may be useful for user expressions
    • <expr_format:'%s is not a %s':4drian3d:fruit> == "4drian3d is not a fruit"
  • Displays r1 if o1 and o2 are same. Otherwise, displays rs | <expr_if:o1:o2:r1:r2>
    • <expr_if:1:2:Equals:NotEquals> == "NotEquals"
  • Sets text placeholders for a player with uuid. | <expr_player:uuid:text>
    • <expr_player:4drian3dUUID:<player_name>> == 4drian3d
  • Sets text placeholders for a player with name. | <expr_player:name:text>
    • <expr_player:4drian3d:<player_ping>> == 42
  • Expand to a User expression | <expr_user:name:arg1:arg2:...:argX>

User expressions

You can create your own expression shortcut in expressions.properties using our Expression Provider Language (EPL):

add_and_multiply=<expr_add:"<arg1>":"<expr_mul:'<arg2>':'<arg3>'>"> means <expr_user:add_and_multiply:arg1:arg2:arg3> will be evaluated to arg1 + (arg2 * arg3). So, <expr_user:add_and_multiply:2:3:4> evaluates to <expr_add:2:'<expr_mul:3:4>'>, which is 2 + (3 * 4) = 14

Example user expressions

  • <expr_user:remove_first:s:n> - Remove n first characters from s (hello, 2 -> llo), EPL: remove_first=<expr_substring:"<arg1>":"<arg2>":"<expr_length:'<arg1>'>">
  • <expr_user:remove_last:s:n> - Remove n last characters from s (hello, 2 -> hel), EPL: remove_last=<expr_substring:"<arg1>":0:"<expr_sub:'<expr_length:"<arg1>">':'<arg2>'>">
  • <expr_user:decimals:n:decimals> - format a number (1.234567, 2 -> 1.23), EPL: decimals=<expr_format:"<expr_concat:'%.0':'<arg2>':'f'>":"<arg1>">
  • <expr_user:pad_integer:n:length> - pad an integer with zeros (12, 3 -> 012), EPL: pad_integer=<expr_format:"<expr_concat:'%0':'<arg1>':'d'>":"<arg2>">

Nesting

Expressions can be nested. Try /miniplaceholders parse me <expr_add:1:"<expr_add:1:'<expr_add:1:"<expr_add:1:'<expr_add:1:0>'>">'>">

Downloads

Последние версии

Все версии →
release

Expressions Provider Fabric 2.0.0

2.0.0
13 сент. 2025 г.168Minecraft: 1.21.6, 1.21.7, 1.21.8fabric, quilt
Скачать
Что нового
- Updated to MiniPlaceholders v3 - Renamed project as ExpressionsProvider - Unlike other expansions, this expansion has now become a separate project (plugin/mod), which provides placeholders to MiniPlaceholders. - The way user expressions are loaded has been refactored. They are now created from the expressions.properties file, and no longer require the use of multiple `\` characters to nest placeholders. You simply need to have a hierarchy of square brackets. For example, if you start with a quotation mark `“` and want to place a placeholder argument inside it, you must use the other type of quotation mark `'`, and if another argument is required inside that argument, it must be interspersed with the other type of quotation mark `”`. The wiki explains this better and provides examples.
release

Expressions Provider Paper 2.0.0

2.0.0
13 сент. 2025 г.775Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8folia, paper, purpur
Скачать
Что нового
- Updated to MiniPlaceholders v3 - Renamed project as ExpressionsProvider - Unlike other expansions, this expansion has now become a separate project (plugin/mod), which provides placeholders to MiniPlaceholders. - The way user expressions are loaded has been refactored. They are now created from the expressions.properties file, and no longer require the use of multiple `\` characters to nest placeholders. You simply need to have a hierarchy of square brackets. For example, if you start with a quotation mark `“` and want to place a placeholder argument inside it, you must use the other type of quotation mark `'`, and if another argument is required inside that argument, it must be interspersed with the other type of quotation mark `”`. The wiki explains this better and provides examples.
release

Expressions Provider Sponge 2.0.0

2.0.0
13 сент. 2025 г.47Minecraft: 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8sponge
Скачать
Что нового
- Updated to MiniPlaceholders v3 - Renamed project as ExpressionsProvider - Unlike other expansions, this expansion has now become a separate project (plugin/mod), which provides placeholders to MiniPlaceholders. - The way user expressions are loaded has been refactored. They are now created from the expressions.properties file, and no longer require the use of multiple `\` characters to nest placeholders. You simply need to have a hierarchy of square brackets. For example, if you start with a quotation mark `“` and want to place a placeholder argument inside it, you must use the other type of quotation mark `'`, and if another argument is required inside that argument, it must be interspersed with the other type of quotation mark `”`. The wiki explains this better and provides examples.
release

Expressions Provider Velocity 2.0.0

2.0.0
13 сент. 2025 г.175Minecraft: 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8velocity
Скачать
Что нового
- Updated to MiniPlaceholders v3 - Renamed project as ExpressionsProvider - Unlike other expansions, this expansion has now become a separate project (plugin/mod), which provides placeholders to MiniPlaceholders. - The way user expressions are loaded has been refactored. They are now created from the expressions.properties file, and no longer require the use of multiple `\` characters to nest placeholders. You simply need to have a hierarchy of square brackets. For example, if you start with a quotation mark `“` and want to place a placeholder argument inside it, you must use the other type of quotation mark `'`, and if another argument is required inside that argument, it must be interspersed with the other type of quotation mark `”`. The wiki explains this better and provides examples.
release

MiniPlaceholders Expressions Expansion Fabric 1.2.0

1.2.0
18 нояб. 2023 г.346Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3fabric, quilt
Скачать
Что нового
## What's Changed * fix: Removed Krypton module * feat: Added Sponge support * fix: Fixed placeholders nesting * fix: Fixed Fabric module 1.20+ support **Full Changelog**: https://github.com/MiniPlaceholders/Expressions-Expansion/compare/1.1.1...1.2.0
release

MiniPlaceholders Expressions Expansion 1.2.0

1.2.0
18 нояб. 2023 г.256Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2folia, paper, purpur, sponge, velocity
Скачать
Что нового
## What's Changed * fix: Removed Krypton module * feat: Added Sponge support * fix: Fixed placeholders nesting * fix: Fixed Fabric module 1.20+ support **Full Changelog**: https://github.com/MiniPlaceholders/Expressions-Expansion/compare/1.1.1...1.2.0
release

Expressions Expansion Fabric 1.1.1

1.1.1
17 июл. 2023 г.185Minecraft: 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2fabric, quilt
Скачать
Что нового
## Features - [perf: Improved placeholders performance](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/0a9e74947cff5086c3e3423a4069242c58d747b4) - [perf: Optimized Float operations](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/7a40ec614b5a9f723c63bfe25a848921987e283f) ## Fixes - [Fix startup error at Paper servers](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/eee65039e84317d046c8d1bf5dbef892f1c76107) - [fix: Fixed Paper 1.20+ support](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/9565d7eefd3202ecd1654bb2d58a8d2bb1ad67ad) **Full Changelog**: https://github.com/MiniPlaceholders/Expressions-Expansion/compare/1.1.0...1.1.1
release

Expressions Expansion 1.1.1

1.1.1
17 июл. 2023 г.157Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2folia, paper, purpur, velocity
Скачать
Что нового
## Features - [perf: Improved placeholders performance](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/0a9e74947cff5086c3e3423a4069242c58d747b4) - [perf: Optimized Float operations](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/7a40ec614b5a9f723c63bfe25a848921987e283f) ## Fixes - [Fix startup error at Paper servers](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/eee65039e84317d046c8d1bf5dbef892f1c76107) - [fix: Fixed Paper 1.20+ support](https://github.com/MiniPlaceholders/Expressions-Expansion/commit/9565d7eefd3202ecd1654bb2d58a8d2bb1ad67ad) **Full Changelog**: https://github.com/MiniPlaceholders/Expressions-Expansion/compare/1.1.0...1.1.1
release

Expressions Expansion Fabric 1.1.0

1.1.0
8 мая 2023 г.115Minecraft: 1.19.3, 1.19.4, 23w17a, 23w18a, 1.20fabric
Скачать
Что нового
## What's Changed * Added Fabric Support by @4drian3d in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/20 * fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.78.1+1.20 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/21 * chore(deps): update dependency gradle to v8.1.1 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/19 * fix(deps): update adventure to v4.13.1 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/18 * chore(deps): update plugin fabric-loom to v1.2.5 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/22 * Added Folia Support **Full Changelog**: https://github.com/MiniPlaceholders/Expressions-Expansion/compare/1.0.1...1.1.0
release

Expressions Expansion 1.1.0

1.1.0
8 мая 2023 г.169Minecraft: 1.19.3, 1.19.4folia, paper, purpur, velocity
Скачать
Что нового
## What's Changed * Added Fabric Support by @4drian3d in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/20 * fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.78.1+1.20 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/21 * chore(deps): update dependency gradle to v8.1.1 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/19 * fix(deps): update adventure to v4.13.1 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/18 * chore(deps): update plugin fabric-loom to v1.2.5 by @renovate in https://github.com/MiniPlaceholders/Expressions-Expansion/pull/22 * Added Folia Support **Full Changelog**: https://github.com/MiniPlaceholders/Expressions-Expansion/compare/1.0.1...1.1.0