All versions
1.0.4.3
Release
Tuanzi'sMod 1.0.4.34 months ago 25
Compatibility
Minecraft: Java Edition
26.1.x
Platform
Fabric
Supported environments
Client and server
Changes
Tuanzi's Mod 1.0.4.3 更新日志
修复
- 修复监守者 (Warden) 死亡掉落经验不为 275 点的问题:
- 修复:将 [WardenExperienceMixin.java] 的注入目标从
LivingEntity.class修改为Mob.class。由于原版 Minecraft 中Mob.class重写了getBaseExperienceReward经验掉落方法,对LivingEntity的注入在所有怪物(含 Warden)身上皆被继承覆盖机制所屏蔽。 - 安全性与逻辑严谨性双重优化:为了避免直接在
Mob子类中影子声明(@Shadow)继承字段引发未解析字段错误(Unresolved field),我们设计并创建了 [LivingEntityAccessor.java]访问器。 - 避开同名 Overwrite 冲突:为了避开由于 Mixin 代理方法名与原版中已声明方法同名而触发的重写限制异常(
InvalidMixinException),我们将访问器方法重命名为模组专属的唯一名称getTuanziLastHurtByPlayerMemoryTime(),在tuanzis_mod.mixins.json中完整注册,并在此基础上完美实现了与原版lastHurtByPlayerMemoryTime > 0判定 100% 完全等价且无安全风险的最严密业务逻辑判定。
- 修复:将 [WardenExperienceMixin.java] 的注入目标从
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:zJPSl9H6:LYzkL7sY"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:zJPSl9H6:LYzkL7sY"
}

