Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

This is correct. When you use a mod that shows the durability of a weapon, you will see that there is a '0' use. It's always been this way.

 

If you want a tool to have 9000 uses, give it 8999 uses.

  • Author

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.

You are saying that like your life is much worse than ours. Even tho we all are coders

Hi

Kind of weird in design, like for example arrays are zero-based. Why did the Minecraft developers do that is beyond me!

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.