Links
Tags
Creators
Details
Licensed GPL-3.0-or-later
Published 11 months ago
Updated last month
All versions
2.0.0+mod
Release
ReplaceBlock_v2.0.0_26.1-26.3last month 85
Compatibility
Minecraft: Java Edition
26.3
26.2
26.1.x
Platforms
Fabric
Forge
NeoForge
Quilt
Supported environments
Server-side
Singleplayer
Required content
Any compatible version
Changes
- 支持的 Minecraft 版本范围由 1.20.3-1.21.10 扩展至 1.20.3-26.3
- 移除配置项
selector,遍历起点改为replace_block:api/execute的命令执行位置(由at更新) replace_block:api/execute现在会返回替换成功的方块总数,未成功替换任何区块时返回 fail- 内部函数统一移入
private/目录,外部只需依赖api/下的入口 - 更新 README 中的调用示例与配置说明,并补充返回值文档
- Expanded the supported Minecraft version range from 1.20.3-1.21.10 to 1.20.3-26.3
- Removed the
selectorconfiguration option; traversal now starts from the command execution position (updated byat) ofreplace_block:api/execute replace_block:api/executenow returns the total number of blocks successfully replaced, or fail when no chunk was replaced- Internal functions are now grouped under
private/, so external callers only need the entry points underapi/ - Updated the usage examples and configuration description in the README, and documented the return value
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:lr0gX2RY:chuIGNJh"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:lr0gX2RY:chuIGNJh"
}

