Get a block

Discussion in 'Plugin Development' started by HelloThereItsMe, Jun 25, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    HelloThereItsMe

    How would I get a block from coordianates? Thanks! :D
     
  2. Offline

    _Filip

    Location#getBlock()
     
  3. Offline

    HelloThereItsMe

    How can I set the location to xyz coords?
     
  4. Offline

    GayZoTe

    Player p = event.getPlayer(); OR = (Player)sender;
    World w = p.getWorld();
    Location l = new Location(w, xpos, ypos, zpos)
    Block b = l.getBlock();
    b.--
    ;)
     
  5. Offline

    MCMatters

  6. Offline

    _Filip

    you shouldnt start programming with the bukkit api if u dont know basic programming.
     
Thread Status:
Not open for further replies.

Share This Page