XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

MyDimension-Lord

【我的世界】我的维度附属模组:维度之主

公开
关注 0 Fork 0 Star 0
README.md

我的维度:维度之主

“我的维度”的独立附属模组,模组 ID 为 mydimension_lord,版本为 1.3.3。包含从主模组移入的筑境权杖、共鸣供材锚、建造与拆除、蓝图、供材管理、撤销与重做,以及一套维主盔甲、界主之刃和维主之镐。

支持 Forge / NeoForge 的 Minecraft 1.20.1、1.21.1、1.21.11。必须同时安装同一 Minecraft 版本、同一加载器的“我的维度” 2.6.x;交付包内含配套的 2.6.1。客户端与服务端均需安装这两个模组,升级时也用 2.6.1 替换旧主模组 JAR,以修复 NeoForge 界面文字模糊。

功能随附属模组安装直接启用,没有 builder.enabled 或物品启用/禁用配置。服务端配置 mydimension_lord-server.toml 仅保留触及距离、操作数量、供材锚权限、历史容量等参数。旧的主模组 mydimension-server.toml 不再控制这些功能。

合成

两个配方均直接生效,各输出 1 个物品,不需要回响碎片、下界合金、烈焰棒、末影之眼、末影箱或磁石。

物品 末影珍珠 哭泣黑曜石 裂罅
筑境权杖 2 2 1
共鸣供材锚 4 4 1

工作台配方中 P = 末影珍珠,C = 哭泣黑曜石,R = 裂罅:

筑境权杖      共鸣供材锚
  P           P C P
C R C         C R C
  P           P C P

原有物品与方块 ID mydimension:realmwright_scepter、mydimension:resonant_supply_anchor、NBT、供材锚索引、建造历史和蓝图文件格式继续沿用。Java 包改为 com.xfestudio.mydimensionlord,网络使用独立通道,避免与主模组重复注册。旧存档升级时同时加载主模组和附属模组即可继续识别这些内容。

操作方式继续沿用:鼠标中键切换建造/拆除,Shift+中键 打开工具菜单,Ctrl+右键 选择蓝图端点,Ctrl+Z / Ctrl+Y 撤销或重做。供材锚潜行贴附于容器表面,再持权杖绑定;蓝图库继续保存在游戏目录的 mydimension/blueprints/。

安装交付包

dist/1.3.3/<加载器>-<Minecraft版本>/ 中有两个 JAR,将其一起放入 mods。从旧版本升级时,同时替换附属模组和主模组,避免重复放置旧 JAR。

如果使用不包含私人心境的主模组,则用该目录 no-private/ 下的主模组 JAR 替换普通主模组;附属模组使用同一个 JAR。普通和 no-private 主模组只选一个。维度内雨滴修复保留在主模组中。

后期装备与获取路线

立体模型与动画

1.2.0 在生成模型前,先用内置 imagegen 工具制作了统一概念图,保存于 design/concepts/lord-gear-concept-v1.png,生成提示词保存于 design/concepts/prompt.txt。模型按该图中的黑曜石、灰银刃口、古金饰边和紫晶结构制作。

  • 界主之刃:分段收尖的实体刃身、嵌入符文的中脊、双侧护手、悬浮核心、独立旋转的碎环与晶体。
  • 维主之镐:具有真实厚度的双尖弧形镐头、金属镐尖、嵌晶长柄、悬浮紫晶和旋转环饰。握持比例适配第一与第三人称。
  • 维主盔甲:头部为露面冠饰,前额、侧面和后脑有护甲,眼睛、鼻子与嘴部保持开放;胸甲、肩甲、臂甲、腿甲和靴子均为分层实体几何。冠上晶体、肩部碎片、胸前与腰部晶体独立浮动,护甲随抬头、走路、潜行与挥臂变化。

六件装备在背包、手持、掉落物和物品展示框中均使用独立 3D 模型;四件盔甲穿戴时使用专用骨骼模型。Minecraft 1.21.11 同时处理背包静态图标缓存,使未附魔装备也持续播放动画。模型使用各版本原生渲染接口,无额外模组依赖;原有合成、附魔、耐久、技能与套装属性沿用。

1.2.1 修正剑与镐的手掌握持基准,两者均以实际握柄中心定位,左右手沿用对称变换。剑按原概念图重做宽银色双刃、收尖的斜切尖端、护手托架与菱形紫晶;剑身与握柄通过固定的连续剑茎相连,核心浮动不会把连接处拉开。

模型描述保存在 design/models/lord-gear.geometry.json。修改 scripts/generate_gear_models.py 后可重新生成物品模型、材质与盔甲骨骼代码;生成脚本要求概念图已经存在。

