Posted April 24, 201510 yr So, I just need to compare if the item the player is holding has the right toolset and harvest level for the block being broken. I really have no idea how to go about this. Any suggestions? I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
April 24, 201510 yr PlayerEvent.HarvestCheck event? What you want to do? 1.7.10 is no longer supported by forge, you are on your own.
April 24, 201510 yr Author I am creating a tool that breaks a 3x3 area and need to check if the blocks it is trying to break around the block that the player is breaking can be broken by the tool. So like, if you break stone it won't break the dirt around it. I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
April 24, 201510 yr Block#getHarvestTool(), Block#getHarvestLevel(), Block#isToolEffective()? 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.
April 24, 201510 yr Author See, I would think that would work and would love to test it but the game is like "Oh you want to set an NBT tag on you item? Nah don't feel like it." I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
April 24, 201510 yr getHarvestTool takes an integer and returns a string. getHarvestLevel takes an integer and returns an integer. isToolEffective takes a string and an integer and returns a boolean. I fail to see how your NBT item is relevant. 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.
April 24, 201510 yr Author Let me explain a bit, my tool (when created) sets its stackTagCompound to not be null. With that, I set a string that is either "3x3", "5x5" or, "7x7". These are how many blocks it will mine. Basically my tag is returning null now. I fixed it but it did piss me off. Sorry about the vagueness in my previous posts. I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.
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.