Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Refresh Content in Written Book(?)


jayxo
 Share

Recommended Posts

Hello! I have a book that writes down a players life information. I.e. how long they’ve been living, and when they die on that life, how long they lasted and what they died from.

My question is, is it possible to update content in a written book when it’s opened? Becuase the way it works now, you have to get the book with a command instead of it refreshing it’s content automatically.

Any help would be extremely helpful! Thank you.

Here’s a pastebin of the current class that writes in the book: https://pastebin.com/s6X05Nzz

Link to comment
Share on other sites

  • 2 weeks later...

I'm assuming that it is just a vanilla book with custom NBT, not your own custom item?

If that is the case you could listen to the use item event (sorry, I can't remember the name of it off the top of my head), check for the book being used (opened) and sync the data with the item.

Edited by Alpvax
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.

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

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.