/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1391 by torben, Mon Apr 25 20:15:48 2011 UTC revision 1469 by torben, Wed May 18 19:00:26 2011 UTC
# Line 60  public class PowerMiner extends BlockLis Line 60  public class PowerMiner extends BlockLis
60                  case 17:                  case 17:
61                          return null; //instabreak drops wood                          return null; //instabreak drops wood
62                  case 18:                  case 18:
63                          return (rand.nextInt(16) == 0) ? new ItemStack(6,1,(short)0, (byte)rand.nextInt(4) ) : null;  //leaves has 6.25% chance of dropping sapplings - the sappling type is randomized                          return (rand.nextInt(16) == 0) ? new ItemStack(6,1,(short)0, b.getData() ) : null;  //leaves has 6.25% chance of dropping sapplings
64                  case 21: //lapis lazuli                  case 21: //lapis lazuli
65                          int count = rand.nextInt(5) + 4;                          int count = rand.nextInt(5) + 4;
66                          return new ItemStack(351,count,(short)0, (byte)4);                          return new ItemStack(351,count,(short)0, (byte)4);
67                    case 27:
68                    case 28:
69                            return null; //instabreak drops powered and detector rails
70                  case 56: //diamond ore drops diamond                  case 56: //diamond ore drops diamond
71                          return new ItemStack(264,1);                          return new ItemStack(264,1);
72                    case 66:
73                            return null; //instabreak drops rails
74                  case 73:                  case 73:
75                  case 74:                  case 74:
76                          return new ItemStack(331,4); //redstone ore (both glowing and non-glowing) drops 4 redstone                              return new ItemStack(331,4); //redstone ore (both glowing and non-glowing) drops 4 redstone
77                    case 82:
78                            return null; //instabreak drops clay from clayblock
79                  default:                  default:
80                          return new ItemStack(b.getTypeId(), 1);                          return new ItemStack(b.getTypeId(), 1,(short)0, b.getData());
81                  }                  }
82          }          }
83                    
# Line 80  public class PowerMiner extends BlockLis Line 87  public class PowerMiner extends BlockLis
87                  if (! p.isOp() )                  if (! p.isOp() )
88                          return;                          return;
89                                    
90                  if ( miners.contains(p.getName()) ) {                  if (p.getItemInHand().getType() == Material.FEATHER) {
91                          if (p.getItemInHand().getType() == Material.FEATHER) {                          if ( miners.contains(p.getName()) ) {                  
92                                                                    
93                                  Block b = event.getBlock();                                  Block b = event.getBlock();
94                                                                    

Legend:
Removed from v.1391  
changed lines
  Added in v.1469

  ViewVC Help
Powered by ViewVC 1.1.20