User talk:Anomie x

Checking the code for exp drop amounts
Hi, I noticed you said, about the experience dropped by smelting wet sponge, "From code, it's 0.15". I was wondering, would you be able to help me double-check some experience numbers directly?

I was curious how much exp drops with an Elder Guardian, so I did some in-game testing on blazes and normal guardians, to first calibrate my method. Assuming the experience-leveling graph on this page was correct, then I was getting about 7.5 exp per blaze, and about 8.5 exp per guardian. I was counting the levels I gained (and fractions thereof) for every 25 of each mob I killed, and got those numbers. But the graph there says 10 exp.

Either I'm doing something wrong (sample size?), or the wiki is bad, so I was wondering if you would be inclined to check blazes, guardians and elder guardians directly, and any others you might be inclined to do. Thanks!

– Sealbudsman (Aaron) T, C, b 17:27, 10 September 2014 (UTC)
 * @Sealbudsman: As far as mobs go Wither is 50, Blaze is 10, Silverfish is 3, Ghast is 5, Guardian is 10 (Elder or not has no effect). Slime is 'Size' + 1, and Magma Cube inherits that too. Zombies are 5 but babies are apparently 12 (5 * 2.5 rounded down), and Zombie Pigmen inherit that too. Other hostile mobs are 5 by default. Jockey chickens give 10, Squid give 1-3, and other animals give 1-3 by default. Mobs (except for animals and Squid) also get a bonus 1-3 for each piece of equipment they have that isn't a guaranteed drop. I don't see any changes here from 1.7.10 for non-new mobs, BTW.
 * For smelting, none of the 1.7 items have changed so you can look here and get the number from the end of each line to check them. The new meats give 0.35, cracking stone brick gives 0.1, and drying sponges gives 0.15 as already stated.
 * If you want me to track down more numbers, let me know. Anomie x (talk) 21:20, 10 September 2014 (UTC)
 * Also, BTW, it looks like breeding is 1-7, not 1-4. Anomie x (talk) 21:36, 10 September 2014 (UTC)


 * Thanks! So the Endermite is 5 and not 3? Does the chicken jockey give 10 when you kill the chicken, or the zombie, or is it just 5 for each mob (in which case it's 5 for the baby rather than 12)?  Does the spider jockey drop anything different than 5 for each mob?  Does the 1-3 bonus extend to the Jockeys?  Much obliged. – Sealbudsman (Aaron) SealbudsmanFace.png T, C, b 21:38, 10 September 2014 (UTC)
 * ... No, Endermite is 3, Silverfish is 5. I got confused reading the obfuscated code since they use the same sound files. Sorry about that. Chicken jockey gives 10 for the chicken and 12 for the baby. Spider jockey is 5 for the spider and 5 for the skeleton, it's just like separate mobs. Same for the equipment bonus. Anomie x (talk) 00:35, 11 September 2014 (UTC)

Checking the code for Block States for Fire, Flowing Water/Lava and Source Water/Lava
Hi again, Anomie,

I've been going through the Block states page, filling in what blocks I could by using F3 mode in a Debug world -- but you can't hover over fire or liquids to get those block states. I was wondering if it was within your capability to look in the code, and find those block states and their ranges of values that way? Thanks in advance,

– Sealbudsman (Aaron) T, C, b 18:35, 24 September 2014 (UTC)
 * Added one for Fire. Flowing water/lava is correct, and still water/lava is the same as flowing. Anomie x (talk) 22:17, 24 September 2014 (UTC)
 * Thanks! – Sealbudsman (Aaron) SealbudsmanFace.png T, C, b 22:22, 24 September 2014 (UTC)

Hello again,

I wonder if you would be able to identify whether block 36 – that people call 'Piston Extension' – has a minecraft:name or any named block states? In the debug world it seems there are 12 blank spaces where Piston Extension should be, so it led me to wonder.

Thanks again for looking into all this stuff!

– Sealbudsman (Aaron) T, C, b 17:45, 29 September 2014 (UTC)


 * It does have a name, "minecraft:piston_extension". --KnightMiner  (t 18:00, 29 September 2014 (UTC)


 * I see. It must have 12 distinct states? – Sealbudsman (Aaron) SealbudsmanFace.png T, C, b 18:05, 29 September 2014 (UTC)


 * Likely, although I though it was mostly block entity. It does need to store the block it becomes and a time delay I know. --KnightMiner  (t 18:08, 29 September 2014 (UTC)


 * Yeah, a lot of these things, like heads or banners, have hodge-podges of states, damage values and block entity data that describe them. I'm sure there are block entity things going on, but that's outside the scope of what I'm asking for now – Sealbudsman (Aaron) SealbudsmanFace.png T, C, b 18:13, 29 September 2014 (UTC)
 * As far as block states, it has "facing" and "type" like piston_head (no "short" though). The block entity stores "blockId", "blockData", "facing", "progress", and "extending". Anomie x (talk) 22:25, 29 September 2014 (UTC)

Villager behavior
Seems like you've been looking at their code, so I figure you might be able to clarify this. If a villager is willing to breed because they have enough food in their inventory, what happens after they mate? Are they willing to breed again immediately, is there a time delay, or do they actually consume the food they're holding? -- Orthotopetalk 19:15, 2 October 2014 (UTC)
 * The food is consumed at the time the "willing" flag gets set; there's a method on the Villager class that checks the "willing" flag, optionally consuming food if "willing" is clear and the villager has food. There's no check there that implements any delay. Similarly, there's no check in the trading function that implements any sort of delay for becoming willing that way.
 * The only thing that calls this method, and the only thing that clears the "willing" flag, is the AI routine for villager breeding. For clearing "willing", it only happens with a successful breeding which (as with other mobs) sets the "age" of each parent to 6000.
 * As for the check that calls the check-willing method, it looks something like this:
 * Villager's age == 0?
 * Random number 0–499 is 0?
 * Is the villager is inside a village?
 * Does the village allow breeding right now? In other words, is the village's "noBreedTicks" timer not active and is the village not yet at its population cap?
 * Is the villager willing? This is the method call that might eat food.
 * Is there another villager nearby?
 * Is that villager's age == 0?
 * Is that villager willing? This might cause that villager to eat food.
 * If you're wanting to dig into the code yourself, in 1.8 Villager is class 'agp', the "willing" flag is 'bs' in that class, the method that checks "willing" and potentially consumes food is 'boolean n(boolean)' in that class, and the AI routine is class 'zj'. Anomie x (talk) 20:56, 2 October 2014 (UTC)