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 am currently working on a mod, and modding tutorials only go so far.

 

I am trying to add custom seeds that you can get 1 of 3 ways, dropped from the grass (like wheat seeds), traded from villagers, and spawned in villages.

 

if anyone can help me with any of these 3 that would be great

 

i am using forge 9.11.1.964 and gradle,

 

thank you in advanced

        MinecraftForge.addGrassSeed(new ItemStack(myItem), weight); (weight is how often it should be dropped)

        VillagerRegistry.addEmeraldSellRecipe(); you'll have to add some parameters try to figure it out.

  • Author

Okay, the MinecraftForge.addGrassSeed(new ItemStack(myItem), weight); works perfectly, as for the VillagerRegistry.addEmeraldSellRecipe(); I am completly lost on this, I know a little bit, otherwise I would not even have a mod, but i am not sure how to use this or where it goes exactly, if you could explain it a little more i would be greatful.

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.