▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/MankeDoMath
MankeDoMath

MankeDoMath

A calculator inside Minecraft that knows what a shulker is. Farm rates, item counts and timings, worked out in chat. Server-side only, so players install nothing.

Оцените первым
271
0

A calculator inside Minecraft that knows what a shulker is.

Quick sums without leaving the game or reaching for your phone, aimed at what a technical player actually works out: farm rates, how many shulkers a pile of items is, how long something takes to fill.

Server-side only. Players install nothing. The server registers the command and ships the tree to a vanilla client, which autocompletes it on its own.

/m 3456 items in sb      ->  2 shulkers
/m 5sb / 2h              ->  4320 items/hour (2.5 sb/hour)
/m (16*16*64) in st      ->  256 stacks, what one chunk section is worth
/m 20st in sb            ->  0.7407 shulkers
/m 1h + 30m              ->  108000 ticks (1h 30m)

Results are only visible to whoever asked. A calculator that shouts into public chat is a calculator people turn off.

Installation

Supports Minecraft 1.21 through 26.3. Download the jar for your Minecraft version from GitHub Releases or Modrinth, put it in the server's mods/ folder and restart. Players do not need the mod.

Minecraft 26.3 requires Java 25, Fabric Loader 0.19.5 or newer and Fabric API for 26.3. Earlier 1.21 versions use Java 21. Replace the old jar when updating and retain config/mankedomath.conf to keep your settings.

Commands

CommandWhat it does
/w4ve math <expression>The canonical spelling
/math <expression>Short alias
/m <expression>Shorter still, because typing /math to add two numbers gets old
/math helpThe examples above, clickable
/math ansYour last result. Works inside expressions too: /math ans / 64
/math share <expression>The one thing that does reach public chat
/math reloadRereads the config (operator level 2)

Units

This is the part that makes it a Minecraft calculator rather than a calculator.

SuffixIsExample
ststack, 643st = 192
sbshulker box, 27 stacks2sb = 3456
dcdouble chest, 54 stacks1dc = 3456
tticks600t = 30s
s m hseconds, minutes, hours1h = 72000t
b c rblocks, chunks, regions2c = 32 blocks

Longer spellings work too (stacks, shulkerboxes, items, minutes, chunks), with or without a space after the number. sh is still accepted for a shulker box if that is what your fingers already do.

Convert with in:

/math 3456 items in sb
/math 100 blocks in c
/math 5sb in st

Units carry through the arithmetic, so the mod knows that 5sb / 2h is a rate and prints it per hour, and that 1sb + 1h is a question with no answer.

Operators: + - * / % ^, brackets, and a lone x between numbers as multiplication. Functions: sqrt min max abs floor ceil round log ln.

When you get it wrong

/m 1/0        ->  dividing by zero is how you summon things. Cannot divide by zero
/m 1sb + 1h   ->  you cannot add cats and tuesdays. Cannot add time and items
/m 9^9^9      ->  that number does not fit in minecraft. Exponent 387420489 is over the limit of 64
/m banana     ->  manke can do math but no reading minds. Unknown name 'banana'

The joke never replaces the reason, it only introduces it, and Brigadier still underlines the exact character that broke. A funny error that leaves you stuck stops being funny the second time. Set funny_errors=false for a calculator with no opinions.

Safety

There is no eval here, and no scripting engine. The parser is hand written and reads one small grammar and nothing else, because putting an interpreter on a public server so people can add two numbers is opening the door to whoever walks by.

Expression length, nesting depth and operation count are all checked before a single multiplication happens, and the exponent cap is checked before each power is computed, so 9^9^9 bounces with a message instead of eating a tick. All four limits are in the config.

Config

config/mankedomath.conf, plain key=value text, commented. Everything reloads with /math reload except the command names, which are built into the command tree at server start. The file says which is which.

short_alias=true
aliases=math, m
funny_errors=true
max_length=256
max_depth=16
max_exponent=64
max_operations=500
decimals=4
click_to_copy=true
share_needs_permission=false

Building

./gradlew build

Needs JDK 21. The jar lands in build/libs/. The math package is plain Java with no Minecraft in it and has its own tests, which run in CI on every push:

./gradlew test

License

MIT. Part of W4VE, Ware 4 Vanilla Experience.

Партнёрский материал

Как поиграть с друзьями с модом MankeDoMath?

Мод MankeDoMath куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода MankeDoMath будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 месяца назад
Обновлён:2 недели назад
Главная