{"action":"opened","issue":{"url":"https://api.github.com/repos/voxel/voxel-clientmc/issues/51","repository_url":"https://api.github.com/repos/voxel/voxel-clientmc","labels_url":"https://api.github.com/repos/voxel/voxel-clientmc/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/voxel/voxel-clientmc/issues/51/comments","events_url":"https://api.github.com/repos/voxel/voxel-clientmc/issues/51/events","html_url":"https://github.com/voxel/voxel-clientmc/issues/51","id":135029915,"number":51,"title":"Send start/stop mining block_dig events to server, in sync with player actions, instead of mineflayer dig()","user":{"login":"deathcap","id":5897956,"avatar_url":"https://avatars.githubusercontent.com/u/5897956?v=3","gravatar_id":"","url":"https://api.github.com/users/deathcap","html_url":"https://github.com/deathcap","followers_url":"https://api.github.com/users/deathcap/followers","following_url":"https://api.github.com/users/deathcap/following{/other_user}","gists_url":"https://api.github.com/users/deathcap/gists{/gist_id}","starred_url":"https://api.github.com/users/deathcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathcap/subscriptions","organizations_url":"https://api.github.com/users/deathcap/orgs","repos_url":"https://api.github.com/users/deathcap/repos","events_url":"https://api.github.com/users/deathcap/events{/privacy}","received_events_url":"https://api.github.com/users/deathcap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/voxel/voxel-clientmc/labels/missing%20feature","name":"missing feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-20T04:00:59Z","updated_at":"2016-02-20T04:00:59Z","closed_at":null,"body":"Currently when you click a block, voxel-clientmc will call mineflayer's dig() method, which handles starting and stopping digging. So you only need to hit it once, then mining will occur after it is complete, regardless of whether you continue mining. What should happen is when the player starts mining, it sends block_dig with digging start, and block_dig with digging stop when the player stops, so that if you do not fully mine the block client-side, is it not mined server-side."}}