Jump to content

[1.8] Item damage.


Ernio

Recommended Posts

This is like really simple math, but it's still bothering me (and I need some sleep).

 

Is it just me or setting items max durability to X given you X+1 uses?

I mean - looking at sword - for iron it has 250 "uses" written in material enum.

 

Items start with 0. Each hit gives +1 till it reaches 250. Items DON'T break at >= but on >, so basically after 250 uses there is still one to go.

On in-game display 0 is 250/250, while 250 is 0/250.

 

Now - I am not dumb, but the logic here seems awfully annoying. It's like someone couldn't decide if to go with > and +1 or >= and just wrote something.

maxUses = 250 is actually 251.

 

Should this be considered as bug (bad design?)?

 

 

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

Link to comment
Share on other sites

Me: Let's give my item 100 uses with nice 100/100 (percentage-like display). What do you say Vanilla?

Vanilla: Ye, sure bro, why not!

 

ebelo2.gif

 

This is the kind of shit I have to go through. Why?! xD

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

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.