Posted May 28, 201510 yr 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
May 28, 201510 yr 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.
May 28, 201510 yr 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.
May 28, 201510 yr 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.
May 28, 201510 yr 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
May 28, 201510 yr 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?
May 29, 201510 yr 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.
May 30, 201510 yr But I'm not sure how minecraft calculates breakspeed. http://minecraft.gamepedia.com/Hardness#Speed Hi These links will tell you more about mining speed of blocks than you ever knew you didn't want to know. http://greyminecraftcoder.blogspot.ch/2015/01/mining-blocks-with-tools.html http://greyminecraftcoder.blogspot.ch/2015/01/summary-of-logic-flow-when-mining-blocks.html http://greyminecraftcoder.blogspot.ch/2015/01/calculating-rate-of-damage-when-mining.html -TGG Right, That all makes sense, but the damage per tic is clearly: 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.