Jump to content

a question about the best way to do something


Mightydanp

Recommended Posts

Hello I have a big question on how to do something. My question is that I have a item that has a gui. The gui has 3 slots. The item is a tool that you can change the items out. When you change out the items the items save data to nbt. such as mining speed, durability, enchants, color of the layer of that item. What would be the best way to implement this? Would I have problems  setting the value of the tool after changing out the part? Would there be texture issues because changed the color of the tool? if so isn't there a way to refresh the items texture?

For an example of a tool I have a axe. The axe has 3 parts. The axe head, wedge, and the handle. Say the tool has a wooden handle and a wooden wedge. The pickaxe head is stone. The pickaxe head sets the color and the mining speed of the tool. Each part has its own durability of its own and gets damaged over time. When I switch out the pickaxe head with a Bronze pickaxe head it changes the color of that items layer and the mining speed and saves those values into nbt to use for later on if needed.

What is the best way to go about this and what will me problems be? 

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.