Skip to content

移動到1.21.1 - #1

Open
Aolkzyeoer wants to merge 2 commits into
DEC-Development:mainfrom
Aolkzyeoer:migrate-1.21.1
Open

移動到1.21.1#1
Aolkzyeoer wants to merge 2 commits into
DEC-Development:mainfrom
Aolkzyeoer:migrate-1.21.1

Conversation

@Aolkzyeoer

Copy link
Copy Markdown

移動到1.21.1

将模组从 1.21.4+ 迁移到 Minecraft 1.21.1 (NeoForge 21.1.247)。

主要变更

  • 适配 1.21.1 API:AttachmentType.Builder、ValueInput/ValueOutput、hurtServer、MobEffects 等
  • 工具/护甲材质适配:新增 ToolMaterial/ArmorMaterial 兼容层对接 1.21.1 的 Tier/ArmorItem 体系
  • 投掷物惯性:移除 ThrowableProjectileMixin,改用 CustomInertiaProjectile 基类重写 applyGravity() 实现
  • Mixin 适配 1.21.1 签名:getFov 返回 double、Camera.setup(BlockGetter,...)、getPosition()、ItemCooldowns 按 Item 键控
  • 渲染适配:移除 1.21.4 RenderState,改用 1.21.1 直接渲染(PoseStack + MultiBufferSource)
  • 移除 JPMS 分裂包 shim(net/),改用 accesstransformer.cfg
  • 注册表绑定修复:物品属性延迟到 RegisterEvent 求值
  • 新增 datagen 产物 src/generated/resources(模型/贴图引用/语言/战利品表/标签),并补全 46 个 BlockItem 物品模型
  • neoforge.mods.toml 补充 modLoader/loaderVersion 必填字段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant