Skip to content

An easy-to-use calculator by sending messages in Minecraft server. Based on mana9er-core.

Notifications You must be signed in to change notification settings

mana9er/mc-easyCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mc-easyCalc

An easy-to-use calculator by sending messages in Minecraft server. Based on mana9er-core.

In-game Usage

For help information, you can type:

!calc help

For a simple example:

!calc 27*64

Then the server should show (broadcasting using /say):

[Server] [EasyCalc] 1728

You can use _ to indicate the answer of last expression (notice that this is shared by all players, which allows you to use the answer of other player's expression):

!calc _ + 1

The server should show:

[Server] [EasyCalc] 1729

Parser

We use Lark-Parser to generate a parser for parsing arithmetic expressions. We don't use the python built-in function eval because we want to avoid any possible injection vulnerability.

About

An easy-to-use calculator by sending messages in Minecraft server. Based on mana9er-core.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages