Jump to content

Making tutorial books


Mej-Wolf

Recommended Posts

Hi!

I've been looking for a way to code tutorial books (for example Openblocks book that you get when you spawn or join the server) so far haven't found any. If anyone has a tutorial or some code they're willing to share please post! Thanks!

Link to comment
Share on other sites

I have never did this, but I think you can use WorldEvent.playerJoinEventv. then add your book to player's inventory and add a variable to player's nbt that he got the book(boolean and set it to true). And before you add the book to player's invemtory you have to check if player's nbt isn't null and if the variable is't false.

Sorry, if you find mistaches in my posts.

I am not EN.

And when I post anything on Modder support, it means, I can't help myself and I need your help. And when you decide to delete my topic, just PM me with the reason, please.

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.