Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

Will the same TNT pattern always give exactly the same blast pattern if ignited in the same way? Is there any element of TNT or other explosive's detonation that is random?

share|improve this question
2  
I'd suggest making this more general: I.e., "Are explosions deterministic?" –  Raven Dreamer Feb 9 '12 at 21:49
1  
I believe the explosions are always the same, but when ignited, the tnt always seems to move in a random direction –  Domocus Feb 9 '12 at 21:55
add comment

1 Answer

up vote 11 down vote accepted

No, explosions do have random elements, and are therefore not deterministic.

The Minecraft Wiki has an in-depth analysis of how explosions work in Minecraft. The relevant bit:

An explosion can destroy nearby blocks. Its effect is evaluated independently on many explosion rays originating from the explosion center […].

  • Each ray has an initial blast force randomized in [0.7 × power, 1.3 × power].

So an explosion consists of lots and lots of separate "blast rays" that have a random variance of up to 30%, and are therefore non-deterministic.

The article even answers your question outright:

[…] But how many blocks an explosion can destroy is non-deterministic and also dependent on the specific location of the explosion.

share|improve this answer
add comment

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.