Tell me more ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I am building a castle with at least four towers in Minecraft. Each tower needs 10 Jack ‘o' Lanterns, but I have only found 20 pumpkins yet.

Do pumpkins really occur at random, or are there places I should look? I have found 14 in grass and 6 in snow till now.

Thanks in advance :)

share|improve this question

2 Answers

up vote 9 down vote accepted

I've found a number of pumpkin groups in forests, others (like yourself) have found them in grassland and snow. Unfortunately, the code for generating pumpkins looks like this:

if (rand.nextInt(32) == 0) {
    ...
    (new WorldGenPumpkin()).generate(worldObj, rand, i14, i16, l18)
}

Which indicates a 1/32 chance of when generating a chunk . From there the code generates a 64 random positions within that chunk, and the positions that match a certain criteria (a block of air with grass below) makes a pumpkin. No mention of any particular biome at all.

Pumpkin generation per biome is random*. Sorry!

*as of 1.5_01

share|improve this answer
Just a general question: where is the minecraft code publicly available? (Or is this not from the game code itself, but something else instead?) – Raven Dreamer May 1 '11 at 1:54
@Raven Since Minecraft is java, the original code is obfuscated but not entirely inaccessible. Using technology like Minecraft Coder Pack, one can "decompile" the .class files and see bits and pieces of minecraft code, like this one. – authenticgeek May 1 '11 at 2:11
Disassembly then. Thanks for the info. – Raven Dreamer May 1 '11 at 2:21
1  
So, this might mean that it is pretty unlikely to find in a desert or tundra biome since they are less likely to have grass. – Zoredache May 1 '11 at 3:31
It's also worth noting that Notch has announced a developer program which will give mod developers (or, presumably, anyone who's curious and agrees to the terms) access to the unobfuscated source. – Ben Blank May 1 '11 at 4:14
show 1 more comment

I've found many near trees (in forest biomes). Maybe you could look there?

share|improve this answer
Well, maybe not. I just checked minecraftwiki.net and it didn't say anything about finding pumpkins especially in some biomes. – user9090 Apr 30 '11 at 21:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.