A blank Enchant Guide dropped when a Blaze Enchanter moved by Mechanical Piston
6NH3 opened this issue ยท 1 comments
Minecraft Version
1.18.2
Describe the Bug
A blank Enchant Guide will be produced when a Blaze Enchanter moved by Mechanical pPston, making it possible to get infinity Enchant Guide with nothing cost.
Reproduction Steps
- Put down a Blaze Burner and use an Ehchant Guide to change it into a Blaze Enchanter.
- Put down a Mechanical Piston facing towards the enchanter with at least one Piston Extension Pole behind.
- Use any kind of power sourse, for example, an Creative Motor, to activate the Mechanical Piston.
...
Expected Result
A blank Enchant Guide can be seen on the moving enchanter.
Screenshots and Videos
Crash Report or Log
No response
Other Mods
No response
Mod Version
1.1.17
Forge Version
40.2.2
I think it is necessary to document the handling of this bug, which is a very strange phenomenon.
The underlying cause of the bug is that level#getBlockEntity causes the BlockEntity to be resurrected instantly, so other methods of the Block (such as getting the light brightness) cannot depend directly on the BlockEntity, but only on the BlockState.
I think this is a design flaw in the presence of Contraption. When a block is removed from the world, it is not necessarily removed completely, but could be assembled by Contraption.