Simple Calculator
by Legopitstop
To put it simply, it's a calculator. What can I use the calculator for? Well, you can use the calculator to add, subtract, divide and multiply numbers, exactly like the calculator that's right next to you, or is that just me? There currently is no craftable recipe but you can still get the calculator item by using the function give command in creative or with cheats on. Be careful though as some larger numbers cause issues, max 9 digits. Currently only add [+], subtract [-], multiplication [x] and division [/] are supported
How to use
1.Get your hands on the item, via command for now.
2.Hold the item in your main hand and right-click
3.After clicking the item open your inventory.
4.Now you can use your mouse to click on the buttons.
5.Start by entering a number or numbers, ex: 12
6.Then click on the function that you want to use, ex: +
7.Now, like the start, enter your second numbers to add to the first one. ex: 21
8.Finally press equals [=] it should then give you the output number. ex: 33
9.You can then use [C] to clear the calculator if you accidentally type in the wrong number press [CE] to clear that entry.
Commands
gives @p the calculator item
/function give:calculator
Known Bugs
-Cannot enter "0" example: 200
Planning to add
May add more calculators, like a stack calculator to calculate how many items you have ex: 3 stacks + 5 items = 197 total items, and/or add more buttons like square root,
pi, sine, cosine, tangent, and even add input support for negative numbers. May also add a percentage [%] function to a simple calculator.