Idea
Have you ever wanted to feel like Tony Stark from Iron Man. Not as a dude with a fricking nuclear reactor in his chest, but as a dude who can control home and pc using his voice alone.
But who knows, maybe you wanted to be like the first dude; I'm not here to judge :grin:
In the movie the system was called 'Jarvis', and my mod's called 'Wolves Emperor' and this is a way cooler name than Jarvis and can take control of wolves' minds!
First iteration
For the proof of concept I needed two things: a minecraft client-server mod to control the tamed wolves and a python script to detect a wake command.
I was shocked by the fact that minecraft mod can create any file on the non-system drive; hell, maybe even on the system drive - I didn't test. But that came in handy for the PoC.
So, beware of potential security risks when installing a minecraft mod.
Basically, the python script was listening for the wake command and then wrote to a file.
Minecraft mod was reading from the file, and upon a certain value being met, it looked for all non-sitting tamed wolves in the radius and sent an attack command.
Second iteration
For the second iteration the general concept still applies, but instead of using a file, it uses pipes.
Pipe is a technique for passing information from one program process or command to another. Unlike other forms of interprocess communication (IPC) -- i.e., the communication between related processes -- a pipe refers to one-way communication only.
Pipes can be used for stuff like passing a video or an audio input to FFMPEG for example, maybe I'll cover it in the future articles.
Later, I made that the attack command could be executed by clicking the middle mouse button or using voice.
Plan for the third iteration
For the third iteration, the whisper AI model can be used to allow command customization and more advanced stuff, like telling wolves to stop attacking, sit down, or come to the player.
Mostly would need to change the python part, depending on a feature, of course.