Minecraft Wiki
Advertisement
Information icon
This feature is exclusive to Java Edition. 

Functions allow players to run lists of commands using text files with the extension .mcfunction. It is recommended to use UTF-8 (without BOM) encoding on function files to prevent any problems.

Usage

To utilize functions, the text files must first be placed into a top-level folder within .minecraft/saves/[WORLD_NAME]/data/functions. The name of this top-level folder will be the namespace used when running functions inside this folder. Functions can also be placed into subfolders within the folder.

For example, running the function custom:example/test will refer to the file located at functions/custom/example/test.mcfunction. If the namespace is left out when trying to call a function, it will default to the minecraft: namespace. Using a custom namespace is recommended in order to prevent unintended behavior in the case of future additions to the default namespace.[1]

Functions, being text files, are easily modifiable and less likely than command blocks to induce lag when used in large quantities. If a function is modified or added, using the /reload command will reload the function files from disk. This allows Minecraft to recognize any changes to the function files, without the need to quit and re-enter the world.

Upon successfully running a function, a message will display in the chat: Executed [amount] command(s) from function '[function file directory]'. The successful output of the commands inside a function cannot be measured with a comparator (although the same effect could be accomplished with the use of /stats and /scoreboard commands).

Function syntax

TestingFunctions

Testing the function system. Three /tellraw messages and one /give command were used in this simple function.

Within the .mcfunction file, one valid command is placed per line, without the usual forward slash (/). Players can add comments within the function text file by preceding them with a #.

Individual commands in functions can be longer than the 32 500 character limit in command blocks but the total number of commands run inside a function will still obey /gamerule maxCommandChainLength, which is 65 536 commands by default; any commands beyond this limit will be ignored.

Running a function

Functions will run all of their commands in a single tick and functions called from within other functions will also run their commands in the same tick as their parent.

Position changes that happen within a function will not affect the relative coordinates used in other commands within that function (or within its child functions) until the next iteration, regardless of the order of commands. The /execute command circumvents this.

For example:

tp @s ~ ~5 ~
setblock ~ ~-1 ~ emerald_block
execute @s ~ ~ ~ setblock ~ ~-1 ~ diamond_block

When called through a player this function will teleport that player 5 blocks up, place an emerald block one block below their original position before the teleport, and place a diamond block one block below their new position after the teleport. This behavior does not affect position arguments within selectors, which will always test for the current position at the time of execution.

There are several methods of running a function file in-game:

Commands

/function
  • Allows players to run a function once.
  • The commands in the function are run through the entity or command block that ran the /function command.
  • The optional arguments if and unless will make the function only run when the selector was found or not found in the world respectively.
  • Usage: /function <name>
/gamerule gameLoopFunction
  • Runs a function every tick.
  • The commands in the function are run through the server.
  • The coordinate of the server is (0,0,0).
  • If multiple functions need to be looped, it is possible to insert function commands into this looped function file, put function commands in those functions, etc.
  • Usage: /gamerule gameLoopFunction <namespace:path/to/function/file>

Advancements

Advancements can run a function once as a reward for completing them. The commands in the function are run through the player who completed the advancement.

Reward functions are called within advancement JSON files using the following format:

{
    "rewards": {
        "function": "namespace:path/to/function/file"
    }
}

History

release
1.12
{{Extension DPL}}<ul><li>[[Pumpkin Seeds|Pumpkin Seeds]]<br/>{{Block
| image = <gallery>
Pumpkin Stem Age 0.png | Age 0
Pumpkin Stem Age 1.png | Age 1
Pumpkin Stem Age 2.png | Age 2
Pumpkin Stem Age 3.png | Age 3
Pumpkin Stem Age 4.png | Age 4
Pumpkin Stem Age 5.png | Age 5
Pumpkin Stem Age 6.png | Age 6
Pumpkin Stem Age 7.png | Age 7
</gallery>
|image2 = <gallery>
Attached Pumpkin Stem (N).png | North
Attached Pumpkin Stem (E).png | East
Attached Pumpkin Stem (S).png | South
Attached Pumpkin Stem (W).png | West
</gallery>
| transparent = Yes
| light = No
| tool = none
| renewable = Yes
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
}}
'''Pumpkin seeds''' are items obtained from pumpkins that can be used to grow pumpkin stems.

'''Pumpkin stems''' are plants grown on [[farmland]] that, over time, grow [[pumpkin]]s on dirt, mud and moss blocks adjacent to them.

== Obtaining ==
=== Breaking ===
When broken, a pumpkin stem drops 0–3 pumpkin seeds. The chance for pumpkin seeds to drop increases with the stem's age.
{| class="wikitable"
! rowspan="3" |[[Resource location]]
! rowspan="3" | Source
! colspan="4" | Default
|-
| colspan="1" rowspan="2" style="text-align:center" | Nothing || colspan="3" style="text-align:center" |{{ItemLink|Pumpkin Seeds|Pumpkin seeds}}
|-
| style="text-align:center" | 1 || style="text-align:center" | 2 || style="text-align:center" | 3
|-
| rowspan="8" |<code>blocks/pumpkin_stem</code>
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 0</code>
| style="text-align:center" |81.3%|| style="text-align:center" |17.42%|| style="text-align:center" |1.24%|| style="text-align:center" |0.03%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 1</code>
| style="text-align:center" |65.1%|| style="text-align:center" |30.04%|| style="text-align:center" |4.62%|| style="text-align:center" |0.24%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 2</code>
| style="text-align:center" |51.2%|| style="text-align:center" |38.4%|| style="text-align:center" |9.6%|| style="text-align:center" |0.8%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 3</code>
| style="text-align:center" |39.44%|| style="text-align:center" |43.02%|| style="text-align:center" |15.64%|| style="text-align:center" |1.9%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 4</code>
| style="text-align:center" |29.13%|| style="text-align:center" |44.44%|| style="text-align:center" |22.22%|| style="text-align:center" |3.7%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 5</code>
| style="text-align:center" |21.6%|| style="text-align:center" |43.2%|| style="text-align:center" |28.8%|| style="text-align:center" |6.4%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 6</code>
| style="text-align:center" |15.17%|| style="text-align:center" |39.82%|| style="text-align:center" |34.84%|| style="text-align:center" |10.16%
|-
|{{BlockLink|Pumpkin Stem|Pumpkin stem}} <code>age = 7</code>
| style="text-align:center" |10.16%|| style="text-align:center" |34.84%|| style="text-align:center" |39.82%|| style="text-align:center" |15.17%
|-
| rowspan="1" |<code>blocks/attached_pumpkin_stem</code>
|{{BlockLink|Attached Pumpkin Stem|Attached Pumpkin stem}}
| style="text-align:center" |10.16%|| style="text-align:center" |34.84%|| style="text-align:center" |39.82%|| style="text-align:center" |15.17%
|}

=== Natural generation ===
Pumpkin stems generate naturally in stem farm rooms in [[woodland mansion]]s.

Pumpkin stems generate in [[taiga]] and [[snowy taiga]]{{only|be|short=1}} [[village]] farms.

=== Chest loot ===
{{LootChestItem|pumpkin-seeds}}

=== Crafting ===
{{Crafting
|Pumpkin
|Output= Pumpkin Seeds,4
|type= Material
}}

=== Trading ===
[[Wandering trader]]s sell pumpkin seeds for 1 [[emerald]].

=== Post-generation ===
Shearing an uncarved pumpkin yields 4 pumpkin seeds {{in|java}} or 1 unit of pumpkin seeds {{in|bedrock}}.

== Usage ==
=== Farming ===
{{see also|Tutorials/Pumpkin and melon farming}}
Pumpkin seeds can be planted only on [[farmland]], as stems. Over time, a stem grows through several stages{{Needs testing}} and, at its final growth stage, will produce [[pumpkin]]s on any adjacent [[dirt]], [[Coarse Dirt|coarse dirt]], [[Rooted Dirt|rooted dirt]], [[Grass Block|grass block]], [[farmland]], [[podzol]], [[mycelium]], [[Moss Block|moss block]], [[mud]] or [[Muddy Mangrove Roots|muddy mangrove roots]]. If a pumpkin is already occupying a spot adjacent to a stem it does not grow more pumpkins until the pumpkin is removed. A single stem can grow an unlimited number of pumpkins. Pumpkin stems need a minimum light level of 10 in the block above the stem to grow and give pumpkins. Pumpkin seeds are affected by [[bone meal]] only with respect to stem growth; bone meal does not help produce the actual pumpkins.

