Skip to content

Fix #3375, #3224 and #2811#3415

Merged
QiuShui1012 merged 5 commits intoAnvil-Dev:dev/1.21/1.6from
Vo1dExr:fix/1.21/1.6
Apr 20, 2026
Merged

Fix #3375, #3224 and #2811#3415
QiuShui1012 merged 5 commits intoAnvil-Dev:dev/1.21/1.6from
Vo1dExr:fix/1.21/1.6

Conversation

@Vo1dExr
Copy link
Copy Markdown
Contributor

@Vo1dExr Vo1dExr commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two gameplay bugs related to heatable blocks and anvil hammer interactions, and adjusts frost metal block tag behavior to allow Wither/Ender Dragon destruction.

Changes:

  • Fixes anvil hammer left-click behavior after using items in the offhand by no longer relying on Player#getUsedItemHand().
  • Prevents TNT ignition from normal-tier heatable blocks (e.g., normal tungsten), while still igniting TNT for hotter tiers (and when placing a hot block adjacent to TNT).
  • Removes WITHER_IMMUNE / DRAGON_IMMUNE tags from frost metal-related blocks so they are no longer immune.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/main/java/dev/dubhe/anvilcraft/item/AnvilHammerItem.java Adjusts left-click anvil hammer logic to use main-hand item/slot instead of last-used hand.
src/main/java/dev/dubhe/anvilcraft/init/block/ModBlocks.java Removes Wither/Dragon immunity tags from frost metal blocks; minor formatting adjustments.
src/main/java/dev/dubhe/anvilcraft/block/heatable/HeatableBlock.java Gates TNT ignition logic on heat tier (non-NORMAL), and adds ignition check on placement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/dev/dubhe/anvilcraft/block/heatable/HeatableBlock.java Outdated
Comment thread src/main/java/dev/dubhe/anvilcraft/item/AnvilHammerItem.java
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/dev/dubhe/anvilcraft/block/PulseGeneratorBlock.java Outdated
Comment thread src/main/java/dev/dubhe/anvilcraft/block/PulseGeneratorBlock.java Outdated
@Vo1dExr Vo1dExr marked this pull request as draft April 16, 2026 17:19
@Vo1dExr Vo1dExr marked this pull request as ready for review April 16, 2026 20:37
@QiuShui1012 QiuShui1012 changed the title Fix #3375 and #2811 Fix #3375, #3224 and #2811 Apr 20, 2026
@QiuShui1012 QiuShui1012 merged commit 6b8d94d into Anvil-Dev:dev/1.21/1.6 Apr 20, 2026
2 checks passed
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.

[Bug] 常温钨块会点燃TNT [Bug] 脉冲发生器x0循环输出信号错误 [Bug] 副手使用某些物品后铁砧锤左键功能失效

3 participants