Each item in Minecraft has a unique ID assigned to it, known as an item ID, this can be used in commands to spawn the item into the game. The item ID for oak fence gate in Minecraft is shown below:
When Minecraft updated to version 1.13, a changed dubbed "The Flattening" was introduced. In "The Flattening", numerical IDs and item data was removed, and some item IDs were changed to make them more logical - Oak Fence Gate was one of the many items that had their IDs changed.
For this reason, if you're playing on a Minecraft version below 1.13 (1.12, 1.8, 1.7), you should use what we've named a legacy ID for this item. The legacy ID for oak fence gate is:
Oak Fence Gate has a data value of 0. You will need to add this to commands, along with its legacy item ID (below), to spawn it.
Items from earlier versions of Minecraft were assigned a numerical ID - a unique number to represent it.
The numerical ID for Oak Fence Gate is:
The Oak Fence Gate item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.
Below is a table of the tools that can be used to break Oak Fence Gate blocks, and the speed it will take to break at (in seconds). This is calculated with the formula (1.5 * Block Hardness) / Tool Multiplier.
Oak fence gates are 1 block in size (they cannot be jumped over) and act exactly like doors. They can be attached to fences and activated by redstone. They are useful to stop mobs from escaping mob farms.
|Legacy Item ID (1.12.2 and Below)||minecraft:fence_gate|
|Max Stack Size||64|
|Min / Max State IDs||4301 - 4332|
Block states are values assigned to a block that changes its state. For example, many blocks have a "direction" block state which can be used to change the direction a block faces.
Find a table of all blockstates for the Oak Fence Gate block below.
|Block State Name||Type||Values|
|facing||direction ?|| |
|open||bool ?|| |
|powered||bool ?|| |
|in_wall||bool ?|| |