截图位置
此模组允许通过全局配置文件自定义截图的保存位置。
非常适合使用统一的截图目录。
默认情况下,该模组的配置存储在 Minecraft 实例文件夹之外的全局位置。由于所有实例共用同一份配置,因此只需配置一次即可。
使用方法
下载模组(开发者请参阅下方),启动游戏并加入一个世界,执行 /screenshot-location getConfigLocation 命令以复制配置文件的路径。
将该路径粘贴到你喜欢的文件管理器中打开文件夹,然后在编辑器中打开 main.json 配置文件。
将 enabled 设置为 true 以启用模组。
如果需要,你可以自定义保存位置。可以通过指定名称来使用 用户目录,例如 ${pictureDir} 或 ${homeDir};使用环境变量 ${env:VARIABLE_NAME};以及 JVM 属性 ${jvm:property.name}。
PrismMC 提供了包含实例名称的 INST_NAME 变量,默认配置利用该变量来区分不同实例的截图。
更新配置后,使用 /screenshot-location reloadConfig 命令重新加载配置。
开发者
首先添加我的 Maven 仓库:
repositories {
exclusiveContent {
forRepository {
maven {
name = "OffsetMonkey538"
url = uri("https://maven.offsetmonkey538.top/releases")
}
}
filter {
includeGroupAndSubgroups("top.offsetmonkey538")
}
}
}
然后按以下方式依赖它(适用于 Fabric):
dependencies {
// localRuntime 不会被其他依赖此项目的模块拉取。
localRuntime("top.offsetmonkey538.screenshotlocation:screenshot-location-fabric-26.1:[VERSION]")
}
或者按以下方式依赖它(适用于 NeoForge):
configurations {
named("runtimeClasspath") { extendsFrom(create("localRuntime")) }
}
dependencies {
// localRuntime 不会被其他依赖此项目的模块拉取。
localRuntime("top.offsetmonkey538.screenshotlocation:screenshot-location-neoforge-26.1:[VERSION]")
}
如果你想区分普通游戏启动和开发启动,可以设置 JVM 属性以覆盖默认配置文件:
// NeoForge
neoForge {
runs {
create("client") {
ideName = "${project.name} Client"
systemProperty("top.offsetmonkey538.screenshotlocation.profile", "dev")
systemProperty("example.projectName", project.name) // 在默认配置中作为示例使用
client()
}
}
}
// Fabric
loom {
runs {
named("client") {
name = "${project.name} Client"
runDir("run/client")
vmArg("-Dtop.offsetmonkey538.screenshotlocation.profile=dev")
vmArg("-Dexample.projectName=${project.name}") // 在默认配置中作为示例使用
ideConfigGenerated(true)
}
}
}
JVM 属性
top.offsetmonkey538.screenshotlocation.profile- 覆盖配置中的defaultProfile,可用于在开发环境和普通实例中使用不同的保存位置。top.offsetmonkey538.screenshotlocation.configPath- 覆盖配置目录,也许对某些场景会有用……我确信它肯定有某种用途。
Screenshot Location
This mod allows configuring the location screenshots are saved though a global config.
Useful for using a global screenshots directory.
By default, the config for the mod is stored in a global location outside the Minecraft instance folder. The mod only needs to be configured once, as every instance uses the same config.
Usage
Download the mod (developers see below), launch the game, join a world, run the /screenshot-location getConfigLocation command and copy the path.
Paste that path into your file explorer of choice to open the folder and then open the main.json config file in an editor.
Set enabled to true to enable the mod.
If you want, you can customize the location. You can use user directories by specifying their name like ${pictureDir} or ${homeDir}, environment variables with ${env:VARIABLE_NAME} and jvm properties with ${jvm:property.name}.
PrismMC provides the INST_NAME variable containing the instance name, which is used in the default config to separate screenshots from different instances.
After updating the config, use the /screenshot-location reloadConfig command to reload it.
Developers
First add my maven repository:
repositories {
exclusiveContent {
forRepository {
maven {
name = "OffsetMonkey538"
url = uri("https://maven.offsetmonkey538.top/releases")
}
}
filter {
includeGroupAndSubgroups("top.offsetmonkey538")
}
}
}
Then depend on it like this for Fabric:
dependencies {
// localRuntime won't be pulled in by others depending on this project.
localRuntime("top.offsetmonkey538.screenshotlocation:screenshot-location-fabric-26.1:[VERSION]")
}
or like this for NeoForge:
configurations {
named("runtimeClasspath") { extendsFrom(create("localRuntime")) }
}
dependencies {
// localRuntime won't be pulled in by others depending on this project.
localRuntime("top.offsetmonkey538.screenshotlocation:screenshot-location-neoforge-26.1:[VERSION]")
}
If you want to separate normal game launches and dev launches, you'll want to set jvm properties to overwrite the default profile:
// NeoForge
neoForge {
runs {
create("client") {
ideName = "${project.name} Client"
systemProperty("top.offsetmonkey538.screenshotlocation.profile", "dev")
systemProperty("example.projectName", project.name) // Used as an example in the default config
client()
}
}
}
// Fabric
loom {
runs {
named("client") {
name = "${project.name} Client"
runDir("run/client")
vmArg("-Dtop.offsetmonkey538.screenshotlocation.profile=dev")
vmArg("-Dexample.projectName=${project.name}") // Used as an example in the default config
ideConfigGenerated(true)
}
}
}
JVM Properties
top.offsetmonkey538.screenshotlocation.profile- overridesdefaultProfilefrom the config, useful for having different locations in for example dev and normal instances.top.offsetmonkey538.screenshotlocation.configPath- overrides the config directory, could be useful for... I'm sure it could be useful for something
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Screenshot Location
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Mixin 现在应与 26.1 和 26.2 兼容
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