Skip 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.

rockGiant

Members
  • Joined

  • Last visited

  1. rockGiant joined the community
  2. Wanted to add onto this for anyone else who finds it. GameRegistry.addSubstitutionAlias works, but if you are replacing a block, you need to replace both the block and the block item. // removed everything but the relevant code public static Block newBlock= new FallingBlockDirt(); // needs to extend Dirt Block... @EventHandler public void preInit(FMLPreInitializationEvent event ) { GameRegistry.addSubstitutionAlias( "block.id.to.replace", GameRegistry.Type.BLOCK, newBlock); GameRegistry.addSubstitutionAlias( "block.id.to.replace", GameRegistry.Type.ITEM, new ItemBlock(newBlock)); }In the case of the op, I think he was missing this second substitute alias. As the error he mentioned is similar to what I saw in that scenario. He would need to make a class that extends Block Dirt ( what he's replacing ), but overwrite some methods with those of BlockFalling ( what gravel uses ). If he tried to use the BlockFalling class, or a new class that extends that... that would also fail as it doesn't match 1-1 what the BlockDirt was expecting. In my case, I was using 1.7.10, so there may be slight differences that I haven't noticed. Edit: Forgot to mention. Don't register the new block. The addSubsitutionAlias is splicing the new one in for the old one, so it shouldn't have a new registry.

Important Information

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

Account

Navigation

Search

Search

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.