=== Breeding ===
Like other seeds, pumpkin seeds can be used to [[breed]] [[chicken]]s, lead chickens around, and make baby chickens grow up faster by 10% of the remaining time.

=== Taming ===
Like other seeds, pumpkin seeds can be used to tame [[parrot]]s.

=== Composting ===
Placing pumpkin seeds into a [[composter]] has a 30% chance of raising the compost level by 1.

== Pumpkin stem ==
A '''pumpkin stem''' is the block that is planted on [[farmland]] when pumpkin seeds are used on it. It starts underground, and rises up as the plant grows. The stem is colored green when young, and then yellow once fully grown.

The stem curves once a pumpkin has grown from it. A fully-grown single stem connects to any [[pumpkin]] in an adjacent square, thus there are 5 possible appearances to a stem. If there are multiple pumpkins it can connect to, it favors the east, then west, north, and south. When the pumpkin is removed, the stem returns to its straight shape.

== Sounds ==
{{Sound table/Block/Hard crop}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Pumpkin Stem
|spritetype=block
|nameid=pumpkin_stem
|blocktags=bee_growables, crops
|form=block}}
{{ID table
|displayname=Attached Pumpkin Stem
|spritetype=block
|nameid=attached_pumpkin_stem
|form=block}}
{{ID table
|displayname=Pumpkin Seeds
|spritetype=item
|nameid=pumpkin_seeds
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Pumpkin Stem
|spritetype=block
|nameid=pumpkin_stem
|id=104
|form=block}}
{{ID table
|displayname=Pumpkin Seeds
|spritetype=item
|nameid=pumpkin_seeds
|id=292
|form=item
|foot=1}}

=== Block states ===
{{see also|Block states}}

{{/BS}}

== Advancements ==
{{load advancements|A Seedy Place}}

== History ==
{{info needed section|check if stems floated above farmland upon initial implementation}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|[[File:Pumpkin Seeds JE1 BE1.png|32px]] Added pumpkin seeds.
|[[File:Pumpkin Stem Age 0 JE1.png|32px]] [[File:Pumpkin Stem Age 1 JE1.png|32px]] [[File:Pumpkin Stem Age 2 JE1.png|32px]] [[File:Pumpkin Stem Age 3 JE1.png|32px]] [[File:Pumpkin Stem Age 4 JE1.png|32px]] [[File:Pumpkin Stem Age 5 JE1.png|32px]] [[File:Pumpkin Stem Age 6 JE1.png|32px]] [[File:Pumpkin Stem Age 7 JE1.png|32px]] Added the pumpkin stem, with seven stages of growth.
|Pumpkin seeds can be found in the new [[mineshaft]] [[chest]]s.
|[[File:Attached Pumpkin Stem (N) JE1.png|32px]] [[File:Attached Pumpkin Stem (E) JE1.png|32px]] [[File:Attached Pumpkin Stem (S) JE1.png|32px]] [[File:Attached Pumpkin Stem (W) JE1.png|32px]] The pumpkin stem has four slightly visually distinct appearances for each facing direction - the bent part of the stem rotates, but the other two planes do not.
|[[File:Pumpkin Stem Age 8 JE1.png|32px]] [[File:Pumpkin Stem Age 9 JE1.png|32px]] [[File:Pumpkin Stem Age 10 JE1.png|32px]] [[File:Pumpkin Stem Age 11 JE1.png|32px]] [[File:Pumpkin Stem Age 12 JE1.png|32px]] [[File:Pumpkin Stem Age 13 JE1.png|32px]] [[File:Pumpkin Stem Age 14 JE1.png|32px]] [[File:Pumpkin Stem Age 15 JE1.png|32px]] Pumpkin stem data values from 8 through 15 now show a glitched formation, with a floating stem with an attached stem cross eventually emerging below.
|[[File:Attached Stem Age 8 JE1.png|32px]] [[File:Attached Stem Age 9 JE1.png|32px]] [[File:Attached Stem Age 10 JE1.png|32px]] [[File:Attached Stem Age 11 JE1.png|32px]] [[File:Attached Stem Age 12 JE1.png|32px]] [[File:Attached Stem Age 13 JE1.png|32px]] [[File:Attached Stem Age 14 JE1.png|32px]] [[File:Attached Stem Age 15 JE1.png|32px]] Pumpkin stem blocks with data values higher than 7 can attach to adjacent fruits, which results in buggy stem textures with [[vines]] in the mix due to vines being below attached stems in [[terrain.png]].}}
{{History|||snap=Pre-release 2 ;)|Pumpkin stems can now be grown faster using [[bone meal]].}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Pumpkins can now be [[crafting|crafted]] into [[pumpkin seeds]].}}
{{History||1.3.1|snap=1.3|The texture of pumpkin stems has been moved one pixel to the left in [[terrain.png]].
|[[File:Pumpkin Stem Age 0 JE2.png|32px]] [[File:Pumpkin Stem Age 1 JE2.png|32px]] [[File:Pumpkin Stem Age 2 JE2.png|32px]] [[File:Pumpkin Stem Age 3 JE2.png|32px]] [[File:Pumpkin Stem Age 4 JE2.png|32px]] [[File:Pumpkin Stem Age 5 JE2.png|32px]] [[File:Pumpkin Stem Age 6 JE2.png|32px]] [[File:Pumpkin Stem Age 7 JE2.png|32px]] Stems now appear slightly different.
|[[File:Pumpkin Stem Age 8 JE2.png|32px]] [[File:Pumpkin Stem Age 9 JE2.png|32px]] [[File:Pumpkin Stem Age 10 JE2.png|32px]] [[File:Pumpkin Stem Age 11 JE2.png|32px]] [[File:Pumpkin Stem Age 12 JE2.png|32px]] [[File:Pumpkin Stem Age 13 JE2.png|32px]] [[File:Pumpkin Stem Age 14 JE2.png|32px]] [[File:Pumpkin Stem Age 15 JE2.png|32px]] Overgrown attached pumpkin stems now appear slightly different.
|[[File:Attached Pumpkin Stem (N) JE2.png|32px]] [[File:Attached Pumpkin Stem (E) JE2.png|32px]] [[File:Attached Pumpkin Stem (S) JE2.png|32px]] [[File:Attached Pumpkin Stem (W) JE2.png|32px]] Attached pumpkin stems now appear slightly different.
|[[File:Attached Stem Age 8 JE2.png|32px]] [[File:Attached Stem Age 9 JE2.png|32px]] [[File:Attached Stem Age 10 JE2.png|32px]] [[File:Attached Stem Age 11 JE2.png|32px]] [[File:Attached Stem Age 12 JE2.png|32px]] [[File:Attached Stem Age 13 JE2.png|32px]] [[File:Attached Stem Age 14 JE2.png|32px]] [[File:Attached Stem Age 15 JE2.png|32px]] Overgrown attached pumpkin stems now appear slightly different.}}
{{History||1.4.2|snap=12w36a|[[Chicken]]s now use [[wheat seeds]], [[melon seeds]] and pumpkin seeds, instead of [[wheat]] to [[breeding|breed]].}}
{{History||1.5|snap=13w02a|[[File:Pumpkin Stem Age 0 JE3.png|32px]] [[File:Pumpkin Stem Age 1 JE3.png|32px]] [[File:Pumpkin Stem Age 2 JE3.png|32px]] [[File:Pumpkin Stem Age 3 JE3.png|32px]] [[File:Pumpkin Stem Age 4 JE3.png|32px]] [[File:Pumpkin Stem Age 5 JE3.png|32px]] [[File:Pumpkin Stem Age 6 JE3.png|32px]] Pumpkin stems now use a squished version of their texture for immature stems, depending on age.
|[[File:Pumpkin Stem Age 8 JE3.png|32px]] [[File:Pumpkin Stem Age 9 JE3.png|32px]] [[File:Pumpkin Stem Age 10 JE3.png|32px]] [[File:Pumpkin Stem Age 11 JE3.png|32px]] [[File:Pumpkin Stem Age 12 JE3.png|32px]] [[File:Pumpkin Stem Age 13 JE3.png|32px]] [[File:Pumpkin Stem Age 14 JE3.png|32px]] [[File:Pumpkin Stem Age 15 JE3.png|32px]] This also affects pumpkin stems of ages 8-15, which are likewise stretched to accommodate its predicted size.
|[[File:Attached Stem Age 8 JE3.png|32px]] [[File:Attached Stem Age 9 JE3.png|32px]] [[File:Attached Stem Age 10 JE3.png|32px]] [[File:Attached Stem Age 11 JE3.png|32px]] [[File:Attached Stem Age 12 JE3.png|32px]] [[File:Attached Stem Age 13 JE3.png|32px]] [[File:Attached Stem Age 14 JE3.png|32px]] [[File:Attached Stem Age 15 JE3.png|32px]] Pumpkin stems of extreme ages, which are attached to adjacent fruits, now show a stretched and tinted stem appearance.}}
{{History|||snap=13w03a|[[File:Pumpkin Stem Age 0 JE4.png|32px]] [[File:Pumpkin Stem Age 1 JE4.png|32px]] [[File:Pumpkin Stem Age 2 JE4.png|32px]] [[File:Pumpkin Stem Age 3 JE4.png|32px]] [[File:Pumpkin Stem Age 4 JE4.png|32px]] [[File:Pumpkin Stem Age 5 JE4.png|32px]] [[File:Pumpkin Stem Age 6 JE4.png|32px]] [[File:Pumpkin Stem Age 7 JE4.png|32px]] Pumpkin stems are no longer squished or stretched to account for age.<ref>{{bug|MC-7111}}</ref>
|[[File:Pumpkin Stem Age 8 JE4.png|32px]] [[File:Pumpkin Stem Age 9 JE4.png|32px]] [[File:Pumpkin Stem Age 10 JE4.png|32px]] [[File:Pumpkin Stem Age 11 JE4.png|32px]] [[File:Pumpkin Stem Age 12 JE4.png|32px]] [[File:Pumpkin Stem Age 13 JE4.png|32px]] [[File:Pumpkin Stem Age 14 JE4.png|32px]] [[File:Pumpkin Stem Age 15 JE4.png|32px]] Pumpkin stems with age values 8 through 15 now show a tinted [[trapdoor]] texture.
|From this version up until 14w08a, overgrown pumpkin stems start to draw from the texture below them on the [[texture atlas]], in much the same way they previously did with terrain.png. However, as texture atlases are unstable and textures tend to change positions as new blocks and textures are added, overgrown stems change the texture they draw from every time new textures are added, which includes when textures added by [[mods]].}}
{{History|||snap=13w09a|[[File:Pumpkin Stem Age 8 JE5.png|32px]] [[File:Pumpkin Stem Age 9 JE5.png|32px]] [[File:Pumpkin Stem Age 10 JE5.png|32px]] [[File:Pumpkin Stem Age 11 JE5.png|32px]] [[File:Pumpkin Stem Age 12 JE5.png|32px]] [[File:Pumpkin Stem Age 13 JE5.png|32px]] [[File:Pumpkin Stem Age 14 JE5.png|32px]] [[File:Pumpkin Stem Age 15 JE5.png|32px]] Pumpkin stems with age values 8 through 15 now show a tinted [[birch wood]] texture.}}
{{History||1.6.1|snap=13w24a|Melon and pumpkin stems have now been assigned separate textures.
|[[File:Pumpkin Stem Age 8 JE6.png|32px]] [[File:Pumpkin Stem Age 9 JE6.png|32px]] [[File:Pumpkin Stem Age 10 JE6.png|32px]] [[File:Pumpkin Stem Age 11 JE6.png|32px]] [[File:Pumpkin Stem Age 12 JE6.png|32px]] [[File:Pumpkin Stem Age 13 JE6.png|32px]] [[File:Pumpkin Stem Age 14 JE6.png|32px]] [[File:Pumpkin Stem Age 15 JE6.png|32px]] Pumpkin stems with age values 8 through 15 now show a tinted curving [[rail]] texture.}}
{{History||1.7.2|snap=13w37a|Added the {{cmd|setblock}} command, allowing for invalid pumpkin stem ages to be placed in the world without using external editors. This also allows them to be obtained in earlier versions via backdating.}}
{{History|||snap=13w41a|[[File:Pumpkin Stem Age 8 JE7.png|32px]] [[File:Pumpkin Stem Age 9 JE7.png|32px]] [[File:Pumpkin Stem Age 10 JE7.png|32px]] [[File:Pumpkin Stem Age 11 JE7.png|32px]] [[File:Pumpkin Stem Age 12 JE7.png|32px]] [[File:Pumpkin Stem Age 13 JE7.png|32px]] [[File:Pumpkin Stem Age 14 JE7.png|32px]] [[File:Pumpkin Stem Age 15 JE7.png|32px]] Pumpkin stems with age values 8 through 15 now show a tinted lit [[furnace]] texture.}}
{{History|||snap=13w43a|[[File:Pumpkin Stem Age 8 JE8.png|32px]] [[File:Pumpkin Stem Age 9 JE8.png|32px]] [[File:Pumpkin Stem Age 10 JE8.png|32px]] [[File:Pumpkin Stem Age 11 JE8.png|32px]] [[File:Pumpkin Stem Age 12 JE8.png|32px]] [[File:Pumpkin Stem Age 13 JE8.png|32px]] [[File:Pumpkin Stem Age 14 JE8.png|32px]] [[File:Pumpkin Stem Age 15 JE8.png|32px]] Pumpkin stems with age values 8 through 15 now show a tinted [[pumpkin]] top texture.}}
{{History||1.8|snap=14w10a|[[File:Pumpkin Stem Age 8 JE9.png|32px]] [[File:Pumpkin Stem Age 9 JE9.png|32px]] [[File:Pumpkin Stem Age 10 JE9.png|32px]] [[File:Pumpkin Stem Age 11 JE9.png|32px]] Pumpkin stems with data values 8-11 now display a tinted attached stem, with 8 facing west, 9 facing east, 10 facing north and 11 facing south.
|Invalid pumpkin stems with data values 12-15 now crash the game.}}
{{History|||snap=14w25a|[[File:Pumpkin Stem Age 0 JE5.png|32px]] [[File:Pumpkin Stem Age 1 JE5.png|32px]] [[File:Pumpkin Stem Age 2 JE5.png|32px]] [[File:Pumpkin Stem Age 3 JE5.png|32px]] [[File:Pumpkin Stem Age 4 JE5.png|32px]] [[File:Pumpkin Stem Age 5 JE5.png|32px]] [[File:Pumpkin Stem Age 6 JE5.png|32px]] [[File:Pumpkin Stem Age 7 JE5.png|32px]] Pumpkin stems now render as a single diagonal plane, or, in the case of attached stems, a diagonal and orthogonal plane.
|[[File:Attached Pumpkin Stem (N) JE3.png|32px]] [[File:Attached Pumpkin Stem (E) JE3.png|32px]] [[File:Attached Pumpkin Stem (S) JE3.png|32px]] [[File:Attached Pumpkin Stem (W) JE3.png|32px]] The attached pumpkin stem [[model]] now fully rotates to the direction the stem points. Prior to this update, the base of the pumpkin stem would stay the same while the long attaching section would differ, resulting in four possible attached stem appearances.
|Invalid overgrown pumpkin stems have now effectively been removed from the game, as attempting to place an out of range stem via {{cmd|setblock}} creates a stem of age 0 and loading a world with existing such stems cause a game crash.}}
{{History|||snap=14w26a|[[File:Pumpkin Stem Age 0 JE6.png|32px]] [[File:Pumpkin Stem Age 1 JE6.png|32px]] [[File:Pumpkin Stem Age 2 JE6.png|32px]] [[File:Pumpkin Stem Age 3 JE6.png|32px]] [[File:Pumpkin Stem Age 4 JE6.png|32px]] [[File:Pumpkin Stem Age 5 JE6.png|32px]] [[File:Pumpkin Stem Age 6 JE6.png|32px]] [[File:Pumpkin Stem Age 7 JE6.png|32px]] [[File:Attached Pumpkin Stem (N) JE4.png|32px]] [[File:Attached Pumpkin Stem (E) JE4.png|32px]] [[File:Attached Pumpkin Stem (S) JE4.png|32px]] [[File:Attached Pumpkin Stem (W) JE4.png|32px]] Pumpkin stems now correctly render as crosses again.<ref>{{bug|MC-58136}}</ref>}}
{{History|||snap=14w27a|[[File:Attached Stem Age 0 14w27a.png|32px]] [[File:Attached Stem Age 1 14w27a.png|32px]] [[File:Attached Stem Age 2 14w27a.png|32px]] [[File:Attached Stem Age 3 14w27a.png|32px]] [[File:Attached Stem Age 4 14w27a.png|32px]] [[File:Attached Stem Age 5 14w27a.png|32px]] [[File:Attached Stem Age 6 14w27a.png|32px]] Due to a bug, all pumpkin stems now appear attached regardless of age or any actual attachment.<ref>{{bug|MC-60208}}</ref>}}
{{History|||snap=14w28a|All pumpkin stems appearing attached regardless of the age of any actual attachment has been fixed. However, pumpkin stems still appear attached to adjacent fruits regardless of age due to a similar bug.<ref>{{bug|MC-61716}}</ref>}}
{{History|||snap=14w34d|Pumpkin seeds no longer can be used to breed [[chicken]]s.}}
{{History||1.9|snap=15w31a|Chickens can now use pumpkin seeds to [[breeding|breed]] again.}}
{{History|||snap=15w44a|Pumpkin seeds have been added to [[dungeon]] [[chest]]s.
|The average yield of pumpkin seeds in [[mineshaft]] chests has been decreased.}}
{{History|||snap=15w45a|Pumpkin stems must now be fully grown again to attach.}}
{{History||1.11|snap=16w39a|Pumpkin seeds are now found in the new [[woodland mansion]] chests.
|Pumpkin stems now generate inside [[woodland mansion]]s.}}
{{History||1.13|snap=17w47a|The different [[block]] states for the <code>pumpkin_stem</code> ID have been split up into their own IDs.
|Pumpkin seeds can now be obtained by [[shear]]ing an uncarved pumpkin.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 104, and the [[item]]'s 361.}}
{{History|||snap=17w48a|Attached pumpkin stems no longer [[drops|drop]] seeds.}}
{{History||1.14|snap=18w43a|[[File:Pumpkin Stem Age 0 JE7.png|32px]] [[File:Pumpkin Stem Age 1 JE7.png|32px]] [[File:Pumpkin Stem Age 2 JE7.png|32px]] [[File:Pumpkin Stem Age 3 JE7.png|32px]] [[File:Pumpkin Stem Age 4 JE7.png|32px]] [[File:Pumpkin Stem Age 5 JE7.png|32px]] [[File:Pumpkin Stem Age 6 JE7.png|32px]] [[File:Pumpkin Stem Age 7 JE7.png|32px]] The stem texture has changed.
|[[File:Attached Pumpkin Stem (N) JE5.png|32px]] [[File:Attached Pumpkin Stem (E) JE5.png|32px]] [[File:Attached Pumpkin Stem (S) JE5.png|32px]] [[File:Attached Pumpkin Stem (W) JE5.png|32px]] The pumpkin stem texture change also affects the base cross on pumpkin stems.}}
{{History|||snap=18w50a|Pumpkin stems now generate in the updated [[taiga]] [[village]] farms.
|Pumpkin seeds can now be found in [[chest]]s in taiga village houses.}}
{{History|||snap=19w03a|Placing pumpkin seeds into the new [[composter]] has a 10% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Pumpkin seeds now have a 30% chance of increasing the compost level in a composter by 1.
|Added [[Wandering Trader|wandering trader]]s, which sell pumpkin seeds.}}
{{History||1.15|snap=19w34a|[[Bee]]s can now pollinate pumpkin stems.}}
{{History|||snap=19w39a|Attached pumpkin stems now [[drops|drop]] seeds again.<ref>{{bug|MC-136360}}</ref>}}

{{History|pocket alpha}}
{{History||v0.8.0|snap=build 1|[[File:Pumpkin Seeds JE1 BE1.png|32px]] Added pumpkin seeds.
|[[File:Pumpkin Stem Age 0 JE1.png|32px]] [[File:Pumpkin Stem Age 1 JE1.png|32px]] [[File:Pumpkin Stem Age 2 JE1.png|32px]] [[File:Pumpkin Stem Age 3 JE1.png|32px]] [[File:Pumpkin Stem Age 4 JE1.png|32px]] [[File:Pumpkin Stem Age 5 JE1.png|32px]] [[File:Pumpkin Stem Age 6 JE1.png|32px]] [[File:Pumpkin Stem Age 7 JE1.png|32px]] [[File:Attached Pumpkin Stem (N) JE1.png|32px]] [[File:Attached Pumpkin Stem (E) JE1.png|32px]] [[File:Attached Pumpkin Stem (S) JE1.png|32px]] [[File:Attached Pumpkin Stem (W) JE1.png|32px]]{{verify|Were these the models used by this edition?}} Added pumpkin stems.
|Pumpkin seeds are obtainable from the [[Nether reactor]].}}
{{History||v0.12.1|snap=build 1|Pumpkin seeds are no longer available from the Nether reactor.}}
{{History||v0.14.0|snap=build 1|Pumpkin seeds can now be found in [[minecart with chest]]s inside [[mineshaft]]s.}}
{{History|pocket}}
{{History||1.1.0|snap=alpha 1.1.0.0|Pumpkin stems now generate inside [[woodland mansion]]s.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Pumpkin seeds are now used to tame [[parrot]]s.}}
{{History||1.4.0|snap=beta 1.2.13.8|Pumpkin seeds can now be obtained by [[shear]]ing an uncarved [[pumpkin]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Attached Pumpkin Stem (W) JE5.png|32px]]{{info needed|More accurate image}} The texture of attached pumpkin stems has been changed.
|Pumpkin seeds can now be [[trading|bought]] from [[wandering trader]]s.
|A single pumpkin crop now generates in the new [[taiga]] and [[snowy taiga]] [[village]]s.}}
{{History||1.11.0|snap=beta 1.11.0.1|A single pumpkin seed can now be used to fill the [[composter]].
|Pumpkin seeds can now be found in [[taiga]] and [[snowy taiga]] [[village]] house [[chest]]s.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|[[File:Pumpkin Seeds JE1 BE1.png|32px]] Added pumpkin seeds.
|[[File:Pumpkin Stem Age 0 JE1.png|32px]] [[File:Pumpkin Stem Age 1 JE1.png|32px]] [[File:Pumpkin Stem Age 2 JE1.png|32px]] [[File:Pumpkin Stem Age 3 JE1.png|32px]] [[File:Pumpkin Stem Age 4 JE1.png|32px]] [[File:Pumpkin Stem Age 5 JE1.png|32px]] [[File:Pumpkin Stem Age 6 JE1.png|32px]] [[File:Pumpkin Stem Age 7 JE1.png|32px]] [[File:Attached Pumpkin Stem (N) JE1.png|32px]] [[File:Attached Pumpkin Stem (E) JE1.png|32px]] [[File:Attached Pumpkin Stem (S) JE1.png|32px]] [[File:Attached Pumpkin Stem (W) JE1.png|32px]]{{verify|Were these the models used by this edition?}} Added pumpkin stems.}}
{{History||xbox=TU69|ps=1.76|wiiu=Patch 38|Pumpkin seeds can now be obtained by [[shear]]ing an uncarved [[pumpkin]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Attached Pumpkin Stem (W) JE5.png|32px]]{{info needed|More accurate image}} The texture of attached pumpkin stems has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Pumpkin Stem Age 0 JE1.png|32px]] [[File:Pumpkin Stem Age 1 JE1.png|32px]] [[File:Pumpkin Stem Age 2 JE1.png|32px]] [[File:Pumpkin Stem Age 3 JE1.png|32px]] [[File:Pumpkin Stem Age 4 JE1.png|32px]] [[File:Pumpkin Stem Age 5 JE1.png|32px]] [[File:Pumpkin Stem Age 6 JE1.png|32px]] [[File:Pumpkin Stem Age 7 JE1.png|32px]] [[File:Attached Pumpkin Stem (N) JE1.png|32px]] [[File:Attached Pumpkin Stem (E) JE1.png|32px]] [[File:Attached Pumpkin Stem (S) JE1.png|32px]] [[File:Attached Pumpkin Stem (W) JE1.png|32px]]{{verify|Were these the models used by this edition?}} Added pumpkin stems.}}
{{History|foot}}

