有个傻逼的问题,但是我一直没法解决,如下
想注册一个原版存在的附魔,重写部分内容(1.16.5 fabric)
Registry.register(Registry.ENCHANTMENT, new Identifier("minecraft", "sharpness"), QWQ);
提示让我用.set()可是我不知道.set是哪个类里面的方法,有大佬知道的嘛,附上日志
java.lang.RuntimeException: Attempted to register ID ResourceKey[minecraft:enchantment / minecraft:sharpness] at different raw IDs (12, 39)!If you're trying to override an item, use .set(), not .register()!