Craftoria

Craftoria

816k Downloads

[Bug Report]: Interaction between Chainsaw enchantment and Builder planting saplings can instantly break unbreakable axes

James103 opened this issue ยท 4 comments

commented

Modpack Version

1.23.0

Describe your issue.

When an axe with the Chainsaw enchantment is used to chop down a tree, while simultaneously saplings are being replanted to regrow said tree in the same chunk / spot, the Chainsaw axe has a chance to instantly break, even when it is unbreakable. This bypasses the "items broken" trigger and directly clears the axe from the slot as if the command item replace entity @s [axe's slot] with air was used.

I found this issue while testing a tree farm where one RFTools builder automatically harvested trees while another automatically planted saplings, both in a loop.

Crash Report

No response

Latest Log

No response

Have you modified the modpack?

Yes

User Modifications

Added mods:
iris-neoforge-1.8.8+mc1.21.1.jar
monocle-0.2.1.ms.jar
NoChatReports-NEOFORGE-1.21.1-v2.9.1.jar
toms_storage-1.21-2.1.3.jar
Xaeros_Minimap_25.2.10_NeoForge_1.21.jar
XaerosWorldMap_1.39.12_NeoForge_1.21.jar

Removed mods:
ImmersiveUI-NEOFORGE-0.3.0.jar
irons_apothic_invaders_1.0.0.jar
voicechat-neoforge-1.21.1-2.5.35.jar
watut-neoforge-1.21.0-1.2.7.jar

Updated mods:
apotheosis (8.3.6 > 8.4.0)
apothic_enchanting (1.4.4 > 1.5.0)
gateways (5.0.4 > 5.1.0)
placebo (9.9.0 > 9.9.1)

Did the issue happen in singleplayer or on a server?

Singleplayer

Discord Username

No response

commented

if this is an interaction issue with the axe being used in an rftools builder, that would be something that should be reported to the rftools mod dev

commented

At no point did I place or use the axe in the RFTools builder; the axe, and spare copies of it, were in my inventory or personal backpack the entire time and nowhere else.

To clarify, it is me that is using the axe to chop down trees with the Chainsaw enchantment, while an RFTools builder is replanting saplings.

commented

At no point did I place or use the axe in the RFTools builder; the axe, and spare copies of it, were in my inventory or personal backpack the entire time and nowhere else.

To clarify, it is me that is using the axe to chop down trees with the Chainsaw enchantment, while an RFTools builder is replanting saplings.

Ah, that makes more sense to me. This would be an issue with how apothic enchanting works. To clarify, are you saying this happens when the sapling grows while the chainsaw enchant is still mining logs? or is placing it enough? I expect this is just filling more logs into the queue to be broken causing infinite breaking to occur.

i would suggest reporting the issue here https://github.com/Shadows-of-Fire/Apothic-Enchanting/issues

commented

I was able to get a minimal reproduction test case for this:

  1. Place down an RFTools Builder and power it.
  2. Place down saplings on dirt for any tree. I originally found this with 2x2 spruce trees, but this also works for any 1x1 tree.
  3. Place down a barrel on top of the builder and fill it with any block, including saplings but also dirt, stone, etc.
  4. Use a Shape Card to capture the block where the sapling is. Install the resulting Shape Card in the builder.
  5. Grow the tree.
  6. Use an axe with the Chainsaw enchantment to chop down the tree starting from its base (where the sapling was).
  7. Activate the Builder. As soon as it places a block where the sapling was, the axe instantly breaks, regardless of remaining or total durability, the Unbreaking enchantment, whether it is marked Unbreakable, and other NBT data about the axe.

Edit: It does not matter exactly where the tree was harvested, where the Builder is, and where the Builder is placing blocks; if all three are close enough (within a few chunks of each other), the axe will have a chance to instantly break as described above when the builder places blocks.