目前你需要在文件中手动重置会话,此问题即将修复
模组名称:SessionControl
模组概述:
适用于 Minecraft 的 SessionControl 模组旨在帮助玩家管理和限制其每日游戏时间,确保他们能够休息并不超过预期的游玩时长。该模组对于家长、监护人或任何希望更有效地管理屏幕时间的人来说尤其有用。该模组提供了设置每日会话限制、追踪已玩游戏时间以及在一定时长后锁定游戏的功能。一旦达到限制,模组将显示锁定屏幕,并阻止继续游戏,直到第二天。此外,该模组允许玩家在会话结束后设定一个计划要做的事情的提醒。
主要功能:
-
会话时间限制:
- 玩家可以设置每天具体的游戏时间(以分钟为单位)。这有助于管理整体游戏时间。
- 模组会自会话开始以来经过的时间进行追踪,并将其与会话持续时间进行比较。
- 一旦设定的时间用完,游戏会自动锁定,并在第二天之前阻止进一步的游戏。
-
锁定屏幕:
- 当日会话时间结束后,玩家会看到一个 LockoutScreen(锁定屏幕),告知他们当天的游戏时间已超出限制。
- 屏幕上会显示一条友好的提醒,建议玩家休息、放松或做其他事情(原因可自定义)。
- 屏幕上还提供 Quit Game(退出游戏)按钮,玩家可以点击立即退出 Minecraft。
-
可自定义的会话理由:
- 在开始会话前,玩家可以为他们的游戏会话设置一个自定义理由,例如“我会玩 30 分钟然后看书”。
- 这个理由会被保存并在锁定屏幕上显示,作为他们在玩游戏后打算做什么的提醒。
-
单人模式的延迟锁定:
- 如果玩家处于单人世界模式中,他们可能会在锁定屏幕出现时经历短暂的延迟。模组将通过确保玩家在短暂延迟后被返回到 TitleScreen(标题屏幕)或 LockoutScreen(锁定屏幕)来平滑处理这一过渡。
-
持久化设置:
- 会话持续时间、锁定状态和会话理由的设置会被保存到磁盘上的 properties file(属性文件)
sessioncontrol.properties 中,确保玩家的会话偏好在游戏会话之间得以保留。
- 这使得玩家即使在重新启动 Minecraft 后,也能恢复被锁定的会话或从上次中断的地方继续。
-
可配置的设置:
- 玩家可以使用滑块组件设置所需的会话持续时间(以分钟为单位)。
- 游戏理由可以输入到文本字段中,允许为每次会话进行自定义。
- 一旦会话开始,模组会记住游戏时间和理由,并在会话结束时使用这些数据。
-
无外部依赖:
- 该模组不依赖像 Gson 或 org.json 这样的外部库。相反,它使用 Java 原生的 java.util.Properties 类,使其轻量且易于使用。
-
非侵入式游戏体验:
- 该模组与 Minecraft 的用户界面无缝集成。它仅在指定的会话时间过后才会触发锁定屏幕。
- 在正常游戏时间内,没有任何干扰。只有在达到时间限制时,玩家才会被提示休息。
工作原理:
-
会话开始:
- 当玩家首次启动游戏时,如果他们当天尚未被锁定,会出现一个提示屏幕,要求他们设置会话持续时间(从一系列分钟数中选择)以及一个自定义的游戏理由。
- 设置好持续时间和理由后,玩家的会话即开始。
-
追踪会话时间:
- 模组会记录会话的开始时间。每次客户端刻度发生(在每个游戏循环中),它都会检查自会话开始以来经过的时间。
- 如果经过的时间超过了设定的会话持续时间,游戏将锁定玩家并显示 LockoutScreen(锁定屏幕)。
-
锁定屏幕:
- 锁定屏幕是一个特殊的屏幕,在超过会话时间后出现。
- 屏幕上显示一条消息,通知玩家他们的游戏时间已结束,并附带他们之前设置的自定义理由。
- 玩家可以选择立即退出游戏。
-
会话持久性:
- 模组会将会话数据(如会话开始时间、持续时间和锁定状态)保存到 Minecraft 安装目录
config/ 中的属性文件中。
- 这确保了当玩家重新启动游戏时,他们的会话数据得以保留,并且锁定机制会得到适当执行。
-
多平台支持:
- 该模组适用于单人模式和多人模式。
- 在单人模式中,会话结束后会显示锁定屏幕。
- 在多人模式中,模组会将玩家从服务器断开连接并显示锁定屏幕。
为什么使用此模组:
- 时间管理:它帮助玩家管理屏幕时间,特别适用于儿童或任何在游戏中容易忘记时间的玩家。
- 健康益处:通过强制执行休息,该模组鼓励健康的游戏习惯,减少连续长时间游戏。
- 专注力:玩家可以为游戏会话设定目标(例如,“我会玩 30 分钟 Minecraft 然后看书”),帮助他们平衡游戏与其他活动。
- 自定义:玩家可以完全控制会话持续时间,并根据个人喜好定制体验。
- 易于设置:由于没有外部依赖,该模组轻量级且易于安装和配置。
安装方法:
- 安装 Fabric:要使用此模组,你需要 Fabric 模组加载器。如果你尚未安装,可以从官方网站下载并安装。
- 下载模组:从可信的模组仓库(例如 CurseForge、Modrinth)下载 SessionControl 模组的 .jar 文件。
- 将模组放入 mods 文件夹:将下载的 .jar 文件放入你的 Minecraft 目录下的
mods/ 文件夹中。
- 运行 Minecraft:使用 Fabric 模组加载器启动 Minecraft,SessionControl 模组应会自动加载。
未来更新与功能:
- 更多自定义选项:未来的更新可能会包含更精细的控制选项,例如根据星期几设置不同的锁定时间,或支持多个会话限制。
- 图形增强:改进锁定屏幕的用户界面,使其更具互动性和色彩丰富性。
- 多账号支持:添加对不同 Minecraft 账号的支持,允许在同一安装中为不同账号设置不同的会话限制。
总结:
SessionControl 模组提供了一种有效、可定制且轻量级的解决方案,用于管理你在 Minecraft 中的每日游戏时间。通过设定每日会话上限、定期休息并确保游戏时间不过度失控,该模组可以帮助你维持游戏与其他活动之间的健康平衡。凭借其用户友好的界面以及跨游戏会话的持久化功能,这款模组非常适合所有年龄段的玩家,帮助他们在享受 Minecraft 体验的同时避免过度沉迷。
CURRENTLY YOU HAVE TO MANUALLY RESET THE SESSION IN THE FILES, THIS WILL BE FIXED SOON
Mod Name: SessionControl
Mod Overview:
The SessionControl mod for Minecraft is designed to help players manage and limit their daily gameplay time, ensuring that they take breaks and don't exceed their desired playtime. This mod can be particularly useful for parents, guardians, or anyone who wants to manage their screen time more effectively. The mod provides functionality to set a daily session limit, track the time spent playing, and lock the game after a certain period of play. Once the limit is reached, the mod will display a lockout screen and prevent further play until the next day. Additionally, the mod allows players to set a reminder of what they plan to do after their session ends.
Key Features:
-
Session Time Limit:
- Players can set a specific amount of time (in minutes) to play each day. This helps manage the overall gameplay time.
- The mod will track the time elapsed since the session started and compare it with the session duration.
- Once the set time is up, the game automatically locks and prevents further play until the next day.
-
Lockout Screen:
- When the daily session time is over, the player is shown a LockoutScreen, which tells them that they have exceeded their playtime limit for the day.
- The screen displays a friendly reminder to take a break, rest, or do something else (customizable reason).
- The screen also provides a Quit Game button that the player can click to exit Minecraft immediately.
-
Customizable Session Reason:
- Before starting a session, players can set a custom reason for their play session, such as "I will play for 30 minutes and then read a book."
- This reason is stored and displayed in the lockout screen as a reminder of what they planned to do after playing.
-
Delayed Lockout for Singleplayer:
- If the player is in a singleplayer world, they may experience a delay in the lockout screen. The mod will handle this transition smoothly by ensuring the player is returned to the TitleScreen or the LockoutScreen after a short delay.
-
Persistent Settings:
- The settings for the session duration, lock status, and session reason are saved to a properties file on disk (
sessioncontrol.properties), ensuring that the player's session preferences are preserved between game sessions.
- This allows players to resume their locked session or continue where they left off even after restarting Minecraft.
-
Configurable Settings:
- Players can set their desired session duration (in minutes) using a slider widget.
- The reason for playing can be typed into a text field, allowing customization for each session.
- Once the session starts, the mod remembers the playtime and reason and uses it when the session ends.
-
No External Dependencies:
- The mod does not rely on external libraries like Gson or org.json. Instead, it uses the java.util.Properties class, which is native to Java, making it lightweight and easy to use.
-
Non-Intrusive Gameplay:
- The mod integrates seamlessly with Minecraft’s user interface. It only triggers the lockout screen after the designated session time has passed.
- During normal playtime, there is no interruption. Only when the time limit is reached will the player be prompted to take a break.
How it Works:
-
Session Start:
- When the player first launches the game, if they haven't been locked out for the day, a prompt screen appears asking them to set a session duration (from a range of minutes) and a custom reason for playing.
- After setting the duration and reason, the player’s session begins.
-
Tracking Session Time:
- The mod tracks the start time of the session. Each time a client tick occurs (on every game loop), it checks the time elapsed since the session began.
- If the elapsed time exceeds the set session duration, the game locks the player out and displays the LockoutScreen.
-
Lockout Screen:
- The lockout screen is a special screen that appears after the session time has been exceeded.
- The screen shows a message informing the player that their playtime is over, along with a custom reason they set earlier.
- The player is provided with an option to quit the game immediately.
-
Session Persistence:
- The mod saves session data (such as the session start time, duration, and lock status) to a properties file in the
config/ directory of the Minecraft installation.
- This ensures that when the player restarts the game, their session data is preserved, and the lockout is enforced appropriately.
-
Multi-Platform Support:
- This mod works for both singleplayer and multiplayer modes.
- In singleplayer, the lockout screen is displayed once the session ends.
- In multiplayer, the mod will disconnect the player from the server and show the lockout screen.
Why Use This Mod:
- Time Management: It helps players manage their screen time, especially useful for children or anyone who tends to lose track of time while playing.
- Health Benefits: By enforcing breaks, the mod encourages healthy gaming habits, reducing long hours of continuous play.
- Focus: Players can set a goal for their gaming session (e.g., "I will play Minecraft for 30 minutes and then read a book"), helping them balance gaming with other activities.
- Customization: The player has full control over the session duration and can tailor the experience to suit their preferences.
- Easy Setup: With no external dependencies, this mod is lightweight and easy to install and configure.
Installation:
- Install Fabric: To use this mod, you need the Fabric mod loader. If you don’t have it installed yet, you can download and install it from the official website.
- Download the Mod: Download the SessionControl mod .jar file from a trusted mod repository (e.g., CurseForge, Modrinth).
- Place the Mod in the Mods Folder: Place the downloaded .jar file in the
mods/ folder of your Minecraft directory.
- Run Minecraft: Launch Minecraft with the Fabric mod loader, and the SessionControl mod should automatically load.
Future Updates and Features:
- More Customization: Future updates may include more granular controls, such as different lockout times based on the day of the week or multiple session limits.
- Graphical Enhancements: Improving the UI of the lockout screen to be more interactive and colorful.
- Multi-Account Support: Adding support for different session limits for different Minecraft accounts on the same installation.
Conclusion:
The SessionControl mod provides an effective, customizable, and lightweight solution to manage your daily gameplay time in Minecraft. By setting daily session limits, taking regular breaks, and ensuring that your gameplay doesn't get out of hand, this mod can help you maintain a healthy balance between gaming and other activities. With its user-friendly interface and persistence between game sessions, this mod is perfect for players of all ages who want to make sure they don’t overdo it while enjoying their Minecraft experience.
评论 0
登录后参与评分
还没有评论,来抢沙发吧