Jump to content

Help with Villagers


Elrol_Arrowsend

Recommended Posts

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

Link to comment
Share on other sites

        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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Ohh, if you want to add loot too a dungeon chest/ mineshaft then use the ChestGenHooks.addDungeonlLoot(); The params should be fairly straight forward. I hope that helps.

Link to comment
Share on other sites

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.