Hey guys! The latest snpashots, of 1.8, had some really cool staff, that made you able to make alot more things with scoreboard. So I made 4 long commands, that will make for you a calculator that allow you to make addition, subtraction, multiplication and division exercises in-game with any numbers you want. Before using those long commands, you need to use 8 more commands, to make it work. You can only put the long commands in the command blocks, but you can use the 8 short commands in the chat. NOTE: You must be in the latest snapshot. 8 short commands: /scoreboard objectives add give dummy /scoreboard objectives add given dummy /scoreboard objectives add remove dummy /scoreboard objectives add removed dummy /scoreboard objectives add X1 dummy /scoreboard objectives add X2 dummy /scoreboard objectives add :1 dummy /scoreboard objectives add :2 dummy 4 long commands: Division: tellraw @a {text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number :1 <>"},extra:[{text:"÷",clickEvent:{action:suggest_command,value:""}},{text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number :2 <>"}},{text:"=",clickEvent:{action:run_command,value:"/scoreboard players operation number :1 /= number :2"}},{text:"<>",clickEvent:{action:run_command,value:"/tellraw @p {text:\"=\",extra:[{score:{name:\"number\",objective:\":1\"}}]}"}}]} Multiplication: tellraw @a {text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number X1 <>"},extra:[{text:"*",clickEvent:{action:suggest_command,value:""}},{text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number X2 <>"}},{text:"=",clickEvent:{action:run_command,value:"/scoreboard players operation number X1 *= number X2"}},{text:"<>",clickEvent:{action:run_command,value:"/tellraw @p {text:\"=\",extra:[{score:{name:\"number\",objective:\"X1\"}}]}"}}]} Subtraction: tellraw @a {text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number removed <>"},extra:[{text:"-",clickEvent:{action:suggest_command,value:""}},{text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number remove <>"}},{text:"=",clickEvent:{action:run_command,value:"/scoreboard players operation number removed -= number remove"}},{text:"<>",clickEvent:{action:run_command,value:"/tellraw @p {text:\"=\",extra:[{score:{name:\"number\",objective:\"removed\"}}]}"}}]} Addition: tellraw @a {text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number given <>"},extra:[{text:"+",clickEvent:{action:suggest_command,value:""}},{text:"<Number>",clickEvent:{action:suggest_command,value:"/scoreboard players set number give <>"}},{text:"=",clickEvent:{action:run_command,value:"/scoreboard players operation number given += number give"}},{text:"<>",clickEvent:{action:run_command,value:"/tellraw @p {text:\"=\",extra:[{score:{name:\"number\",objective:\"given\"}}]}"}}]} How to use: When you activate the command block that has one of those commands, you will get this text: "<Number>[÷,*,-,+]<Number>=<>" If you click on the first <Number>, you will get this command: /scoreboard players set number [:1,X1,removed,given] <> Replace the <> with the first number of your exercise, and then click ENTER. If you click on the second <Number>, you will get this command: /scoreboard players set number [:2,X2,remove,give] <> Replace the <> with the second number of your exercise, and then click ENTER. After you set the two numbers of your exercise, click on the =. Be carful not to click on the <>. After you clicked the =, click on the <>. Then you will get the answer of your exercise. If you didn't get how to use it, here is a video: When I say that, you can choose any number, you're proably thinking of something like 1000, but when I say "you can choose any number", I mean, ANY number. Even 100000000000000000. Well, I'm not sure what's the maximum of what the scoreboard can hold, but it's proably alot. And don't expect it to work if you paste the command into your chat. The commands are too long, and the only way to run them is by using the command blocks. Make sure you're on the latest snapshot. And I didn't copy those commands from someone else. They are original, and made by me. And, please don't ask how it works. For those who are not good redstoners, it will be very hard to explain it. And, if you do things like 5÷3, you will only get 1. That's not a bug of those commands, this is just because the scoreboard of today can only hold natural numbers. But if you found any bugs, or you need help, just comment me down below.
Just copy the commands, put a command block in minecraft, paste into the command blocks the commands, and active the command blocks. Then just do what is wrote in the 'How to use'. Tell me if in the 'How to use' I wrote something that it's hard to understand.