Introduction
Perhaps one of the most famous data structures in computer science is a 'stack'. It's principles are simple, you can 'push' values to the top of the stack, and you can 'pop' values off the top of the stack.
This is an extremely powerful data structure that is of essense in virtually every computer program today.
I suggest the power of the stack is added to the scoreboard command.
Commands
I propose that two subcommands are added.
The first is push, syntax: scoreboard players push <selector> <objective>
This would push the current value of the specified score onto the stack for that objective for the entity.
The second is pop, syntax: scoreboard players pop <selector> <objective>
This would pop the top value off of the stack for that objective for the entity and into the entity's score.
Please sign in to leave a comment.
1 Comments