Minecraft Mods

[Plugin] Calculator

  • 2,882 views, 1 today
  • 53 downloads, 0 today
  • 10
  • 4
  • 44
hawkek's Avatar hawkek
Level 50 : Grandmaster Batman
82
/calcGeneric CalculatorCalculator.calc
/sqrootSquare roots a number.Calculator.sqroot


Divide/
Multiply*
Add+
Subtract-
Raise to exponent**
YOU MUST USE A SPACE BETWEEN ARGS WHEN USING THE COMMAND: 
EX: /calc 1 - 1   NOT /calc 1-1


You can also use "ans" to use your last answer as a variable EX:
/calc 1 + 1
then do:
/calc ans * 2
the output would be:
2
4

Sqroot cannot handle normal calculator command (1 + 3 and such)

Good Examples:
/calc 1 + 1 + 3 * 2222 - 700 * 2 / 3
/calc -12 * 70 + 1
/calc 1 + 1
/calc ans + 70
/calc ans * ans
/sqroot 15



Thank you for downloading! Please diamond!
Progress100% complete
Game VersionMinecraft 1.7.8
Tags

2 Update Logs

Update #2 : by hawkek 04/20/2014 6:57:53 pmApr 20th, 2014

1.2 
Raise numbers to a power using the ** operator
Square root using /sqroot
Divide by 0 handling.
LOAD MORE LOGS

Create an account or sign in to comment.

Vortexy
04/30/2014 3:03 am
Level 6 : Apprentice Dragon
Vortexy's Avatar
Dividing something by zero simply equals zero. All divinding is is simply taking away a fraction of that number based on what your dividing by. So if you divided 1 by 0 it would result in getting the answer 0. Why do people make such a big deal about it?
1
hawkek
04/30/2014 4:53 pm
Level 50 : Grandmaster Batman
hawkek's Avatar
You're mistaken, the reason everybody is making such a deal about it is because it causes an infinite loop because dividing by 0 = infinity. Because here's why: 1 divided by 0 means how many times would 0 have to be multiplied to get to 1, 0 would be multiplied and multiplied forever trying to get to the number one, but it will never reach it, so the problem is that the program will keep multiplying and multiplying expecting an outcome but never getting one, causing the code to go in an infinite loop and become unresponsive. Also, the only division by 0 that works is 0 divided by 0, which is 1.
1
fase
04/29/2014 2:24 am
Level 11 : Journeyman Gent
fase's Avatar
If you make it have Sine and Cosine, I'll love you forever .
1
TheAverageOtaku
04/23/2014 6:50 pm
Level 2 : Apprentice Explorer
TheAverageOtaku's Avatar
probably nothing that would actually be useful for a server since you can just pull up a calculator program on your desktop but this is well made so im gonna give you credit.
1
nickfromgreece
04/22/2014 3:34 am
Level 54 : Grandmaster Programmer
nickfromgreece's Avatar
Needs: Factorials, log, modulo.

and also maybe you should add a check if someone is trying to divide by 0 :P
1
hawkek
04/22/2014 5:52 pm
Level 50 : Grandmaster Batman
hawkek's Avatar
The divide by 0 check is already implemented :).
1
MCParksMinecraft
04/21/2014 4:25 pm
Level 74 : Legendary Network
MCParksMinecraft's Avatar
Very cool plugin. Will be adding to my server.
1
BrainStone
04/20/2014 7:34 pm
Level 42 : Master Modder
BrainStone's Avatar
I know this is not a lot of work but it's something simple that I actually needed more than once...
1
Pick107
04/20/2014 1:08 pm
Level 10 : Journeyman Pig
Pick107's Avatar
and this is usful why?
1
hawkek
04/20/2014 2:13 pm
Level 50 : Grandmaster Batman
hawkek's Avatar
This is designed as a side plugin. That is somewhat useful sometimes. And it's more convenient to just do a command instead of acessing a program / google searching.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome