Skip to content

Instantly share code, notes, and snippets.

@daboross
Created July 6, 2013 05:18
Show Gist options
  • Save daboross/5938749 to your computer and use it in GitHub Desktop.
Save daboross/5938749 to your computer and use it in GitHub Desktop.
if(event.getAction()!=Action.RIGHT_CLICK_BLOCK)
return;
Block b = event.getClickedBlock();
Block water = b.getRelative(event.getBlockFace());
if(water.getType()!=Material.getMaterial(&&water.getType()!=Material.getMaterial(9))
return;
Player player = event.getPlayer();
if(player.getItemInHand().getType()!=Material.BOWL)
return;
player.sendMessage("Panning for gold...");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment