Java Edition.png

Java Edition:Pig Spawner

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search
Pig Spawner Island.PNG

The pig spawner was the default spawner in Minecraft until 22w44a[2]. Due to this fact, there have been many methods that allow the player to create pig spawners. Pig spawners should not be confused with spawners with sign data or spawners with chest data, both currently show pigs in the center of them but do not spawn pigs because they do not have the BlockEntityData of a spawner.

Placing Spawner

Placing the spawner item creates a pig spawner. This is because pigs are the default mob for spawners and all methods of obtaining spawners store no NBT data. The spawner item is possible in multiple version ranges all before 1.0.0. These were Indev 20100125 to Indev 20100128 (after updating to Infdev 20100625-2 or later), Infdev 20100627 to Alpha v1.0.0[3], Beta 1.6 Test Build 3, Beta 1.8 Pre-release to Beta 1.8 Pre-release 2 ;) (after updating to 15w31a (1.9 snapshot) or later), and Beta 1.9 Prerelease 4. any falling block may eventually allow for its acquisition after 1.0.0.

Pig Spawn Egg

If the player obtains a pig spawn egg or no NBT spawn egg, they can use the spawn egg in versions 14w28b (1.8 snapshot) and later in order to change a natural spawner into a pig spawner. This method is not specific only to pigs.

Forced Spawner Generation

Gear.gif
This section is a work in progress. 
Please help in the creation of this article by expanding or improving it.

Chunk population occurs only when a 2x2 grid of chunks are loaded. By using flying machines a piston can convert a normal spawner from generation into a pig spawner. This method works at least in ≤[test]14w18a (1.8 snapshot) to 15w36d (1.9 snapshots) and ≤[test]16w44a (1.11 snapshot) to 18w05a (1.13 snapshot). Internally in the code, these are the steps that occur:

How it Works

  • Piston checks blocks in front and ensures they are all movable
  • Piston checks position in unloaded chunk causing that chunk to load
  • The loaded chunk completes a 2x2 chunk grid causing population to occur
  • The population results in a dungeon generating and the moved blocks from the flying machine cause the dungeon to generate in the air
  • The dungeon generates the spawner in the blocks that the piston is going to move
  • The piston moves all blocks in front of it without another check, including the spawner
  • The spawner is moved and because block entities cannot be moved by pistons the spawner is reset to the default pig spawner

1.8 vs 1.9+

The piston behavior from 14w18a (1.8 snapshot) to 15w36d (1.9 snapshot) and from 15w37a (1.9 snapshot) to 18w05a (1.13 snapshot) is different and so requires different techniques.

1.8
1.9+

Finding Valid Location

Omeganx's DungeonFinder

Dungeon Generation Requirements

Flying Machine Contraptions

Videos

Word Tearing and Any Falling Block via Asynchronous Threads

From 14w32a (1.8 snapshot) to 17w46a (1.13 snapshot), asynchronous block updates allow for block palette corruption, and this corruption, when combined with the registry palette type, can allow for the creation of any block that can exist, such as spawners. Asynchronous block updates also allow for usage of the "generic method" to create a falling block entity of any existing block in your world.

These falling blocks may also be used to obtain their respective item, if it exists in item form, such as end portal frames. Blocks such as end gateways cannot be obtained as items with this method, as they have no corresponding item. Falling blocks also allow for the placement of both blocks that cannot normally be placed, either due to operator restrictions (e.g. command blocks) or not having an item form (e.g. end gateways).


Broken Block Entity ID Conversion

Barrier.png
Warning: Game Crash 
This feature can crash the game. Perform at your own risk.

Updating a Spawner last loaded in version 1.10.2 or before to 18w06a-18w16a will cause the game to crash. After it crashes, if you reload the world in 1.13-pre1 or newer, the spawner will be converted to a spawner with no data and a pig in the middle. Upon leaving the world and loading it again, the spawner will regain data and be a pig spawner.
Depending on the version the spawner is updated to, the game may crash when the spawner tries to spawn entity for the first time after upgrading from the snapshot, however after reloading it works normally.

Chest with Spawner Data

Gear.gif
This section is a work in progress. 
Please help in the creation of this article by expanding or improving it.

When a buried treasure generates, it takes the block at the chest's location and replaces any non-air blocks to the top and sides of the chest with that block. If this block is a spawner, it will place up to 5 pig spawners around it, due to it not copying the tile entity of the spawner.[4] This only occurs in the rare circumstance when a buried treasure chest generates at the location of a mineshaft spawner, which can occur when a mesa mineshaft intersects a beach. The probability of a quintuple pig spawner occurring in any chunk is about 1/36000000000000000, meaning that only about 1 in 1000 seeds contain this rarity.[5]

This will also have the byproduct of creating a chest with spawner data.

Andrew's List of 1.16 Seeds & Coordinates Containing Quintuple Pig Spawners
# Seed X Y Z
1 -9159128323430172662 -503 58 -567
2 -2464334185163669257 6105 58 18969
3 5520728315301704325 -18471 59 -15335
4 3830679590341196603 -28663 58 -13255
5 -8506231491360895631 29209 59 -25655
6 5080722595853041613 -21463 59 -11255
7 8558345933113196493 -21463 59 -11255
8 6432693858766937472 -16423 58 -10807
9 -7777570340470530688 -16423 58 -10807
10 -8964393524132048897 16409 58 12761
11 6890415600180670898 5410761 59 3883065
12 -2732087953649815118 5410761 59 3883065
13 8677973874565685682 6967241 59 2375737
14 -3586538451014376014 7069641 59 5009465
15 5801462954023181234 7438281 59 4223033
16 2686338580661244338 8396745 59 1593401
17 -3433007311031115598 9867209 59 7831609
18 13313117911499698 10883017 59 3985465
19 -5281794143969360974 10883017 59 3985465
20 -3230123038725389390 10883017 59 3985465
21 -731751145441606734 10883017 59 3985465
22 2688172202216015794 11648969 59 6508601
23 -1359156487906506830 11648969 59 6508601

These seeds were originally found for 1.16, but work flawlessly from 20w22a (1.16 snapshot) to 1.17.1. Known working seeds in this list for previous versions are as follows: 18w44a (1.14 snapshot) to 20w21a (1.16 snapshot): the 1st seed gives 3 spawners, the 7th seed gives 1 spawner, the 8th seed gives 1 spawner, the 13th seed gives 1 spawner, and the 16th seed gives 4 spawners. 18w43a (1.14 snapshot) to 18w43c (1.14 snapshot): Seed 3 gives 3 spawners[test]. 18w19a to 1.13.2: Seed 4 gives 3 spawners. 18w10a to 18w16a: Seed 3 gives 3 spawners.

22w13oneBlockAtATime

In 22w13oneBlockAtATime the player can pick up any block including spawners, when the spawner is placed back down it will become a pig spawner.

Videos

Updating From Experimental Snapshot

Updating from 1.18 experimental snapshot 7 to 21w39a - 1.21 (present) will convert all spawners to pig spawners.

See also

References

  1. minecraft-snapshot-22w44a minecraft.net
  2. minecraft-snapshot-22w44a minecraft.net
  3. Spawners can also be placed in Infdev 20100625-2, but after updating they receive sign data and no longer spawn pigs.
  4. MC-234396. bugs.mojang.com.
  5. Comment by Andrew on his Youtube Video