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

I am writing a mod that needs to change what Emeralds drop. The easiest way I have found to do this is to remove the spawn, then write my own block which drops what I need it to drop.  I have managed to extend the Extreme Hills biome class and add in the new Emerald for spawn, but it stills spawns the old Emerald in too. I don't want to have to edit the minecraft jar, but I can't think of anything else to try.  Is there a forge hook I'm missing to cancel emerald spawn? Or maybe reduce its spawn frequency to 0?  Any help would be more than welcome!

  • Author

Subscribe to OreGenEvent.GenerateMinable.

Keep in mind that it's posted on the MinecraftForge.ORE_GEN_BUS instead of the default EventBus.

 

I subscribed to this one in order to deny diamond gen, but I didn't see any hook for emeralds.  Is there one in a newer release? Or is there an EventBus that denies biomes so I can override the Extreme Hills entirely?

  • Author

Exactly what I was looking for! I expected it to be dirty, seeing as Forge doesn't really have a hook for it yet.  But its better than trying to override the entire biome! Thank you!

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.