WeatherCore
WeatherCore 是一个侵入式核心库模组,它彻底重写了 Minecraft 硬编码的天气系统,替换为一个灵活的天气系统,并支持注册新的天气类型。
对于用户
单独安装此模组不会改变原版天气,但由于将硬编码的天气计时器替换为复杂的天气管理系统,可能会影响 Minecraft 选择下一个天气的机制。
仅在依赖项要求时才安装 WeatherCore。
主要功能
- 自定义天气注册表:注册自定义天气条件。
- 天气管理:用管理系统取代原版的简单计时器。
- 作用域(Scoping):作用域定义了天气条件在关卡内影响的区域。天气本身并不“知道”自己属于哪个作用域,因此任何自定义天气条件都可以被召唤至全局或居中位置。
- 替换了
/weather 命令,并添加了 /toggledownfall 命令。
天气作用域
使用此库创建的任意自定义天气条件在被召唤时都将拥有一个作用域。它可以是:
- 全局作用域(全维度)
- 居中
- 非常适合事件,例如核爆后的辐射尘或激活神秘方尖碑后的诅咒迷雾。
- 适合让玩家装饰他们的建筑
- 也许适合龙卷风?为什么不直接使用实体呢?
开发
WeatherCore 目前处于积极开发阶段,且主要专用于我自己的项目。我正在寻求其他开发者的反馈,以使该模组更具通用性,并确保它能与其他模组平滑集成。
如果你想使用 WeatherCore,请使用来自 Modrinth Maven 的工件:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
dependencies {
modImplementation "maven.modrinth:weathercore:mc1.21.1-0.1.0"
}
致谢
WeatherCore 和 Weather Extended 的图标由 anyputer 制作
WeatherCore
WeatherCore is an intrusive core library mod that overhauls Minecraft's hardcoded weather system, replacing it with a flexible weather system with the possibility of registering new weather types.
For users
Installed alone, this mod doesn't alter vanilla weather, but might alter the way Minecraft choose its next weather due to replacing the hardcoded weather timers with a complex weather management system.
Only install WeatherCore if a dependency requires it.
Key Features
- Custom weather registry: Register custom weather conditions.
- Weather management: Replaces vanilla's basic timers with a management system.
- Scoping: A scope defines the zones a weather condition affects inside a level. Weather themselves are not "aware" of what scopes they own so any custom weather conditions can be summoned globally or centered.
- Replaces
/weather command and adds a /toggledownfall command.
Weather scopes
Any custom weather condition created with this library will own a scope when summoned. It can either be:
- Global Scope (dimension wide)
- Perfect for vanilla style weathers
- Affects the entire dimension
- Centered
- Ideal for events, like a fallout after a nuclear explosion or a cursed fog after activating a mysterious monolith.
- Good for letting players decorate their builds
- Maybe good for tornadoes? Why not use entities instead?
Development
WeatherCore is currently under active development and is mostly bespoke to my own projects. I am looking for feedback from other developers to make the mod more universally useful and ensure it integrates smoothly with other mods.
If you want to use WeatherCore, use the artifact from Modrinth's maven:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
dependencies {
modImplementation "maven.modrinth:weathercore:mc1.21.1-0.1.0"
}
Credits
The icon of WeatherCore and Weather Extended is made by anyputer
评论 0
登录后参与评分
还没有评论,来抢沙发吧