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'm new to modding I just started a Java course and I wanted to put into practice what little I learned by creating a simple Minecraft mod. I didn't think creating a mod required all this Java knowledge (which I don't have) so I followed various tutorials on how to set up the workspace and to create the bases that is a custom block, a custom item and how to make the block spawn in the world. Now I would like to make the block spawn in the world more infrequently and in 1 block veins. To do this I realized that I should use "Feature.EMERALD_ORE" and "ReplaceBlockConfig" instead of "Feature.ORE" and "oreFeatureConfig". Unfortunately I couldn't find any tutorial or examples on how to use the emerald feature, I've also tried to look at how mojang adds it to minecraft and I didn't figure out how to adapt it to my mod.
Any help is welcome, if you have any examples to show me I would be super grateful and in case you want to take a look at my code I'm pushing everything I do on my github
https://github.com/TYPyz/dNode

first of all there are a lot of threads with these topic, just search in the Forge
second you can take a look at the vanilla Ore generation, OreFeatures and OrePlacements are the classes you should look at
note that you need to register the Features and Placements in FMLCommonSetupEvent and add them via BiomeLoadingEvent

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.