Rundown of the spell (general, not pattern-by-pattern, in order of what happens in the world) (“mana” = dust)
————
1(a-1) (i don’t wanna shift all the ones below this down, I forgot it is technically the first instruction) . Set max speed to 20 (blocks per second?)
1a. Get everything within 8 blocks of me and put it into a list
1b. Get me, and remove me from that list
1c. For each entity in the list, find their motion, multiply that by -1, and apply that as an impulse
1d. Set travel destination to the coordinates right above my head.
1e. If the Ravenmind is empty, fill it with the following list: [function to get mana note block value, previous note value = 0, current note value = 0]. If it’s full, do nothing.
1d. Obtain the current mana note value by running the mana note function, and store it to the ravenmind at the last index of its list (2)
1f. If the current mana note is inequal to the previous mana note, play the current mana note as a sound at my coordinates
1g. Save current mana into the ravenmind at the middle index (1)
————
2. Play a sound at my location of the default instrument with pitch 0```