SPELLCASTING WORKS!
The main mechanic of the mod is working!
YOU CAN CAST SPELLS WITH VOICE!
Finally! It took soo long…
After over two months of development, I finally have a proof, that my crazy idea actually works, and was worth trying out.
As you can see (and hear) in the video I implemented a simple wind leap spell, as the first one in the mod.
Note: There are no visuals or sounds yet, but they will be added, and this is just a proof of concept.
The spell comes in three variants
-
ʔalɪˈvɑn vɛɾtɛɾ ɛvi ˈonːdˌoː- wind launches you forward -
ʔalɪˈvɑn vɛɾtɛɾ ɛvi ãntikɔ- wind launches you backward -
ʔalɪˈvɑn vɛɾtɛɾ ɛvi fɒksɑm- wind launches you up (no matter where you are looking), not shown in the video
Additionaly, it can be cast as just ʔalɪˈvɑn vɛɾtɛɾ ɛvi, which is a shortcut for the first variant.
This can seen in the third attempt, where the system didin’t catch onːdˌoː, but the spell worked anyway.
This flexibility is easily possible, thanks to Mojang’s brigadier library. Brigadier powers the / commands in vanilla, and now the spell syntax and execution in my mod. I settled on it after trying two alternative approaches and failing to make them work. After all, my spells are just sentences, with the only difference, is that you speak them instead of writing.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.