Jump to content

[1.3] Villager Trading


Shadowclaimer

Recommended Posts

So I haven't had a chance to peek in on the code yet, but I'm curious. How did Mojang handle this and how editable is it? Is it ridiculously hardcoded or can we change up the currencies or implement new trades without much hassle? And does Forge have any plans for hooks related to it?

Link to comment
Share on other sites

Well, the villagers were probably totally rewritten. And it's pretty simple to do something like trading, just have to know how to make entities have GUI's.

If forge doesn't add a hook, I'll be surprised.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Link to comment
Share on other sites

By testing the trading system, the trades are almost always the same.  If you have 2 farmers and you trade with them for a while.  You will soon notice they share identical trades.  Might be really easy to trade with them.

width=320 height=64http://www.slothygaming.com/img/ota.png[/img]

If your grammar is shit and you blatantly don't know what you're doing, I will not help you.

Link to comment
Share on other sites

Well, the villagers were probably totally rewritten. And it's pretty simple to do something like trading, just have to know how to make entities have GUI's.

If forge doesn't add a hook, I'll be surprised.

 

That was my thought on the matter as well.

 

The reason I ask is that my primary mod (Metallurgy) has custom coins and such, and I was wanting to see about implementing new trades in the system and I was curious how Mojang implemented it (IE: how the code was laid out).

Link to comment
Share on other sites

It is possibly really easy to create or add a new currency to the game.

Well, forge should have a hook for it (hint, hint), but if there isn't, go ahead and write one and submit a pull request to forge on github.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

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.