Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if(w.getBlockAt(p.getLocation()).getType() == Material.SPONGE){
  2. if((w.getBlockAt(p.getLocation().subtract(0, 1, 0)).getType() == Material.WOOL)){
  3. if(w.getBlockAt(p.getLocation().subtract(0, 2,0)).getData() == DyeColor.WHITE.getDyeData()){
  4. white.multiply(0.8);
  5. p.setVelocity(white);
  6. w.playSound(p.getLocation(), Sound.ENDERDRAGON_WINGS, 1, 2);
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement