Smart 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: 1000000Supported 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 →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta