MiniGame Control Unit

Discussion in 'Plugin Development' started by Luee, Jul 29, 2012.

  1. Offline

    Luee

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What would the easiest way be to select a certain type of block on your map. Perhaps only in a 200-300 block radius which ever is easier. (I want to destroy a wall in the game when the game starts.)
  2. Offline

    np98765 43210 Moderator BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Automatically or manually? You could use WorldEdit if it's manually. Just use /removenear <block>, where <block> is the material of your wall.
  3. Offline

    Luee

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You do understand this is the Plugin Dev. forum right? I want to know how to remove them via java.
  4. Offline

    pzxc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    pseudocode:

    Location center = new Location("world", 0, 0, 0);
    for (int x = -radius; x <= radius; x++)
    for (int y = -radius; y <= radius; y++)
    for (int z = -radius; z <= radius; z++)
    if (blocktype == material) remove();

Share This Page