<gallery>
Pumpkin Stem with data value 15.png|The final version of the pumpkin stem with age 15, as seen in-game.
Pumpkinstems.png|Pumpkin stems of ages 1 to 15 on a modded version of [[Java Edition 1.7.2|1.7.2]], hence the nearby melon stems using the melon top texture.
Stems of 13w02a.png|All 16 stem sizes in [[Java Edition 13w02a|13w02a]], with accompanying data values.
</gallery>

=== Pumpkin stem "item" ===
{{:Technical blocks/Pumpkin Stem}}

== Issues ==

{{issue list}}

== Gallery ==
<gallery>
Stem All Ages.png|All stages of growth.
AllSeeds.png|All the [[seeds]] that exist in the game.
</gallery>

== References ==
{{reflist}}

{{Blocks|vegetation}}
{{Items}}

[[Category:Plants]]
[[Category:Food]]
[[Category:Non-solid blocks]]
[[Category:Generated structure blocks]]

[[cs:Dýňová semínka]]
[[de:Kürbiskerne]]
[[es:Semillas de calabaza]]
[[fr:Graines de citrouille]]
[[hu:Tökmagok]]
[[ja:カボチャの種]]
[[ko:호박씨]]
[[nl:Pompoenpitten]]
[[pl:Nasiona dyni]]
[[pt:Sementes de abóbora]]
[[ru:Семена тыквы]]
[[th:เมล็ดฝักทอง]]
[[zh:南瓜种子]]</li><li>[[Smithing Template|Smithing Template]]<br/>{{for|the block|Smithing Table}}
{{Item
| title = Smithing Template
| image = <gallery>
Netherite Upgrade Smithing Template.png | Netherite Upgrade
Sentry Armor Trim Smithing Template.png | Armor Trim
</gallery>
| rarity = Rare
| renewable = No<!--Smithing templates are not renewable because diamonds, their only other method of creation, are not renewable.-->
| stackable = Yes (64)
}}
'''Smithing templates''' are items used in [[Smithing Table|smithing tables]] to alter [[Tool|tools]] and [[armor]]. They are consumed when used, but can be [[Crafting|duplicated]] using an existing template, its material and [[Diamond|diamonds]].

