Note
Hi everyone, I am inclined on closing this bug as 'Won't Fix'. This was never something that the Launcher was designed to respect, so technically this becomes a feature request and not a bug. With that said I believe this becomes a possibility once we go live with the account migration. You will be able to link a child Microsoft Account to a parent account, and be given parental controls to set Xbox permissions, including game time. I'll leave this bug open for now until we start rolling out migration.
@unknown in this comment
Apple's screen time app that blocks the apps after an amount of time does not close or block Minecraft after the time runs out. It acts in a similar way to any other program run through java, and opens a second window saying " You've reached your limit on Minecraft." Blocking Java and Javaw has no effect.
Linked issues
is duplicated by 2
Attachments
Comments 34
I would be happy to test this. It appears to block the launcher but because on the mac it loads in a Java JVM it doesn't matter that the launcher is blocked.
As discussed in many of the apple forums because apple allows the "One more minute" option a kid can bypass the launcher restriction by asking for one more minute on the launcher giving the game enough time to load and then having no limit.
Any update on this issue?
Instead of a nameless java app, could the launcher launch something that is recognized and blockable by Screentime?
My son loves minecraft, but he's addicted, if I cannot screentime it, I will have to lock him out entirely because I cannot make him stop.
I'm on OSX 10.15.5 with minecraft 1.16.3
> Is anyone willing to test this in the community?
Sure, I'd be happy to help test whatever can help this work.
I too have this issue. I need my son to be able to use his MacBook for school, but he just ends up playing Minecraft! My only choice is to remove the game as I have no other way of preventing access to it. Screentime works so well for everything else!
Hi, I am a complete beginner in AppleScript programming and have been using Apple devices for only a year. However, I have some experience with PowerShell and earlier with VB programming. For me, I solved the problem by writing an AppleScript that writes the playtime of the current day and week into the Apple menu on the desktop so that my son can always keep track of his times even in maximized mode. When the weekly time limit is reached, everything related to Minecraft is ruthlessly shut down! This is completely independent of the Java version but, of course, not configurable via "Apple Screen Time." The script runs as "root" and should not be manipulable. I've spent about 30 hours on it so far, as I am a total beginner and had to search the internet for even the most basic methods, syntax, etc. I don't plan to maintain or adapt it for others, but if someone has rudimentary knowledge of AppleScript, I'm happy to share it – just let me know! Just a brief overview from the central check:
„…
tell application "System Events"
set _proc to first process whose frontmost is true
end tell
tell _proc
set _res to displayed name
set _prop to properties as list
end tell
if _res = "java" then
repeat with i from 1 to count _prop
set _aItem to item i of _prop as list
set _aItem to _aItem as string
if _aItem contains “minecraft” then
set _res to _aItem
exit repeat
end if
end repeat
end if
**
if _res contains “minecraft” then
…“
Thanks so much for sharing this! That's quite a fix - it's been such a thorn in my side I'd love to get the details on how you did it - Do you have a google doc or something with the rest of the code?
An attachment with a disallowed file extension has been removed from this ticket.
Executable files and documents are not allowed as attachments.
Please attach crash reports, log files and screenshots as they are instead of pasting them into a document.
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit
Hi jkilcline (John),
I added the script here (mc.scpt) https://drive.google.com/file/d/1OXk-nwTKWpbGFRyB0PU9Pd9LCX26LCze/view?usp=drive_link.
I'am not a programmer and I'am sure he would do it much more better, but I'am happy that I could make it myself working!
It is of course necessary to change all paths!
It is also important to configure the roots crontab and to set the rights!
I added also a bash-script to restart the program if it has stopped working.
Here the additional Infos:
Rights:
-rwxr-xr-x 1 jhopgei staff 107 Jan 13 10:13 mc.bash
-rwxrwxr-x@ 1 jhopgei staff 41646 Jan 15 12:12 mc.scpt
Bash-script (mc.bash):
#!/usr/bin/env bash
if ! (pgrep -f mc.scp)
then
osascript /Users/jhopgei/mc.scpt
fi
Crontab (root!):
@reboot sleep 30 && osascript /Users/jhopgei/mc.scpt
* * * * * /Users/jhopgei/mc.bash
Here how it looks like:
You can configure "View > Always Show Toolbar in Full Screen" if you want.
Cheers,
Jürgen
@migrated Thanks a milion for that script, Jürgen. It gave me a head start, as I did not think of using the built-ins that AppleScript gives us. I took the script and made it a bit more friendly to work with for end users, giving it documentation, step by step install steps and some new features.
https://github.com/fatso83/minecraft-monitor
Basically, for anyone to use the script, you only need two steps:
Download and unzip the folder
Run
./install.sh
I extracted the config into its own file, so it’s easy to reconfigure.
the problem is that you haven't restricted the game itself, you need to restrict the actual game.