1.0.4-neoforge
Compatibility
Required content
Changes
LuckyBlock TACZ 1.0.4 — NeoForge 1.21.1
Minecraft 1.21.1 · NeoForge
English
Overview
LuckyBlock TACZ is a lightweight lucky-block add-on for TaCZ. It does not require the original Lucky Block mod. Break the block to roll a random TaCZ firearm together with perfectly matched ammo, ready to fire.
This is the first stable (non-beta) build of the NeoForge 1.21.1 line.
Fixed
- Dropped ammo no longer scatters as single rounds. Ammo was dropping one round per item entity and only stacked after picking it up and dropping it again. From 1.21 the stack limit lives in the
MAX_STACK_SIZEdata component rather than on the item itself, and TaCZ only writes it insidesetAmmoId— writing the raw NBT directly left the component at the item default of 1, so every drop was clamped to a single round. Drops now read the real limit from the ammo index (60 for 7.62x39 and 9mm, 50 for .300 BLK, 36 for 12 gauge, 30 for .50 BMG, 6 for RPG rockets) and write it into the component. The value is cached per ammo ID. - Guns no longer spawn stuck in semi-auto. Every dropped gun used to arrive in semi-auto mode regardless of its real fire mode, and only worked normally after cycling the fire selector by hand. TaCZ keeps the fire mode in the
GunFireModetag and falls back toUNKNOWN— treated as semi-auto — when it is absent. Drops now write the gun's own default fire mode (the first entry of itsfire_modelist), so an AK47 arrives in full auto and a bolt-action rifle arrives in semi-auto. - The floating item in the block no longer disappears. The renderer relied on the default block-entity visibility, so the spinning item could be culled while you were still looking at the block; toggling the render option off and on forced it back. It now uses an explicit 256-block view distance, its own distance check and an expanded render bounding box.
Added
- Simplified Chinese localization (
zh_cn.json). - Loot ID validation on every build. A
validateLootIdsGradle task cross-checks every gun, attachment, consumable, melee weapon and throwable ID in the loot table against the IDs actually shipped by TaCZ and its add-ons. It caught three entries that referenced items which do not exist and would have dropped nothing. - Metadata and packaging: issue tracker URL, mod logo, and a
/lbtaczcommand tree withinfo,reload,stats,giveandlist, plusLuckyBlockApi.registerCommandExtensionso other mods can attach their own subcommands.
Carried over
Config file with hot reload, five rarity tiers with two-layer weighting, multi-block jackpot, five advancements, block-entity renderer, 70 guns with matched ammo, 129 attachments, consumables and melee weapons from Green Grape Tactical Gear, the 11 Delta WT knives, underground ore generation, chest loot tables, a crafting recipe and a shrine structure.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1 or newer
- TaCZ 1.2.0 or newer (required)
Installing
Drop the jar into your mods folder alongside TaCZ. On an existing world no reset is needed.
中文
简介
LuckyBlock TACZ 是一个轻量的 TaCZ 幸运方块附属模组,不需要原版幸运方块模组。挖掉方块即可随机掉落一把 TaCZ 枪械,连同完全匹配的弹药一起掉落,拿到就能开火。
这是 NeoForge 1.21.1 线的第一个稳定版(非 Beta)。
修复
- 掉落的子弹不再散成一颗一颗。 以前每个弹药品实体只掉 1 发,必须先捡起来再丢出去才会合并。1.21 起堆叠上限存在
MAX_STACK_SIZE数据组件里而不是物品自身,而 TaCZ 只在setAmmoId内部写这个组件——直接写原始 NBT 会让组件停在物品默认值 1,于是每次掉落都被裁成一发。现在掉落时从弹药索引读取真实上限(7.62x39 与 9mm 为 60、.300 BLK 为 50、12 号霰弹为 36、.50 BMG 为 30、RPG 火箭弹为 6)并写进组件。结果按弹药 ID 缓存。 - 枪械不再默认卡在单发。 以前掉落的枪无论真实开火模式是什么都表现为单发,必须手动切一次开火模式才恢复正常。TaCZ 把开火模式存在
GunFireMode标签里,缺失时退回UNKNOWN(按半自动处理)。现在掉落时直接写入枪械自身的默认开火模式(fire_mode列表第一项),AK47 掉落即全自动、栓动步枪掉落即单发。 - 方块中间的悬浮物品不再消失。 渲染器此前依赖方块实体的默认可见距离,导致你正对着方块时悬浮枪也可能被裁掉不画;把渲染选项关掉再打开才会恢复。现在改用显式的 256 格可见距离、自带距离判定,并扩大了渲染包围盒。
新增
- 简体中文本地化(
zh_cn.json)。 - 每次构建校验掉落 ID。
validateLootIdsGradle 任务会把掉落表里每个枪械、配件、消耗品、近战武器与投掷物 ID 与 TaCZ 及其附属实际提供的 ID 逐一比对。它抓出过 3 条指向不存在物品、实际会掉落空气的条目。 - 元数据与打包:问题反馈链接、模组图标,以及
/lbtacz命令树(info、reload、stats、give、list),并提供LuckyBlockApi.registerCommandExtension供其他模组挂载子命令。
沿用
带热重载的配置文件、五档稀有度两层加权、多方块大奖、五个进度、方块实体渲染、70 把枪械与匹配弹药、129 个配件、绿葡萄战术装备的消耗品与近战武器、11 把三角洲刀、地下矿脉生成、箱子战利品表、合成配方与神殿结构。
前置要求
- Minecraft 1.21.1
- NeoForge 21.1 或更高
- TaCZ 1.2.0 或更高(必需)
安装
把 jar 与 TaCZ 一起放进 mods 文件夹即可。已有存档无需重置。
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:J1g7TRaI:t34RvqHE"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:J1g7TRaI:t34RvqHE"
}

