So I'm coding a mod at the moment, where I'm trying to change the anvil and in general the falling block mechanics.
In order to do that, I needed to replace the vanilla anvil and use my own. Currently I'm doing this by just replacing it in the block registry:
To have access to a private method inside the FallingBlockEntity class, I'm also overriding that one. And everything is working fine, I just get that one line in the output:
[05Apr2020 11:32:50.800] [Client thread/INFO] [net.minecraftforge.registries.GameData/]: Potentially Dangerous alternative prefix `minecraft` for name `anvil`, expected `networks`. This could be a intended override, but in most cases indicates a broken mod.
For some reason I get the same line twice... (and yes, my mod ID is 'networks')
TLDR: My question is, is it better to replace Blocks and Entities in the Registry, or should I use reflection to modify the Fields in the Blocks class?
It would be even better, if I could just replace that one FallingBlock class during runtime (if that's even possible?) as it is the super class of all other Falling Block classes.
You're getting the line twice because it's appearing once for client and once for server, it's just letting you know that the mod with the id "networks" has a block with the id "minecraft" (intended in your case). It should be fine