• 0

    posted a message on Replacing Vanilla Blocks and Entities



    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:

    newBlock.setRegistryName("minecraft", "anvil");

    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.

    Minecraft Version is 1.14.4
    Forge: 28.2.0


    I hope someone can help me. Thanks in advance :)

    Posted in: Mod Development
  • 0

    posted a message on [1.14] Generate recipes in code

    In reply to jtrent238:

     Actually this doesn't work in 1.14 anymore...

    Posted in: Mod Development
  • To post a comment, please or register a new account.