Sueta

Smart Calculator

1.5.1

Do basic math and calculate distances in Minecraft!

·Plugin



S
mart Calc is a simple plugin which allows your players to execute basic arithmetic math operations via commands. As well as allowing them to calculate distances in-game based on two sets of coordinates or their current location and a destination.

Commands:
- /calc (plugin info)
- /calc <num> <operator> <num> (Perform math operation, see below for supported operators)
- /calc <cos/sin/tan/sqrt> <num> (Calculate with cos, sin, tan, and square root)
- /calc <operator> <num> (Perform the specified math operation based on the last calculation)
- /calc distance <coordinates> to <coordinates> (Calculates the distance between two points, see exampels below)

Default Config:

Default Config
#------------------#
#    Smart Calc    #
#                  #
#    By  Benz56    #
#   Version  1.3   #
#------------------#

Permission node
smartcalc.allow -> permission to use SmartCalc

No permission message
noPermission: '&cYou do not have permission to do this!'

Incorrect expression entered
unknownExpression: '&cUnknown expression!'

No calculation to add to.
noMapValue: '&cCould not retrieve previous calculation!'

Plugin Prefix:
I suggest adding two spaces at the end for a small indentation.
Leace BLANK to disable.
pluginPrefix: '&7[&eSmart Calc&7]  '

Max/Min value a calculation can be:
Larger number will replace with 'A Lot!'.
Large negative numbers will replace with 'Very Little'.
maxMinValue: 1000000

Supported operations:

  • [ + , - , * , / , ^ ]
  • Cos, Sin, Tan, Sqrt

Distance Calculator:

Distance Calculator

The distance calculator can be used with 2 or 3 coordinates:
- /calc distance x y z to x y z
- /calc distance x z to x z

The first set of coordinates can also be replaced with the player's current location e.g:
- /calc distance location to x y z
- /calc distance location to x z

Permission:
- smartcalc.allow (Full access to SmartCalc)

Installation:
1. Put SmartCalc.jar inside you plugins folder.
2. Start or reload your server.

Please leave a rating and a comment below! :)
Found a bug? Please let me know in the discussion section

Similar projects

Plugin →