Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("deprecation")
- @EventHandler
- public void onMove(PlayerMoveEvent e){
- Vector white = new Vector(0, 0.5, 0);
- Player p = e.getPlayer();
- World w = p.getWorld();
- if(w.getBlockAt(p.getLocation().subtract(0,1,0)).getType() == Material.SPONGE){
- if((w.getBlockAt(p.getLocation().subtract(0, 1, 0)).getType() == Material.WOOL)){
- if(w.getBlockAt(p.getLocation().subtract(0, 2,0)).getData() == DyeColor.WHITE.getDyeData()){
- white.multiply(0.8);
- p.setVelocity(white);
- w.playSound(p.getLocation(), Sound.ENDERDRAGON_WINGS, 1, 2);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement