Jump to content

[1.11.2] Detecting a Successful Trade


HalestormXV

Recommended Posts

5 hours ago, diesieben07 said:

Are you trying to detect whether the player has ever traded before or whether they have traded with one specific villa before?

ever traded. So they find any villager and make a trade with any villager -> X hapens. It wouldn't be linked to the specific villager they traded with.

Edited by HalestormXV
Link to comment
Share on other sites

1 hour ago, diesieben07 said:

Yes.

Now last question. Is there possibly a  more efficent way to do this then what I have in my mind. In my mind I am thinking of Subscribing to an onLivingUpdate that checks if that value has changed and if it has then it will execute my code. However, that is always running every tick so I worry about efficency and resources, or is there so little impact that it shouldn't matter too much?

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.



×
×
  • Create New...

Important Information

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