1.3.1 消除剑根银色构件与剑身的共面重叠,在剑颈与宽刃间增加一格高的中等宽度过渡。剑与镐的碎环每片均径向朝向中心;镐的上方小立方体与碎环同高、同中心,并与下方旋转晶体分离。1.3.2 将第一与第三人称攻击动作恢复为原版,保留武器与盔甲自身的晶体和碎环动画。实际命中时,紫白色劈斩出现在被攻击者朝向攻击者的一侧;普通攻击、横扫命中与蓄力斩均由服务端伤害结算触发。

1.3.3 将剑在第一、第三人称、掉落物及展示框中的尺寸放大至原来的 1.5 倍,按握柄中心缩放;背包图标继续适配物品格。蓄力释放时恢复沿瞄准方向前进的紫白色弧形剑气,大小与飞行距离随蓄力增加,遇到墙壁停止;命中者身上的劈斩仍保留。伤害在释放时结算一次,剑气是视觉表现,不会重复扣血。攻击动作继续使用原版。

配套主模组 2.6.1 修正裂罅、共享心境与访问请求界面的绘制顺序;附属模组修正权杖、蓝图保存与重命名界面。背景模糊先于面板、标题、提示与按钮绘制,避免 NeoForge 1.21.1 再次模糊已画好的文字。1.21.11 使用框架预先绘制的背景,避免重复模糊导致菜单崩溃。主模组的对应源码补丁位于 patches/mydimension-2.6.1-gui.patch。

只有一套 维主盔甲,包含头盔、胸甲、护腿和靴子。穿齐四件后同时获得全部整套效果:生命上限增加 12 点(6 颗心)、额外抗击退 30%、攻击伤害 +8、攻击速度 +0.4、额外伤害减免 50%、移动速度 +20%、摔落伤害降低 60%,并在心境内解锁与创造模式相同的 自由飞行。双击跳跃起飞,再次双击停止,跳跃上升、潜行下降;离开心境或卸下一件即解除套装提供的飞行权限。不会获得创造模式无敌或建造能力,也不会取消原有创造、旁观或其他来源的飞行权限。50% 减伤在伤害结算阶段生效,与原有护甲、附魔和摔落减伤叠加;卸下一件即移除整套效果,反复穿脱不会累加属性。

盔甲 防御值 耐久
维主头盔 6 660
维主胸甲 18 960
维主护腿 14 900
维主靴子 6 780

每件拥有 8 点盔甲韧性和 12% 抗击退。整套共 44 点护甲和 32 点韧性,同时放宽这两个属性的原版上限以确保实际结算生效。维主盔甲、界主之刃、维主之镐、残晶、合金与核心的掉落物耐火,装备与材料使用独立的 mydimension_lord: ID。

界主之刃现在由 维主升级锻造模板 + 下界合金剑 + 1 维主核心 在锻造台获得。未附魔基础攻击伤害由 11 提高到 22,攻击速度 1.4,耐久 2600。主手持刃 按住右键蓄力,松开释放裂界斩,无需潜行;蓄力 2 秒(40 游戏刻) 达到上限,继续持有不会提前释放,也不会继续叠加数值:

蓄力时间 范围 剑气伤害
轻点 / 0 秒 6 格 16
1 秒 10 格 40
2 秒及以上 14 格 64

范围与伤害随时间连续线性增长。剑气覆盖前方 120°,只伤害可见的敌对生物,检查墙体遮挡与队友关系;命中消耗 12 耐久并进入 8 秒冷却,冷却期间不能开始蓄力。空挥保留挥剑声音,不播放目标劈斩,也不消耗耐久或冷却。计算蓄力与伤害由服务端负责,使用原版物品使用/松键同步。

挥刀使用原版动作,不再改变手臂、手腕与上身姿态。蓄力聚集紫晶光点,满蓄力播放提示音,动作栏显示蓄力百分比;松开后以原版挥剑释放裂界斩。每个实际受到伤害的目标身上出现一道带紫色边缘的白色斜向劈斩,效果适应目标体型与攻击者所在方向。

维主之镐的耐久为 4096,由 维主升级锻造模板 + 下界合金镐 + 1 维主核心 在锻造台获得:

  • 瞬间挖掘:可破坏方块在首次攻击即完成挖掘,连续挖掘没有方块间冷却,挖掘疲劳、空中或水下也不需要等待。可正常采集需要镐、斧或铲的方块;基岩等不可破坏方块与领地保护仍按游戏规则处理。
  • 连锁采矿:默认单块模式。主手持镐 潜行 + 右键 开关连锁,状态保存在该镐上。开启后只开采六面相连的同种矿石,一次最多 64 块,范围在起点各轴 8 格内。支持主世界矿石、下界金矿、下界石英和远古残骸,逐块检查权限、消耗正常耐久,不加载未加载的区块。
  • 磁力拾取:主手持镐时,自动拾取 6 格内可见的掉落物,遵守拾取延迟、掉落物归属、背包容量和拾取事件;放在背包或副手时不生效。
  • 心境自修复:主手持镐在任意心境维度中,每秒恢复 1 点耐久,其他维度不生效。铁砧修复使用维主核心。

