Jump to content

Recommended Posts

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

Posted

        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.

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.