Posted June 1, 20196 yr It is necessary that when a player breaks the gravel with a stick in his hand, for example, dirt also drops. I tried to write the necessary code myself, but nothing works, and I need an example. Edited June 1, 20196 yr by Tameet
June 1, 20196 yr Have a look at the BlockEvent.BreakEvent event, which is fired just before a player breaks the block. You can change the XP dropped by the block, or in your case, you can additionally drop another item.
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.