Posted April 17, 201411 yr I need a function (to put in my item's class) that gets called when the player uses the item to break a block right when he starts breaking it. I know about onBlockDestroyed() but I can't find anything for this. onStartBlockBreak() doesn't get called until right before the block is broken. Lead DivineRPG Developer
April 17, 201411 yr I need a function that checks when the player uses the item to break the block right when he starts breaking it. I know about onBlockDestroyed() but I can't find anything for this. onStartBlockBreak() doesn't get called until right before the block is broken. You said "the item". Does this mean that you want check if the player is holding a special item? In this case i would place the code in the item class. Here could be your advertisement!
April 17, 201411 yr Author You said "the item". Does this mean that you want check if the player is holding a special item? In this case i would place the code in the item class. Sorry I should have been more specific. I'm putting this function that I want in the Item's class. Lead DivineRPG Developer
April 17, 201411 yr whats the function of the item? whats the outcome of using the item on the block and the relevance of the item to the block cause ive just recently been doing stuff with forge events around specific items breaking specific blocks
April 17, 201411 yr Yeah, If you want to go through the trouble of using forge events, then you would be able to do basically any you want. Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!
April 18, 201411 yr Go through the trouble of? I didn't notice it requiring much effort. Long time Bukkit & Forge Programmer Happy to try and help
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.