Sealbudsman (talk | contribs) (rewrote 'upcoming' and '1.9' language) |
m (order alphabetically per Minecraft Wiki talk:Community portal#Standardizing NBT documentation tag order) |
||
(23 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
+ | <div class="treeview"><onlyinclude> |
||
⚫ | |||
⚫ | ** {{nbt|short|Delay}}: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and {{cd|SpawnData}} as though it had just completed a successful spawn cycle, immediately when a player enters its range. Setting this to -1 can be useful if the player wants the game to properly randomize the spawner's {{cd|Delay}} and {{cd|SpawnData}}, rather than starting with pre-defined values. |
||
⚫ | |||
⚫ | ** {{nbt|short|MaxNearbyEntities}}: Overrides the maximum number of nearby (within a box of {{cd|SpawnRange}}*2+1 × {{cd|SpawnRange}}*2+1 × 8 centered around the spawner block) entities whose IDs match this spawner's entity ID. This is relative to a mob's hitbox, not its physical position. Also, all entities within all chunk sections (16×16×16 cubes) overlapped by this box are tested for their ID and hitbox overlap, rather than just entities within the box, meaning that a large amount of entities outside the box (or within it, of course) can cause substantial lag. |
||
− | {{{1|}}}*** {{nbt|string|Type}}: Overwrites EntityId when preparing the next spawn. |
||
⚫ | |||
⚫ | |||
+ | ** {{nbt|short|MinSpawnDelay}}: The minimum random delay for the next spawn delay. May be equal to {{cd|MaxSpawnDelay}}. Requires the {{cd|SpawnCount}} property to also be set, otherwise it defaults to 0. |
||
− | {{{1|}}}*** {{nbt|compound|Properties}}: Overwrites the contents of SpawnData when preparing the next spawn. Not optional; an empty one will be created if it does not exist. |
||
⚫ | ** {{nbt|short|RequiredPlayerRange}}: Overrides the block radius of the sphere of activation by players for this spawner. For every gametick, a spawner checks all players in the current world to test whether a player is within this sphere. Requires the {{cd|MaxNearbyEntities}} property to also be set. |
||
− | {{{1|}}}* {{nbt|string|<s>EntityId</s>}}<sup>deprecated in [[1.9]]</sup>: The Entity ID of the next entity(s) to spawn. Both [[chunk format#Mobs|mob]] entity IDs and other entity IDs will work. '''Warning:''' If SpawnPotentials exists, this tag will get overwritten after the next spawning attempt: see above for more details. Use the "id" tag inside SpawnData (see below). |
||
⚫ | |||
− | + | ** {{nbt|compound|SpawnData}}: Contains tags to copy to the ''next'' spawned entity(s) ''after'' spawning. ''Any'' of the [[entity format|entity]] or [[entity format|mob]] tags may be used. If a spawner specifies any of these tags, almost all variable data such as mob equipment, villager profession, sheep wool color, etc., are not automatically generated, and must also be manually specified (that this does not apply to position data, which are randomized as normal unless Pos is specified. Similarly, unless Size and Health are specified for a Slime or Magma Cube, these are still randomized). This also determines the appearance of the miniature entity spinning in the spawner cage. '''Warning:''' If {{cd|SpawnPotentials}} exists, this tag gets overwritten after the next spawning attempt: see above for more details. |
|
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | + | **** {{nbt|compound|Entity}}: An entity. Overwrites {{cd|SpawnData}} when preparing the next spawn, including the entity id. |
|
+ | ***** {{nbt inherit/entity|indent=*****}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | ** {{nbt|short|SpawnRange}}: The radius around which the spawner attempts to place mobs randomly. The spawn area is square, includes the block the spawner is in, and is centered around the spawner's x,z coordinates - not the spawner itself. It is 2 blocks high, centered around the spawner's y coordinate (its bottom), allowing mobs to spawn as high as its top surface and as low as 1 block below its bottom surface. Vertical spawn coordinates are integers, while horizontal coordinates are floating point and weighted toward values near the spawner itself. Default value is 4. |
||
⚫ | |||
+ | </onlyinclude></div><noinclude> |
||
[[Category:Block entity pages]] |
[[Category:Block entity pages]] |
||
</noinclude> |
</noinclude> |
Revision as of 12:07, 2 February 2021
- Delay: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and
SpawnData
as though it had just completed a successful spawn cycle, immediately when a player enters its range. Setting this to -1 can be useful if the player wants the game to properly randomize the spawner'sDelay
andSpawnData
, rather than starting with pre-defined values. - MaxNearbyEntities: Overrides the maximum number of nearby (within a box of
SpawnRange
*2+1 ×SpawnRange
*2+1 × 8 centered around the spawner block) entities whose IDs match this spawner's entity ID. This is relative to a mob's hitbox, not its physical position. Also, all entities within all chunk sections (16×16×16 cubes) overlapped by this box are tested for their ID and hitbox overlap, rather than just entities within the box, meaning that a large amount of entities outside the box (or within it, of course) can cause substantial lag. - MaxSpawnDelay: The maximum random delay for the next spawn delay. Requires the
MinSpawnDelay
andSpawnCount
properties to also be set. - MinSpawnDelay: The minimum random delay for the next spawn delay. May be equal to
MaxSpawnDelay
. Requires theSpawnCount
property to also be set, otherwise it defaults to 0. - RequiredPlayerRange: Overrides the block radius of the sphere of activation by players for this spawner. For every gametick, a spawner checks all players in the current world to test whether a player is within this sphere. Requires the
MaxNearbyEntities
property to also be set. - SpawnCount: How many mobs to attempt to spawn each time. Requires the
MinSpawnDelay
property to also be set. - SpawnData: Contains tags to copy to the next spawned entity(s) after spawning. Any of the entity or mob tags may be used. If a spawner specifies any of these tags, almost all variable data such as mob equipment, villager profession, sheep wool color, etc., are not automatically generated, and must also be manually specified (that this does not apply to position data, which are randomized as normal unless Pos is specified. Similarly, unless Size and Health are specified for a Slime or Magma Cube, these are still randomized). This also determines the appearance of the miniature entity spinning in the spawner cage. Warning: If
SpawnPotentials
exists, this tag gets overwritten after the next spawning attempt: see above for more details. - SpawnPotentials: Optional. List of possible entities to spawn. If this tag does not exist, but
SpawnData
exists, Minecraft generates it the next time the spawner tries to spawn an entity. The generated list contains a single entry derived from theSpawnData
tag.- : A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn.
- Entity: An entity. Overwrites
SpawnData
when preparing the next spawn, including the entity id.- Tags common to all entities
- Weight: The chance that this spawn gets picked in comparison to other spawn weights. Must be positive and at least 1.
- Entity: An entity. Overwrites
- : A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn.
- SpawnRange: The radius around which the spawner attempts to place mobs randomly. The spawn area is square, includes the block the spawner is in, and is centered around the spawner's x,z coordinates - not the spawner itself. It is 2 blocks high, centered around the spawner's y coordinate (its bottom), allowing mobs to spawn as high as its top surface and as low as 1 block below its bottom surface. Vertical spawn coordinates are integers, while horizontal coordinates are floating point and weighted toward values near the spawner itself. Default value is 4.
- Delay: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and