Diferencia entre revisiones de «Generador de Monstruos»

Xstela (discusión | contribs.)
Sin resumen de edición
Xstela (discusión | contribs.)
Línea 103: Línea 103:
In [[Peaceful]] [[difficulty]], Monster Spawner blocks will still appear, but any spawned [[hostile]] mobs will disappear the instant they spawn. ([[Zombie Pigmen]], [[Magma Cubes]], and [[Ghasts]] will not spawn at all.) This makes it easy to make the traps without being troubled by the mobs. The brief instant that the monster exists in the world before being removed is enough time for the player to be pushed around, for the sound file to play, and occasionally for Skeletons to fire arrows.
In [[Peaceful]] [[difficulty]], Monster Spawner blocks will still appear, but any spawned [[hostile]] mobs will disappear the instant they spawn. ([[Zombie Pigmen]], [[Magma Cubes]], and [[Ghasts]] will not spawn at all.) This makes it easy to make the traps without being troubled by the mobs. The brief instant that the monster exists in the world before being removed is enough time for the player to be pushed around, for the sound file to play, and occasionally for Skeletons to fire arrows.


=== Detailed spawning algorithm ===
=== Algoritmo detallado ===


This pseudo-code is derived from the decompiled source of 1.4.2.
Este pseudo-código se deriva de la fuente descompilada source 1.4.2.
<pre>
<pre>
every spawn cycle (every randInt(200,799) ticks when a player is within
every spawn cycle (every randInt(200,799) ticks when a player is within
Línea 168: Línea 168:
if all 4 mobs failed to spawn, repeat on the next tick
if all 4 mobs failed to spawn, repeat on the next tick
</pre>
</pre>


== Curiosidades ==
== Curiosidades ==