Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello,

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
{
    @SubscribeEvent
    public static void registerBlocks(RegistryEvent.Register<Block> event)
    {
        event.getRegistry().register(new Block(Block.Properties.from(Blocks.DIRT).lightValue(15)).setRegistryName(Blocks.DIRT.getRegistryName()));

    }
    
    @SubscribeEvent
    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.

2019-12-29_14.23.16.png

Edited by vrackfall

Glory to the holy shovel ! :)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.