Posted June 28, 201411 yr Hi guys, I want to create a damaged item when I break a block that has a TE. I have to return a variable from this TE to set the damage, but it always return a null TE. onBlockDestroyedByPlayer method: https://gist.github.com/anonymous/4b46be02172899d30655 I also tried using harvestBlock method, but it returns null as well...
June 28, 201411 yr Author Right, it didn't work yet. I think I am doing something wrong... Actually, the method is not being called. https://gist.github.com/anonymous/ac78fcbc40f3648ad127
June 28, 201411 yr Author Ok, I found a way to do what I wanted. It is basically the same idea, but using "breakBlock" method. I also need to use the "quantityDropped" method to avoid dropping the block itself. Thanks for your help, diesieben07!
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.