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

Well, i make my blocks as usual,

public static final Block pointer = new BlockPointer(503, Material.iron).setHardness(1.0F).setResistance(3F);
public static final Block clockPole = new BlockClockPole(504, Material.iron).setHardness(1.0F).setResistance(2F);

//in init event
GameRegistry.registerBlock(pointer, "blockPointer");
GameRegistry.registerBlock(clockPole, "blockClockPole");
LanguageRegistry.addName(pointer, "Pointer");
LanguageRegistry.addName(clockPole, "Pole clock");

But... Idk why, both of them are named 'Pole clock', or 'Pointer' if i place addName(pointer, "Pointer") after addName(clockPole, "Pole clock")... Any ideas?

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

I had a similar glitch, but once I added .setUnlocalisedName("namehere") to where I constructed the blocks, it's fine.

Example:

 public static final Block durt = new BlockDurt(666, Material.anvil).setHardness(1000.0F).setResistance(-1F).setUnLocalisedName("durt"); 

That shoooould work  ;)

I had a similar glitch, but once I added .setUnlocalisedName("namehere") to where I constructed the blocks, it's fine.

Example:

 public static final Block durt = new BlockDurt(666, Material.anvil).setHardness(1000.0F).setResistance(-1F).setUnLocalisedName("durt"); 

That shoooould work  ;)

 

Yes, you have to set the unlocalized name (Don't ask me why) for item names to work correctly.

Guest
This topic is now closed to further replies.

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.