Anni block respawning

Discussion in 'Plugin Development' started by ArthurHoeke, Oct 25, 2013.

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

    ArthurHoeke

    Hello!
    Im making the annilation plugin,
    And i need to have the block respawn..
    Does someone now how to make that?
    i have no idea ;p
     
  2. Offline

    elraro

    This is my event from my annihilation plugin, the iron ore

    Code:java
    1. //Mena de hierro
    2. else if (block.getType() == Material.IRON_ORE){
    3. jugador.getInventory().addItem(new ItemStack(Material.IRON_ORE));
    4. jugador.giveExp(2);
    5. block.setType(Material.COBBLESTONE);
    6. //Así hacemos que no desaparezca
    7. event.setCancelled(true);
    8. new BukkitRunnable(){
    9. public void run(){
    10. block.setType(Material.IRON_ORE);
    11. }
    12. }.runTaskLater(AnnCore, 600);
    13. }
     
  3. Offline

    TheUpdater

    try updateing the block
     
  4. Offline

    ArthurHoeke

    Whats judagor?

    Get many errors on block. and jugador

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  5. Offline

    QuecksilberHD

    @ArthurHoecke please look more Bukkit tutorials... And start maybe with a easy plugin, that are the basics...
    The BcBroz (
    Code:
    http://www.youtube.com/user/TheBCBroz?feature=watch
    ) make good clips ! :)
     
  6. Offline

    ArthurHoeke

    Yeah i know that channel.

    Fixed block bugs,
    But how to fix that AnnCore?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  7. Offline

    hubeb

    ArthurHoeke replace "AnnCore" with "this"
    Code:java
    1. }.runTaskLater(this, 600);
     
Thread Status:
Not open for further replies.

Share This Page