Jump to content

[1.7.10] Spell Book help


Recommended Posts

I'm trying to make an item that when you right click it will cast a spell based on the nbtdata now i've gotten that to work, but as it is now the player has access to all the spells the book has. I don't like that i would like to make where the player starts out with one spell and they have to craft it  together with a piece of paper to gain access to the next spell.


so what i'm really asking is how to tell when an item is crafted with another item and update the nbtdata accordingly.


(and i know i could just make a munch of separate books with each one having one more spell then the last, but i really didn't want to do that)

Link to comment
Share on other sites

Look at how the fireworks are crafted with various items to create different effects (RecipeFireworks), and how leather armor is crafted with dyes to make various colors(RecipesArmorDyes). These both modify NBT tags after crafting.

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

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.