Minecraft Wiki
Advertisement

Blaze spawning

You recently updated the light level for spawning Blazes, and I'm wondering what your source is for that. In the code, Blazes have isValidLightLevel() set to always return true, which suggests that they can spawn at any light level. -- Orthotope 08:33, 10 March 2012 (UTC)

I've build a test-case around Blaze spawner (viewed from a side):
The fact that Blazes will spawn only above Netherrack indicates, that they require light level of 11 or less (torches have light level 14).
What about the code?
Bazes don't spawn in light level 12+ not because of isValidLightLevel(), but because of getBlockPathWeight():
EntityCreature.java:
boolean getCanSpawnHere() {
  int i = MathHelper.floor_double(posX);
  int j = MathHelper.floor_double(boundingBox.minY);
  int k = MathHelper.floor_double(posZ);
  return super.getCanSpawnHere() && getBlockPathWeight(i, j, k) >= 0.0F;
}
EntityMob.java
float getBlockPathWeight(int par1, int par2, int par3) {
  return 0.5F - worldObj.getLightBrightness(par1, par2, par3);
}
World.java
float getLightBrightness(int par1, int par2, int par3) {
  return worldProvider.lightBrightnessTable[getBlockLightValue(par1, par2, par3)];
}
lightBrightnessTable is calculated in generateLightBrightnessTable() and it is different for WorldProvider and WorldProviderHell:
lightValue 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
WorldProvider.lightBrightnessTable 0.00 0.02 0.04 0.06 0.08 0.11 0.14 0.18 0.22 0.27 0.33 0.41 0.50 0.62 0.78 1.00
WorldProviderHell.lightBrightnessTable 0.10 0.12 0.13 0.15 0.18 0.20 0.23 0.26 0.30 0.35 0.40 0.47 0.55 0.66 0.80 1.00
This means that Blazes won't spawn in light level 13+ in Overworld and 12+ in the Nether. --mgr 15:50, 10 March 2012 (UTC)

Pickaxe icons

My understanding is that on block pages, the icon shown corresponds to the minimum strength tool needed to harvest that block. For example, the page on gold ore has an iron pickaxe. Coal ore, stone slabs, cauldrons, etc. should have a wooden pickaxe, as they cannot be collected without a pick of some sort. Rails have the outline icon as they can be collected without a tool, but pickaxes work more quickly. However, this doesn't seem to be officially stated anywhere, so I'd like your opinion before changing things back. -- Orthotope 07:29, 8 August 2012 (UTC)

Yeah, you're right, that makes a lot of sense. I always thought that outlined pickaxe means the same thing as wooden pickaxe. Thanks for the info, I'll try to revert my edits.
Maybe we should write this policy down somewhere? Template:Block page says only "Tool to use" :).
Good solution would be some kind of tooltip, that is shown when holding the cursor over an icon, like this: Iron pickaxe or better is required to mine this block.
Three other things:
  • We need outline of shears for Wool (shears are the best, but not required);
  • We need wooden shovel for Snow and Snow Block (shovel is required to mine snowballs);
  • Why is there a hoe as a tool for Farmland? --mgr 08:19, 8 August 2012 (UTC)
Tooltips are a good idea; I hadn't thought of that. This could be documented on Template:Block/doc, but the template itself is admin-locked. Having a wooden shovel for snow has been brought up before, but was never added. An outline shears icon wouldn't be hard to make, if an admin is willing to add it to the template. Also, fixed Farmland; that was outright wrong. -- Orthotope 08:41, 8 August 2012 (UTC)
Advertisement