User talk:Orthotope/blocks

Do you already have the values für the cocoa plants? I may need them for my own block list. --☺ Sven ? ! 19:53, 11 May 2012 (UTC)

Blast resistance
Are you sure about the "blast resistance" values your list is using? In the Minecraft source file Block.java, some values are different from yours - for example, Leaves haven't got a resistance at all, they are simply bypassed by explosions. -ToreI_R 10:55, 11. Oct. 2012 (UTC)


 * Note that the setHardness method sets the blast resistance to five times the hardness, unless it is already greater. One thing I've learned from looking through the code is that it often does sneaky and non-obvious things like this. -- Orthotope 13:55, 11 October 2012 (UTC)


 * The code says the following:

protected Block setResistance(float par1) {       this.blockResistance = par1 * 3.0F; return this; }

This means that blockResistance is always able to be divided by 3. In the case of e.g. wool (4), your value has to be wrong, doesn't it?


 * Nope. Wool is defined as

public static final Block cloth = (new BlockCloth).setHardness(0.8F).(...)
 * which calls

protected Block setHardness(float par1) {       this.blockHardness = par1; if (this.blockResistance < par1 * 5.0F) {           this.blockResistance = par1 * 5.0F; }       return this; }
 * so blockResistance = 0.8 * 5 = 4. -- Orthotope 02:56, 12 October 2012 (UTC)