Setting a Block

Discussion in 'Plugin Development' started by Adoma_, Oct 1, 2014.

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

    Adoma_

    Hey Guys,
    How do you set a block in a specific location in a EventHandler and in Paling Code please help cant get my head around it.
    Thanks,
     
  2. Offline

    Unica

    • Code:java
      1. private void set(Material type, Location loc){
      2. Block current_block = loc.getBlock(); //Get the current Block on that location
      3. current_block.setType(type); //Set the material to the specified material
      4. me.EatPizza(); //Most important part
      5. }
     
  3. Offline

    ZachBora

    what is this "Paling Code" I've never heard about?
     
  4. Offline

    Techy4198

    ZachBora I don't know if anyone has heard of it. I sure would like to...
     
Thread Status:
Not open for further replies.

Share This Page