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

I'm trying to dynamically set the hardness and harvest levels. Hardness was easy because  I can use the world and xyz coordinates to get my tileentity. However I can't do this with a getHarvestLevel function. What are some alternatives? What can I do?

 

Thanks,

SuperZanti

If you are on 1.7.10, there is no appropriate way to do that, but there is also a roundabout route.

You need these:

1. You can remove drop on BlockEvent#HarvestDropsEvent.

2. You can make breaking speed slow with PlayerEvent#BreakSpeed.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • Author

Damn. See. I'm having a weird problem that when I set hardness to 50 it takes half (or less) the time to mine than a block of obsidian.

  • Author

Unfortunately I have a lot of mods that currently only support 1.7.10. I would rather not try to go through and update them all. Basically what I want to do is set the block I place to have all the same properties of the block directly below it. My current problem is that I can't get the mining speed right.

i see two ways..

 

1. save hardness of block in a tileentity and access that in breakspeed

 

2. in breakspeed get the hardness of the block below and use that

  • Author

I'm currently using the first method.

 

But I'm not sure how minecraft calculates breakspeed. I know it looks at several factors:

[*]The hardness

[*]The level of the tool you're holding

[*]The type of the tool you're holding

[*]If you're underwater

[*]Possibly more

How does minecraft calculate this so I can get the exact breakspeed?

I'm currently using the first method.

 

But I'm not sure how minecraft calculates breakspeed. I know it looks at several factors:

[*]The hardness

[*]The level of the tool you're holding

[*]The type of the tool you're holding

[*]If you're underwater

[*]Possibly more

How does minecraft calculate this so I can get the exact breakspeed?

You can just modify the hardness value... The value is already given.

Multiply 0.4 when the tool's level is less than that, I saw minecraft doing that.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

But I'm not sure how minecraft calculates breakspeed.

 

http://minecraft.gamepedia.com/Hardness#Speed

 

 

Right, That all makes sense, but the damage per tic is clearly:

 

MiningDamageEquation.png

 

as per the links

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.