The sixteen '''armor trim smithing templates''' are found in a variety of [[Generated structures|structures]], and are used to apply various decorative trims (dependent on the variant) to armor using certain minerals.

'''Netherite upgrade smithing templates''' are required to upgrade diamond equipment with [[Netherite Ingot|netherite]]. They are only found in [[Bastion Remnant|bastion remnants]], but are guaranteed only in [[:en:Bastion_Remnant#Treasure_room|treasure rooms]].

== Obtaining ==
Smithing templates can be found in various [[Generated structures|structures]] and can be duplicated by using seven diamonds and a block based on what the template is.

=== Crafting ===
{{Crafting
|A1=Diamond |B1=Matching Smithing Template                                                                                                                           |C1=Diamond
|A2=Diamond |B2=Netherrack;Cobblestone;Sandstone;End Stone;Terracotta;Terracotta;Netherrack;Cobblestone;Terracotta;Cobbled Deepslate;Blackstone;Purpur Block;Prismarine;Cobblestone;Cobbled Deepslate;Terracotta;Mossy Cobblestone |C2=Diamond
|A3=Diamond |B3=Diamond                                                                                                                                              |C3=Diamond
|Output=Matching Smithing Template,2
}}

{| class="article-table"
|+ Duplication 
! Item !! Material
|-
| {{ItemSprite|netherite-upgrade|text=Netherite Upgrade}} || {{BlockSprite|Netherrack|text=Netherrack}}
|-
| {{ItemSprite|sentry-armor-trim|text=Sentry Armor Trim}} || {{BlockSprite|Cobblestone|text=Cobblestone}}
|-
| {{ItemSprite|vex-armor-trim|text=Vex Armor Trim}} || {{BlockSprite|Cobblestone|text=Cobblestone}}
|-
| {{ItemSprite|wild-armor-trim|text=Wild Armor Trim}} || {{BlockSprite|Mossy Cobblestone|text=Mossy Cobblestone}}
|-
| {{ItemSprite|coast-armor-trim|text=Coast Armor Trim}} || {{BlockSprite|Cobblestone|text=Cobblestone}}
|-
| {{ItemSprite|dune-armor-trim|text=Dune Armor Trim}} || {{BlockSprite|Sandstone|text=Sandstone}}
|-
| {{ItemSprite|wayfinder-armor-trim|text=Wayfinder Armor Trim}} || {{BlockSprite|Terracotta|text=Terracotta}}
|-
| {{ItemSprite|raiser-armor-trim|text=Raiser Armor Trim}} || {{BlockSprite|Terracotta|text=Terracotta}}
|-
| {{ItemSprite|shaper-armor-trim|text=Shaper Armor Trim}} || {{BlockSprite|Terracotta|text=Terracotta}}
|-
| {{ItemSprite|host-armor-trim|text=Host Armor Trim}} || {{BlockSprite|Terracotta|text=Terracotta}}
|-
| {{ItemSprite|ward-armor-trim|text=Ward Armor Trim}} || {{BlockSprite|Cobbled Deepslate|text=Cobbled Deepslate}}
|-
| {{ItemSprite|silence-armor-trim|text=Silence Armor Trim}} || {{BlockSprite|Cobbled Deepslate|text=Cobbled Deepslate}}
|-
| {{ItemSprite|tide-armor-trim|text=Tide Armor Trim}} || {{BlockSprite|Prismarine|text=Prismarine}}
|-
| {{ItemSprite|snout-armor-trim|text=Snout Armor Trim}} || {{BlockSprite|Blackstone|text=Blackstone}}
|-
| {{ItemSprite|rib-armor-trim|text=Rib Armor Trim}} || {{BlockSprite|Netherrack|text=Netherrack}}
|-
| {{ItemSprite|eye-armor-trim|text=Eye Armor Trim}} || {{BlockSprite|End Stone|text=End Stone}}
|-
| {{ItemSprite|spire-armor-trim|text=Spire Armor Trim}} || {{BlockSprite|Purpur Block|text=Purpur Block}}
|}

{{IN|bedrock}}, spire, tide, and dune armor trims can be duplicated with more blocks than {{in|java}}. In addition to the normal blocks, Tide armor trims can be duplicated using Prismarine Bricks or Dark Prismarine, dune armor trims can be duplicated with smooth sandstone, cut sandstone, or chiseled sandstone, and spire armor trims can be duplicated with purpur pillars.<ref>{{bug|MCPE-172711||Tide, Spire, and Dune Armor Trims can be crafted from more blocks than in Java Edition}}</ref>

=== Mob loot ===
[[Elder guardian]]s have a 20% chance to drop 1 tide armor trim upon death. [[Looting]] doesn't affect this percentage, and the elder guardian doesn't need to be killed by a player in order for the trim to drop.

=== Chest loot ===
{{#invoke:LootChest|base3|netherite-upgrade-smithing-template,sentry-armor-trim-smithing-template,vex-armor-trim-smithing-template,wild-armor-trim-smithing-template,coast-armor-trim-smithing-template,dune-armor-trim-smithing-template,ward-armor-trim-smithing-template,silence-armor-trim-smithing-template,snout-armor-trim-smithing-template,rib-armor-trim-smithing-template,eye-armor-trim-smithing-template,spire-armor-trim-smithing-template}}
Note: In Woodland Mansions, only chests with random loot have the chance to contain the Vex Smithing Template, chests in the "Allium room", "Sapling farm", "Tree-chopping room" and "Fake End portal room" always generate with the same, room specific, loot.

=== Suspicious block loot ===
Items can only be extracted from [[Suspicious Block|suspicious blocks]] using a [[brush]].{{#invoke:LootChest|base3|wayfinder-armor-trim-smithing-template,raiser-armor-trim-smithing-template,shaper-armor-trim-smithing-template,host-armor-trim-smithing-template}}

== Usage ==
=== Crafting ingredient ===
{{Crafting
|A1=Diamond |B1=Matching Smithing Template                                                                                                                           |C1=Diamond
|A2=Diamond |B2=Netherrack;Cobblestone;Sandstone;End Stone;Terracotta;Terracotta;Netherrack;Cobblestone;Terracotta;Cobbled Deepslate;Blackstone;Purpur Block;Prismarine;Cobblestone;Cobbled Deepslate;Terracotta;Mossy Cobblestone |C2=Diamond
|A3=Diamond |B3=Diamond                                                                                                                                              |C3=Diamond
|Output=Matching Smithing Template,2
}}

=== Smithing ingredient ===
Smithing templates are used at a [[smithing table]]. Netherite upgrade smithing templates are used to upgrade diamond gear into netherite gear by using a netherite upgrade, a piece of diamond gear, and a [[netherite ingot]]. 

{{Smithing
|head=1
|ingredients=Netherite Upgrade +<br>Any Diamond Gear +<br>[[Netherite Ingot]]
|Netherite Upgrade
|Diamond Helmet; Diamond Chestplate; Diamond Leggings; Diamond Boots; Diamond Sword; Diamond Pickaxe; Diamond Axe; Diamond Shovel
|Netherite Ingot
|Netherite Helmet; Netherite Chestplate; Netherite Leggings; Netherite Boots; Netherite Sword; Netherite Pickaxe; Netherite Axe; Netherite Shovel
|tail=1
}}

{{FakeImage|{{Animate|Iron_Armor_with_Iron_Shaper_Trim.png; Golden_Armor_with_Golden_Shaper_Trim.png; Diamond_Armor_with_Diamond_Shaper_Trim.png; Netherite_Armor_with_Netherite_Shaper_Trim.png|180px}}|If the armor material and the trimming material are the same, the color palette used for the armor trim is darker.}}
Armor trim smithing templates are used to customize an armor piece's appearance by using a smithing template, an armor piece, and an ingot or crystal ([[emerald]], [[redstone dust]], [[lapis lazuli]], [[amethyst shard]], [[nether quartz]], [[netherite ingot]], [[diamond]], [[gold ingot]], [[iron ingot]], or [[copper ingot]]). Including all dyed leather armor colors and regular armor, there are ≈3.679x10<sup>9</sup> different possible armor pieces<!--5713438 leather colors, plus the 4 other armor materials = 5713442. 5713442 * 161 (the 160 trim combos (16 trims, 10 materials) + untrimmed) = 919864162. 919864162 * 4 (helmet, chestplate, leggings, boots) = 3679456648 ≈ 3.679x10^9-->, and 7.16x10<sup>35</sup> <!--919864162 + 1 (no armor in that slot) = 919864163. 919864163^4 = 715969952015045562662444917041515536 ≈ 7.16x10^35 total possible armor combinations-->total possible armor combinations excluding enchantments and the player not wearing armor.

Already trimmed armor can be trimmed again by applying another template on it; the old trim pattern is overwritten in the process.<ref>{{bug|MC-262538||When combining armor trims the new trim deletes the old one|WAI}}</ref> Therefore, one piece of armor cannot possess multiple trims at the same time.

Most armor trims cover a small portion of the armor piece's surface with the trim material, except for the silence armor trim, which allows the trim material to cover a majority of the armor piece's surface.

All of the trims are purely decorative, and don't impact gameplay or strength of the armor they are applied to in any way. [[Piglin]]s do not pick up any gold-trimmed armor pieces, and they are not pacified by players wearing even a full set of gold-trimmed armor (unless, of course, the armor pieces in question are themselves golden), and netherite-trimmed armor pieces can still be burned by [[fire]].

{{Smithing
|head=1
|ingredients=Any Armor Trim +<br>Any Armor Piece +<br>Any Ingot/Crystal
|Any Armor Trim Smithing Template
|Iron Helmet; Netherite Chestplate;Golden Leggings;Diamond Boots
|Amethyst Shard; Copper Ingot; Diamond; Emerald; Gold Ingot; Iron Ingot; Lapis Lazuli; Nether Quartz; Netherite Ingot; Redstone Dust; Diamond; Emerald
|Amethyst Trim Iron Helmet; Copper Trim Netherite Chestplate; Diamond Trim Golden Leggings; Emerald Trim Diamond Boots; Gold Trim Iron Helmet; Iron Trim Netherite Chestplate; Lapis Trim Golden Leggings; Quartz Trim Diamond Boots; Netherite Trim Iron Helmet; Redstone Trim Netherite Chestplate; Diamond Trim Golden Leggings; Emerald Trim Diamond Boots
|tail=1
}}

;List of color palettes for all materials
*{{ItemSprite|emerald         }} - {{TrimPalette| emerald         }}
*{{ItemSprite|redstone dust   }} - {{TrimPalette| redstone dust   }}
*{{ItemSprite|lapis lazuli    }} - {{TrimPalette| lapis lazuli    }}
*{{ItemSprite|amethyst shard  }} - {{TrimPalette| amethyst shard  }}
*{{ItemSprite|nether quartz   }} - {{TrimPalette| nether quartz   }}
*{{ItemSprite|netherite ingot }} - {{TrimPalette| netherite ingot }} (Darker: {{TrimPalette| netherite ingot |darker=1}})
*{{ItemSprite|diamond         }} - {{TrimPalette| diamond         }} (Darker: {{TrimPalette| diamond         |darker=1}})
*{{ItemSprite|gold ingot      }} - {{TrimPalette| gold ingot      }} (Darker: {{TrimPalette| gold ingot      |darker=1}})
*{{ItemSprite|iron ingot      }} - {{TrimPalette| iron ingot      }} (Darker: {{TrimPalette| iron ingot      |darker=1}})
*{{ItemSprite|copper ingot    }} - {{TrimPalette| copper ingot    }}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|firstcolumnname=Smithing Template
|showforms=y
|generatetranslationkeys=y
|displayname=Netherite Upgrade
|spritename=netherite-upgrade-smithing-template
|spritetype=item
|nameid=netherite_upgrade_smithing_template
|form=item}}
{{ID table
|displayname=Sentry Armor Trim
|spritename=sentry-armor-trim-smithing-template
|spritetype=item
|nameid=sentry_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Vex Armor Trim
|spritename=vex-armor-trim-smithing-template
|spritetype=item
|nameid=vex_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Wild Armor Trim
|spritename=wild-armor-trim-smithing-template
|spritetype=item
|nameid=wild_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Coast Armor Trim
|spritename=coast-armor-trim-smithing-template
|spritetype=item
|nameid=coast_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Dune Armor Trim
|spritename=dune-armor-trim-smithing-template
|spritetype=item
|nameid=dune_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Wayfinder Armor Trim
|spritename=wayfinder-armor-trim-smithing-template
|spritetype=item
|nameid=wayfinder_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Raiser Armor Trim
|spritename=raiser-armor-trim-smithing-template
|spritetype=item
|nameid=raiser_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Shaper Armor Trim
|spritename=shaper-armor-trim-smithing-template
|spritetype=item
|nameid=shaper_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Host Armor Trim
|spritename=host-armor-trim-smithing-template
|spritetype=item
|nameid=host_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Ward Armor Trim
|spritename=ward-armor-trim-smithing-template
|spritetype=item
|nameid=ward_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Silence Armor Trim
|spritename=silence-armor-trim-smithing-template
|spritetype=item
|nameid=silence_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Tide Armor Trim
|spritename=tide-armor-trim-smithing-template
|spritetype=item
|nameid=tide_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Snout Armor Trim
|spritename=snout-armor-trim-smithing-template
|spritetype=item
|nameid=snout_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Rib Armor Trim
|spritename=rib-armor-trim-smithing-template
|spritetype=item
|nameid=rib_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Eye Armor Trim
|spritename=eye-armor-trim-smithing-template
|spritetype=item
|nameid=eye_armor_trim_smithing_template
|form=item}}
{{ID table
|displayname=Spire Armor Trim
|spritename=spire-armor-trim-smithing-template
|spritetype=item
|nameid=spire_armor_trim_smithing_template
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Smithing Template
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Netherite Upgrade
|spritename=netherite-upgrade-smithing-template
|spritetype=item
|nameid=netherite_upgrade_smithing_template
|id=685
|form=item
|translationkey=item.smithing_template.name, upgrade.netherite_upgrade.name}}
{{ID table
|displayname=Sentry Armor Trim
|spritename=sentry-armor-trim-smithing-template
|spritetype=item
|nameid=sentry_armor_trim_smithing_template
|id=686
|form=item
|translationkey=item.smithing_template.name, trim_pattern.sentry.name}}
{{ID table
|displayname=Vex Armor Trim
|spritename=vex-armor-trim-smithing-template
|spritetype=item
|nameid=vex_armor_trim_smithing_template
|id=692
|form=item
|translationkey=item.smithing_template.name, trim_pattern.vex.name}}
{{ID table
|displayname=Wild Armor Trim
|spritename=wild-armor-trim-smithing-template
|spritetype=item
|nameid=wild_armor_trim_smithing_template
|id=689
|form=item
|translationkey=item.smithing_template.name, trim_pattern.wild.name}}
{{ID table
|displayname=Coast Armor Trim
|spritename=coast-armor-trim-smithing-template
|spritetype=item
|nameid=coast_armor_trim_smithing_template
|id=688
|form=item
|translationkey=item.smithing_template.name, trim_pattern.coast.name}}
{{ID table
|displayname=Dune Armor Trim
|spritename=dune-armor-trim-smithing-template
|spritetype=item
|nameid=dune_armor_trim_smithing_template
|id=687
|form=item
|translationkey=item.smithing_template.name, trim_pattern.dune.name}}
{{ID table
|displayname=Wayfinder Armor Trim
|spritename=wayfinder-armor-trim-smithing-template
|spritetype=item
|nameid=wayfinder_armor_trim_smithing_template
|id=698
|form=item
|translationkey=item.smithing_template.name, trim_pattern.wayfinder.name}}
{{ID table
|displayname=Raiser Armor Trim
|spritename=raiser-armor-trim-smithing-template
|spritetype=item
|nameid=raiser_armor_trim_smithing_template
|id=699
|form=item
|translationkey=item.smithing_template.name, trim_pattern.raiser.name}}
{{ID table
|displayname=Shaper Armor Trim
|spritename=shaper-armor-trim-smithing-template
|spritetype=item
|nameid=shaper_armor_trim_smithing_template
|id=700
|form=item
|translationkey=item.smithing_template.name, trim_pattern.shaper.name}}
{{ID table
|displayname=Host Armor Trim
|spritename=host-armor-trim-smithing-template
|spritetype=item
|nameid=host_armor_trim_smithing_template
|id=701
|form=item
|translationkey=item.smithing_template.name, trim_pattern.host.name}}
{{ID table
|displayname=Ward Armor Trim
|spritename=ward-armor-trim-smithing-template
|spritetype=item
|nameid=ward_armor_trim_smithing_template
|id=690
|form=item
|translationkey=item.smithing_template.name, trim_pattern.ward.name}}
{{ID table
|displayname=Silence Armor Trim
|spritename=silence-armor-trim-smithing-template
|spritetype=item
|nameid=silence_armor_trim_smithing_template
|id=697
|form=item
|translationkey=item.smithing_template.name, trim_pattern.silence.name}}
{{ID table
|displayname=Tide Armor Trim
|spritename=tide-armor-trim-smithing-template
|spritetype=item
|nameid=tide_armor_trim_smithing_template
|id=693
|form=item
|translationkey=item.smithing_template.name, trim_pattern.tide.name}}
{{ID table
|displayname=Snout Armor Trim
|spritename=snout-armor-trim-smithing-template
|spritetype=item
|nameid=snout_armor_trim_smithing_template
|id=694
|form=item
|translationkey=item.smithing_template.name, trim_pattern.snout.name}}
{{ID table
|displayname=Rib Armor Trim
|spritename=rib-armor-trim-smithing-template
|spritetype=item
|nameid=rib_armor_trim_smithing_template
|id=695
|form=item
|translationkey=item.smithing_template.name, trim_pattern.rib.name}}
{{ID table
|displayname=Eye Armor Trim
|spritename=eye-armor-trim-smithing-template
|spritetype=item
|nameid=eye_armor_trim_smithing_template
|id=691
|form=item
|translationkey=item.smithing_template.name, trim_pattern.eye.name}}
{{ID table
|displayname=Spire Armor Trim
|spritename=spire-armor-trim-smithing-template
|spritetype=item
|nameid=spire_armor_trim_smithing_template
|id=696
|form=item
|translationkey=item.smithing_template.name, trim_pattern.spire.name
|foot=1}}

== Achievements ==
{{load achievements|Smithing with style}}

== Advancements ==
{{load advancements|Crafting a New Look;Smithing with Style}}

== Video ==
{{yt|klP9SrJFDU8}}

== History ==
{{History|java}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|[[File:Netherite Upgrade Smithing Template JE1 BE1.png|32px]] [[File:Sentry Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Vex Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Wild Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Coast Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Dune Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Ward Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Tide Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Snout Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Rib Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Eye Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Spire Armor Trim Smithing Template JE1 BE1.png|32px]] Added smithing templates behind the "Update 1.20" experimental datapack.}}
{{History|||snap=23w05a|Smithing templates can be used to trim leather armor.
|Gold, iron, diamond, and netherite armor can be trimmed with their respective material.
|The dune, coast, wild, and sentry armor trims now always generate two templates in a chest when found.
|Increased the chances for all smithing templates that generate in chest loot to spawn:
*Netherite upgrade chance to find increased from 3.2% to 10%.
*Coast chance to find increased from 11.1% to 16.7%.
*Dune chance to find increased from 11.1% to 14.3%.
*Eye chance to find increased from 4.7% to 10% in alter chests, and to 100% in library chests.
*Rib chance to find increased from 4.7% to 6.7%.
*Sentry chance to find increased from 20% to 25%.
*Snout chance to find increased from 4.7% to 8.3%.
*Spire chance to find increased from 4.7% to 6.7%.
*Vex chance to find increased from 4.7% to 50%.
*Ward chance to find increased from 4.7% to 5%.
*Wild chance to find increased from 20% to 33%.}}
{{History||1.20|snap=23w12a|Smithing templates are now available without using the "Update 1.20" experimental datapack.|[[File:Wayfinder Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Raiser Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Shaper Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Host Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Silence Armor Trim Smithing Template JE1 BE1.png|32px]] Added wayfinder, raiser, shaper, host, and silence armor trim smithing templates.
|[[File:Sentry Armor Trim Smithing Template JE2 BE2.png|32px]] [[File:Dune Armor Trim Smithing Template JE2 BE2.png|32px]] Changed the textures of the sentry and dune armor trim smithing templates.
|The pattern textures of dune and sentry armor trims are changed from [[File:Armor Trim Dune (sample model) JE1 BE1.png|24px]] [[File:Armor Trim Sentry (sample model) JE1 BE1.png|24px]] to [[File:Armor Trim Dune (sample model) JE2 BE2.png|24px]] [[File:Armor Trim Sentry (sample model) JE2 BE2.png|24px]].<br>
Those previous patterns were left with different names: dune was renamed sentry and sentry was renamed shaper.}}
{{History|||snap=23w16a|Wayfinder, raiser, shaper, and host armor trim no longer generates in [[suspicious sand]] in [[trail ruins]].|Due to the split of the archaeological loot tables for the suspicious gravel within the [[trail ruins]]; wayfinder, raiser, shaper, and host armor trim now are in the rare loot.}}
{{History|||snap=23w17a|The probability of the wayfinder, raiser, shaper, and host armor trim to generate in [[suspicious gravel]] in [[trail ruins]] has been changed from 1/11 to 1/12.|The player now get the [[advancement]] "Crafting a new look" when they craft a trimmed armor at a [[smithing table]] using a smithing template, "Smithing with style" when they apply these smithing templates at least once on their armor: Spire, Snout, Rib, Ward, Silence, Vex, Tide, and Wayfinder.}}

{{History|bedrock}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.21|[[File:Netherite Upgrade Smithing Template JE1 BE1.png|32px]] [[File:Sentry Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Vex Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Wild Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Coast Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Dune Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Ward Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Tide Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Snout Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Rib Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Eye Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Spire Armor Trim Smithing Template JE1 BE1.png|32px]] Added smithing templates behind the "[[Bedrock Edition 1.20.0|Next Major Update]]" [[experimental]] toggle.}}
{{History|||snap=beta 1.19.80.22|[[File:Wayfinder Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Raiser Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Shaper Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Host Armor Trim Smithing Template JE1 BE1.png|32px]] [[File:Silence Armor Trim Smithing Template JE1 BE1.png|32px]] Added wayfinder, raiser, shaper, host, and silence armor trim smithing templates.
|[[File:Sentry Armor Trim Smithing Template JE2 BE2.png|32px]] [[File:Dune Armor Trim Smithing Template JE2 BE2.png|32px]] Changed the textures of the sentry and dune armor trim smithing templates.
|The pattern textures of dune and sentry armor trims are changed from [[File:Armor Trim Dune (sample model) JE1 BE1.png|24px]] [[File:Armor Trim Sentry (sample model) JE1 BE1.png|24px]] to [[File:Armor Trim Dune (sample model) JE2 BE2.png|24px]] [[File:Armor Trim Sentry (sample model) JE2 BE2.png|24px]].<br>
Those previous patterns were left with different names: dune was renamed sentry and sentry was renamed shaper.}}
{{History||1.20.0|snap=beta 1.20.0.21|Smithing templates are now available without using the "Next Major Update" experimental toggle.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== Trivia ==
* Smithing templates were named "Smithing Blueprints" in the prototype but was changed because the word "blueprint" sounded modern and technical.<ref>{{ytl|klP9SrJFDU8|Minecraft 1.20: Armor Trims - What Do They Mean?|Minecraft|May 4, 2023|t=98}}</ref>
* When Mojang developer Gnembon was working on armor trims, he accidentally messed up their rendering, making them jet through the player's body in a weird fashion, similar to what appears in {{w|Salvador Dalí}}'s paintings where a hand might poke through a forehead.<ref>{{ytl|ghQODkq4ITI|Mojang Dev Comes To Hermitcraft! (Mojang Developer Gnembom Interview)|GoodVodsWithScar|June 23, 2023|t=1980}}</ref>
* Some of the armor trims feature patterns based on a [[mob]] or [[block]] that is found in the same [[Generated structures|structure]] as the corresponding smithing template.<ref name=":0">"Some of the armor trims reflect the place where you found the template, for example bastions contain a piglin-inspired trim."-[[Sofia Dankis]]-{{Mcnet|armor-trims-coming-minecraft-1-20|Armor Trims Coming to Minecraft 1.20|January 24, 2023}}</ref>
** The spire armor trim resembles a [[shulker]].
** The vex armor trim resembles an [[evoker]]. As an item in the [[inventory]], it resembles the wing or the vein texture of a [[vex]].
** The wild armor trim has moss growing on 3 of its corners.
** The coast armor trim appears to have barnacles attached to it.
** The ward armor trim, as an item in the inventory, resembles the faces inside a [[warden]]'s chest.
** The silence armor trim appears to have sculk creeping onto / infecting it.
** The tide armor trim resembles [[Prismarine|prismarine bricks]].
** The snout armor trim resembles a [[piglin]]<ref name=":0" />.
** The rib armor trim resembles a [[wither skeleton]].
** The eye armor trim resembles an [[eye of ender]]. There are also two eyes on the head part of the armor trim that resemble those of an [[enderman]].
* ''Netherite upgrade smithing template'' (35 characters with "_" and 32 characters without "_") and ''sentry armor trim smithing template'' (35 characters with "_" and 31 characters without "_") are the current longest name for item ID, while ''[[polished blackstone pressure plate]]'' and ''[[cracked polished blackstone bricks]]'' have 34 characters with "_" and 31 characters without "_".
* The silence armor trim is the rarest trim, due to being found in ancient cities in the deep dark, and having only a 1.2% chance to be per chest.
* When [[lapis lazuli]] is used as trim material, it is called "Lapis" instead of its full name "Lapis Lazuli"; this is the only instance of the abbreviation "Lapis" being used in-game.<ref>{{bug|MC-262486|||WAI}}</ref>

== Gallery ==
=== Sprites ===
<gallery>
Netherite Upgrade Smithing Template.png|Netherite Upgrade
Sentry Armor Trim Smithing Template.png|Sentry Armor Trim
Vex Armor Trim Smithing Template.png|Vex Armor Trim
Wild Armor Trim Smithing Template.png|Wild Armor Trim
Coast Armor Trim Smithing Template.png|Coast Armor Trim
Dune Armor Trim Smithing Template.png|Dune Armor Trim
Wayfinder Armor Trim Smithing Template.png|Wayfinder Armor Trim
Raiser Armor Trim Smithing Template.png|Raiser Armor Trim
Shaper Armor Trim Smithing Template.png|Shaper Armor Trim
Host Armor Trim Smithing Template.png|Host Armor Trim
Ward Armor Trim Smithing Template.png|Ward Armor Trim
Silence Armor Trim Smithing Template.png|Silence Armor Trim
Tide Armor Trim Smithing Template.png|Tide Armor Trim
Snout Armor Trim Smithing Template.png|Snout Armor Trim
Rib Armor Trim Smithing Template.png|Rib Armor Trim
Eye Armor Trim Smithing Template.png|Eye Armor Trim
Spire Armor Trim Smithing Template.png|Spire Armor Trim
</gallery>

=== Armor trim patterns ===
<gallery>
Armor Trim Sentry (sample model).png|Sentry Armor Trim
Armor Trim Vex (sample model).png|Vex Armor Trim
Armor Trim Wild (sample model).png|Wild Armor Trim
Armor Trim Coast (sample model).png|Coast Armor Trim
Armor Trim Dune (sample model).png|Dune Armor Trim
Armor Trim Wayfinder (sample model).png|Wayfinder Armor Trim
Armor Trim Raiser (sample model).png|Raiser Armor Trim
Armor Trim Shaper (sample model).png|Shaper Armor Trim
Armor Trim Host (sample model).png|Host Armor Trim
Armor Trim Ward (sample model).png|Ward Armor Trim
Armor Trim Silence (sample model).png|Silence Armor Trim
Armor Trim Tide (sample model).png|Tide Armor Trim
Armor Trim Snout (sample model).png|Snout Armor Trim
Armor Trim Rib (sample model).png|Rib Armor Trim
Armor Trim Eye (sample model).png|Eye Armor Trim
Armor Trim Spire (sample model).png|Spire Armor Trim
</gallery>

=== Official Artwork ===
<gallery>
T&T Thumbnail.jpg|[[Sunny]] wearing amethyst armor trims.
Warden Chasing Alex with Silence Trim Pixel Art.png|A [[warden]] chasing Alex holding the silence armor trim.
Alex Trimming Armor in Smithing Table Pixel Art.png|Alex adding the silence armor trim and amethyst on iron armor.
Alex Wearing Iron Armor with Amethyst Pixel Art.jpg|Alex wearing the trimmed iron armor.
File:Live2023-01.jpeg|Noor working on trimmed iron armor.
</gallery>

=== Screenshots ===
<gallery>
Kingbdogz Armor Trim 1.jpg|Redstone trims on diamond armor.
Kingbdogz Armor Trim 2.jpg|Gold trims on netherite armor.
Too Many Trims.jpg|A large amount of armor trims.
Kingbdogz Armor Trim 3.jpg|Gold on netherite.
Kingbdogz Armor Trim 4.jpg|Diamond on diamond.
New Armor Trims in 23W12A.jpg|<ref>{{Tweet|kingbdogz|1638580472962850831|new trims got the drip The new "Silence" armor trim to the left is now the hardest trim to get, with only a 1% chance per chest to spawn in Ancient Cities. Definitely gonna be a challenge to get!|March 22, 2023}}</ref>
Emerald Armor.png|Emerald on gold.
Xilefian Armor Trims 1.png|[[Xilefian]] showing how armor trims work.
Xilefian Armor Trims 2.png|[[Xilefian]] showing how armor trims work.
Xilefian Armor Trims 3.png|[[Xilefian]] showing how armor trims work.
Armor Trims On Netherite Armors.png|A display of all eleven (before [[Java Edition 23w12a]]) armor trims and ten colors on netherite armors.
Armor Trim Showcase.png|A display of all eleven (before [[Java Edition 23w12a]]) armor trims, on netherite armor using emerald as the trim material.
Armor Trim Colors.png|A display of all ten armor trim colors, using the ward trim on a netherite helmet.
Silence Armor Trim on All Armors.png|A display of all ten colors of the silence armor trim on all armors.
Image 2023-06-07 154100087.png|A screenshot of every armor trim in every color(besides quartz) on leather armor.
Armor Trim Friends.jpg|Official screenshot of [[Alex]] and [[Zuri]] wearing armor trims.
LadyAgnes Armor Trims.jpg|Copper trims on netherite armor.
Trim Lineup.jpg
Fancy Delta.jpg|[[Kai]] wearing trimmed armor in a [[Basalt Delta]].
Trims & Pots.jpg
Noor Gold Armor Trim .jpeg
Noor Diamond Armor Trim.jpeg
Noor Netherite Armor Trim.jpeg
Noor Iron Armor Trim.jpeg
</gallery>

== References ==
{{Reflist}}

{{Items}}

[[Category:Bedrock Edition]]
[[Category:Non-renewable resources]]

[[de:Schmiedevorlage]]
[[es:Molde de herrería]]
[[fr:Modèle de forge]]
[[ja:鍛冶型]]
[[pl:Szablon kowalski]]
[[pt:Molde de ferraria]]
[[ru:Кузнечный шаблон]]
[[uk:Ковальський шаблон]]
[[zh:锻造模板]]</li></ul>
pre1Added functions.
pre3Commands are no longer allowed to begin with a / (forward slash)
Comments can now only be preceded with #; using // is no longer allowed
pre4Added new arguments to the /function command: [if|unless] [selector]
pre6Skipped functions (when a conditional fails) are now considered failures when used in commands.

Issues

Issues relating to "Function (Java Edition)" are maintained on the bug tracker. Report issues there.

References

Advertisement