时运、精准采集、耐久和经验修补继续生效。单块与连锁均使用原版开采掉落流程;切换工具、原始方块未被成功破坏时不会继续开采。

获取步骤:

  1. 用主模组的 裂罅 将敌对生物送入心境,再进入心境由玩家击杀,有 25% 概率掉落 1 个心境残晶;在心境击杀凋灵或末影龙必掉 4 个。各类心境通用,需要玩家或玩家的弹射物完成击杀。心境沿用主模组的自然刷怪限制,所以通过裂罅导入怪物是常规获取路线。
  2. 在工作台无序合成 维主核心:4 心境残晶 + 4 哭泣黑曜石 → 1 维主核心,配方形式与下界合金锭相同,八个材料放入任意格子即可。心境残晶先合成核心再用于装备;残晶与核心均为材料,不提供回血或饱食度效果。
  3. 用 1 下界合金升级锻造模板 + 4 紫水晶碎片 + 4 哭泣黑曜石 制作第一个 维主升级锻造模板;之后用 1 维主模板 + 7 钻石 + 1 哭泣黑曜石 → 2 维主模板 复制。
  4. 锻造台升级:维主模板 + 对应下界合金盔甲 + 维主核心 → 对应维主盔甲;维主模板 + 下界合金剑 + 维主核心 → 界主之刃;维主模板 + 下界合金镐 + 维主核心 → 维主之镐。每次消耗 1 模板与 1 核心,保留基底的附魔、名称、损耗值和自定义数据。

盔甲、剑和镐均可在铁砧用 维主核心 修复,六件装备均可合并附魔;四件盔甲支持原版盔甲纹饰。穿戴、武器与挖掘能力可在各维度使用,材料掉落与装备的自动修复限定在心境。主手持剑或镐、以及身上已穿戴的每件维主盔甲,在心境每秒恢复 1 点耐久;背包内与副手中的装备不自动修复,其他维度不修复。

维主核心已恢复配方与创造栏入口。旧版维主合金保留物品 ID,可无序合成 1 合金 → 1 核心;其旧合成配方和创造栏入口已移除,旧存档中的材料可以继续转换使用。

维主模板首次合成布局(A 紫水晶碎片、C 哭泣黑曜石、T 下界合金升级模板):

A C A
C T C
A C A

模板复制布局(D 钻石、T 维主模板、C 哭泣黑曜石):

D T D
D C D
D D D

构建

此工程位于主模组的同级目录 mydimension-dimension-lord,主工程默认名为 mydimension-template-1.20.1。

安装 Python 3.11+、Java 17 / 21。Forge 1.21.x 另需要 Java 8 和用于 Mavenizer 的 Java 25+;命令行可指定实际安装版本。

py -3 scripts/build_ports.py --gametest

该命令先构建配套主模组,再逐一构建并检查附属模组,最后收集六版本 JAR、SHA256 和验证报告。可通过 --targets forge-1.20.1 选择目标,--offline 使用缓存,--mavenizer-java 26 指定 Mavenizer 的 JDK,--java-installations <JDK路径列表> 补充工具链路径。

仅更改附属模组且已有配套主模组的成功构建时,可加 --addon-only 复用已验证的主模组。材料图标、配方与翻译由 py -3 scripts/generate_equipment_assets.py 生成,该脚本随后调用 generate_gear_models.py 保持新版立体装备模型。

生成工程位于 build/targets/,应编辑 src/、ports/ 或生成脚本。根工程为 Forge 1.20.1;根工程开发运行前先在主工程执行 ./gradlew.bat build createSrgToMcp,再在此工程执行 ./gradlew.bat runClient。用 -PparentProjectDir=<主工程路径> 可调整根工程开发依赖位置。

构建完成后可用 ./scripts/check_clients.ps1 自动启动隔离的开发客户端检查模型与动画;加 -World 检查持杖、供材锚、蓝图投影、穿戴动画、露面冠饰、整套盔甲效果、独立网络通道及镐的连续瞬间开采,同时检查蓄力剑气、命中劈斩、原版挥剑动作、中文菜单,以及生存模式双击跳跃飞行、卸甲与跨维度权限回收。验证会保存装备预览、穿戴和握持、斩击与剑气序列、裂罅与权杖界面截图。它只使用 build/targets/ 下的测试世界,验证代码不会进入发布 JAR。

LICENSE

Creative Commons Legal Code

CC0 1.0 Universal

CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.

Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.

For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.

  1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
  1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
  1. moral rights retained by the original author(s) and/or performer(s);
  2. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
  3. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
  4. rights protecting the extraction, dissemination, use and reuse of data in a Work;
  5. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
  6. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
  1. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.

  2. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.

  3. Limitations and Disclaimers.

  1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
  2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
  3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
  4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.