The presentation is rendered at (0, 50, 0) in the Overworld, facing the positive X direction.
Get items used to control the visualizer.
/sortVis GIVE_ITEMS
Run a specific algorithm.
/sortVis {ALGORITHM_NAME}
Change the size of the array, where {INT} is the number of elements.
/sortVis RESIZE {INT}
Change the presentation speed, where {INT} is the number of game ticks between each step.
/sortVis EVENT_DURATION {INT}
To add an algorithm:
- Find an existing algorithm in the
algorithmsfolder for reference. - Create a new file, and declare a function using the reference.
- Register the algorithm in the
algorithmsarray insideSortVisualizerPlugin.kt.
val algorithms = arrayOf<AlgorithmDetails>(
...
AlgorithmDetails("myAlgorithm", "My Algorithm", myAlgorithm),
);