--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TemplateCommand.java 2012/03/18 11:38:57 1747 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TemplateCommand.java 2012/03/18 14:36:49 1750 @@ -73,7 +73,8 @@ return true; } - buildTemplate( player.getLocation(), template); + buildTemplate( player.getLocation(), template, 1); + buildTemplate( player.getLocation(), template, 2); return false; } @@ -175,7 +176,7 @@ } - void buildTemplate(Location loc, Pair[][][] template) { + void buildTemplate(Location loc, Pair[][][] template, int pass) { World world = loc.getWorld(); for (int i=0; i= 255) { + continue; + } int type = template[i][j][k].id; byte data = (byte) template[i][j][k].subId; //plugin.getLogger().info( String.format( "Setting typeid at %d,%d,%d to %d", x,y,z, type) ); + if (pass == 1) { + if ( type == 50 || type == 75 || type == 76) //torch / redstone torch + continue; + if (type == 64 || type==71) //door / irondoor + continue; + if (type == 68) // sign + continue; + } world.getBlockAt(x, y, z).setTypeIdAndData(type, data, true); + } } }