This is a basic 2D, 3D, and 4D list engine for Scratch. Feel free to see inside and copy the code to use in your projects! I would like it if you could credit me, but you don't need to. Each of the 3 sprites has the code necessary for the specified type of list. Here is what each of the functions do: -------------------------------------------------------------------- Set up list with size {size} and default item value {defaultValue} Call this function when the green flag is clicked to clear the list and set it up for the specified size. All values in the list are set to {defaultValue}. -------------------------------------------------------------------- Get value in list at {position} Sets the variable "retrieved value" to the value at the specified position in the list. -------------------------------------------------------------------- Set value in list at {position} to {value} Sets the value at the specified position in the list to the specified value. -------------------------------------------------------------------- Remove layer {layer} of dimension {dimension} from list Decreases the size of the list by removing all values with their {dimension} coordinate being equal to {layer}. For example: If {layer} = 5 and {dimension} = 3, any values with their third coordinate being 5 will be deleted. -------------------------------------------------------------------- Add layer to dimension {dimension} in list Increases the size of the list on the {dimension} axis by 1. New values that are added to the list are set to the {defaultValue} property of the list (defined when calling the setup function). -------------------------------------------------------------------- There are also a few variables that are used: retrieved value: Used in the "get" function. list size 1-4: The dimensions of the list. list default item value: The default value for new list items. i, j, k: Used in loops. Can be safely used for other loops outside of the list functions, but do note that whenever some of the list functions are called these get reset to junk values.