Guest User

Untitled

a guest
Mar 25th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. @EventHandler
  2.     public void place(BlockPlaceEvent e){
  3.         Block blok = e.getBlock();
  4.         World w = blok.getWorld();
  5.         int x = blok.getX();
  6.         int y = blok.getY() +1;
  7.         int z = blok.getZ();
  8.         Location loc = new Location(w,x,y,z);
  9.         if(blok.getType() == Material.TUTAJ_NAZWA_BLOKU_KTORY_KLADZIESZ){
  10.             loc.getBlock().setType(Material.TUTAJ BLOK KTORY MA SIE POJAWIC NAD POLOZONYM BLOKIEM);
  11.            
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment