When the Minecraft launcher opens, it doesn't have an X11 class or name, so any script that listens for new windows can't determine that it's a Minecraft window.
Presumably the name and class are set after the window is created, since xprop reports both name and class once the launcher is opened, but at a minimum the class should be set when the window is created, not afterwards.
On Ubuntu 18.04 the Launcher does not receive a WM_CLASS even after the window is shown:
mrmeszaros@debella ~> xprop WM_CLASS WM_NAME
WM_CLASS: not found.
WM_NAME(STRING) = "Minecraft Launcher"