Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Callback.addCallback("DestroyBlock", function(c, block, player){
- if(block.id == 18 || block.id == 161){
- let id;
- if(block.id == 18){
- if([0, 4, 8].indexOf(block.data) != -1) id = ItemID.OakLeaf;
- else if(1, 5, 9].indexOf(block.data) != -1) id = ItemID.PineNeedle;
- else if([2, 6, 10].indexOf(block.data) != -1) id = ItemID.BirchLeaf;
- else if([3, 7, 11].indexOf(block.data) != -1) id = ItemID.TropicalTreeLeaf;
- }else{
- if([0, 4, 8].indexOf(block.data) != -1) id = ItemID.AcaciaLeaf;
- else if([1, 5, 9].indexOf(block.data) != -1) id = ItemID.AcaciaLeaf;
- }
- World.drop(c.x, c.y, c.z, id, java.util.Random(3), 0);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement