Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.4] Nasty bug when trying to replace a block by another one.


Recommended Posts


There's a very nasty bug that appear if you try this kind of code that replace a block by another one (it also happens if you only replace the model of the block by another one) :

@EventBusSubscriber(modid = ModBug.MODID, bus = Bus.MOD)
public class BlockBug
    public static void registerBlocks(RegistryEvent.Register<Block> event)
        event.getRegistry().register(new Block(Block.Properties.from(Blocks.DIRT).lightValue(15)).setRegistryName(Blocks.DIRT.getRegistryName()));

    public static void registerItems(RegistryEvent.Register<Item> event)
        event.getRegistry().register(new BlockItem(Blocks.DIRT, new Item.Properties().group(ItemGroup.BUILDING_BLOCKS)).setRegistryName(Blocks.DIRT.getRegistryName()));

So the item was correctly replaced and the block is placed correctly, but the world generation is broken.

You'll surely not be able to destroy nor walk inside those broken "ghost" blocks.

When you disconnect then reconnect from the game the ghost block disappear.
Of course, this doesn't happen only for dirt if you try to replace other blocks, it will also happen for them.


Edited by vrackfall

Glory to the holy shovel ! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.