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,

 

I was just wondering if anyone could help me with 3 forge issues/problem I am facing.

 

- If I had a block, kinda like dirt so that shovels would speed up the block destruction, how would I go about doing this?

 

I have looked in ItemSpade and the array 'blocksEffectiveAgainst' is final. Without editing the base class I see no

way of adding my own block to this array without creating a subclass of ItemSpade and creating my own item. If anyone could point me to some Forge method I need to use or other advice that would be great.

 

- Another problem I am having is with my mcmod.info file. After recompiling and reobfuscating my code and zipping it with my textures (which all work fine) I add my correctly formatted, as far as I'm aware, mcmod.info file to the  zip. However whenever I install my mod it comes up with the message "No mcmod.info file found, ask your mod maker to add one....".

 

- Finally just something that would really help, I am getting my blocks texture off it's meta data. However whenever the blocks metadata changes, the texture doesn't until I either reload the chunks or Save and Quit. Any help with this would also be appreciated.

 

Thanks again to anyone who can help me with any of these issues.

 

King Atomx

Forge has funtions to register tools and tool effecvtiveness on initialization.

Also, when block metadata changes you should replace the old block with a new one with the new valuem which will cause it tup update.

I accidentally the everything then NullPointerException.

  • Author

Which function exactly would I use to register that a block could be affected by and ItemShovel??

Thanks  :D for your help

MinecraftForge.setBlockHarvestLevel

 

Is your mcmod.info in the root of your zip?

The formatting might be off slightly (I forgot a comma once  ::) )

MCMod.info files aren't automatically packed like class files are. At least, mine isn't. You should put it in your package at the root.

 

For the metadata/texture thing, you tried using SetBlockAndMetadataWithUpdate() or SetBlockAndMetadataWithNotify()?

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.