mojira.dev
MC-130194

Unable to combine items with enchanted book on anvil.

Fails to add compatible enchantments to items from enchanted books using anvil.

Tested in creative and survival (snapshot 18w21a). Have not exhaustively tested all possible combinations.

Screenshots show how to reproduce error.

Environment

Details:
Minecraft Version: 18w21a
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 668401424 bytes (637 MB) / 1728053248 bytes (1648 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
Launched Version: 18w21a
LWJGL: 3.1.2 build 29
OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.6.0 NVIDIA 388.13, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: vanilla
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 4x Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz

Linked issues

Attachments

Comments 2

I think the bug is not caused by the anvil itself! Enchantments in general are broken.

Try this command:

/give @s minecraft:trident{Damage:0,ench:[{id:68,lvl:1}]} 1

 

It gives you a normal, unenchanted trident. (My command may be incorrect, please tell me if so)

migrated

(Unassigned)

Unconfirmed

Minecraft 18w21a

Retrieved