Jump to content

[SOLVED][1.8.9] Track item usage.


Recommended Posts


I want to keep track of how much a certain player used an item and then award the player with an achievement. At this moment I don't have any idea where to start.

To better understand what I want, here is an example: I want to keep track of how many apples a player has eaten. After 100 apples I want to give him an achievement.

Any Ideas are welcome.




It doesn't work, I don't know why.

It works, I don't know why.

Link to comment
Share on other sites

Some forge examples:



You want:


and maybe



As to events - all over google. Get player that does something (in event), get his capability and edit it to your needs.

Caps need to be saved to player's NBT - that is also included in links I gave.


Oh and there is only sightest change between 1.8.9 and 1.9, so don't worry (one of them is event variable getters in 1.9+).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

@Choonster: why pigs? :P


Just the first idea that came to mind when thinking of a way to use the capability system.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.

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.