Posted October 31, 20168 yr Hello, is there any way to disable sound of breaking block? The thing is, when I destroy e.g. 20 block in a one moment, it will make insanly loud sound. Thanks
October 31, 20168 yr Author e.g. Oak leaves.. If you break 20 of it in a one moment, it will make massive sound.
October 31, 20168 yr Author Ok, Lets have this situation: I have a tree. If I break one block of wood, the every leaves will fall (break). So we have a tree, with lets say 40 blocks of leaves. If you break one single log block, these 40 blocks of leaves will destroy in one moment and make very loud sound.
October 31, 20168 yr Author Well yes of course and I need some advices how to disable or dim this massive sound.. It is my mod, which does it.
October 31, 20168 yr Author private static Set<BlockPos> leaves = new HashSet<BlockPos>(); ..Some insertions.. public int treeDestroy(BlockEvent.BreakEvent event) { for (BlockPos blockPos : leaves) { event.getWorld().destroyBlock(blockPos, true); } }
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.