If this move affects many pages or may potentially be controversial, do not move the page until a consensus is reached. [discuss]
When moving, be sure to use the appropriate tool instead of simply copying and pasting the page's contents, to preserve edit history.
Functions allow players to run lists of commands using text files with the extension .mcfunction. It is recommended to use UTF-8 encoding (without BOM) for function files to prevent any problems. This page covers how to use functions in Java Edition.
Usage
To utilize functions, the text files must first be placed into a top-level folder within [WORLD_NAME]/datapacks/[DATA_PACK_NAME]/data/[NAMESPACE]/functions. The name of the new top-level folder will be the namespace used when running the functions inside. Functions can also be placed into subfolders within the top-level folder.
For example, running the function custom:example/test will refer to the file located at data/custom/functions/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
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. Functions will use the command environment of whatever called the function. This includes command sender, position, rotation, etc.
Changes to the command environment that happen within a function will not affect the command environment used by the other commands within that same function (or within its child functions) until the next iteration, regardless of the order of commands. The /execute command is an exception and will update the command environment.
For example:
execute as @a at @s run function foo:bar
foo:bar
teleport @s ~ ~5 ~ setblock ~ ~-1 ~ emerald_block execute at @s run 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 target selector arguments.
There are several methods of running a function file in-game:
Commands
- Allows players to run a function once.
- The commands in the function are run through the entity or command block that ran the
/functioncommand. - The optional arguments
ifandunlesswill make the function only run when theselectorwas found or not found in the world respectively. - Usage:
/function <name>
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"
}
}
Tags
Functions can be grouped together using tags in data packs. These tags can then be called to run all the functions inside that tag with /function #(namespace):tag.
Functions tagged in minecraft:tick will automatically run every tick at the beginning of the tick. Functions tagged in minecraft:load will run after (re)loading the datapack.
History
| Java Edition | |||||
|---|---|---|---|---|---|
1.12{{Extension DPL}}<ul><li>[[Knowledge Book|Knowledge Book]]<br/>{{exclusive|java}}
{{Item
| image = Knowledge Book.png
| renewable = No
| stackable = No
| rarity = Epic
}}
A '''knowledge book''' is a utility item that reveals available [[crafting]] recipes to the player when {{control|used|use}}.
== Obtaining ==
Knowledge books can be obtained only by using [[commands]], as it is not found in the [[creative]] inventory; therefore, it is impossible to obtain in other modes such as [[survival]] and [[adventure]] except with commands.
For example, to give oneself a knowledge book that reveals the recipes for [[bucket]]s and [[flower pot]]s, use: {{cmd|give @s minecraft:knowledge_book{Recipes:["minecraft:bucket", "minecraft:flower_pot"]} }}.
== Usage ==
Knowledge books are used to reveal recipes to the player who uses it, by adding it to their [[recipe book]]. Using a knowledge book consumes it, removing it from the player's inventory.
Knowledge books are especially useful to mapmakers in conjunction with {{cmd|gamerule doLimitedCrafting true}}, because then any item is craftable only if its recipe is unlocked first.
== Sounds ==
{{Sound table
|sound=Chiseled bookshelf insert1.ogg
|sound2=Chiseled bookshelf insert2.ogg
|sound3=Chiseled bookshelf insert3.ogg
|sound4=Chiseled bookshelf insert4.ogg
|subtitle=Book placed
|source=block
|description=When a knowledge book is placed in a chiseled bookshelf
|id=block.chiseled_bookshelf.insert
|translationkey=subtitles.chiseled_bookshelf.insert
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.85, or 1.1 for each sound</ref>
|distance=16}}
{{Sound table
|sound=Chiseled bookshelf pickup1.ogg
|sound2=Chiseled bookshelf pickup2.ogg
|sound3=Chiseled bookshelf pickup3.ogg
|subtitle=Book taken
|source=block
|description=When a knowledge book is removed from a chiseled bookshelf
|id=block.chiseled_bookshelf.pickup
|translationkey=subtitles.chiseled_bookshelf.take
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|distance=16
|foot=1}}
== Data values ==
=== ID ===
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Knowledge Book
|spritetype=item
|nameid=knowledge_book
|form=item
|foot=1}}
=== Item data ===
Recipe books use the NBT tag <code>Recipes</code> to indicate the recipes they contain.
''The following NBT structure is provided to show how the <code>Recipes</code> tag is organized, and is not comprehensive above the <code>tag</code> tag. The full NBT for an item can be found [[Chunk format#Items and XP Orbs|here]].''
<div class="treeview" style="margin-top: 0;">
* {{nbt|compound}} Entity data
** {{nbt|compound|Item}}: The item
*** {{nbt|compound|tag}}: Additional information about the item. This tag is optional for most items.
**** {{nbt|list|Recipes}}: The list of recipes this book contains.
***** {{nbt|string}} the name of a recipe, for instance <code>minecraft:gold_nugget</code> or <code>minecraft:gold_ingot_from_nuggets</code>
</div>
== History ==
{{History|java}}
{{History||1.12|snap=17w13a|[[File:Knowledge Book JE1.png|32px]] Added knowledge books.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 453.}}
{{History||1.14|snap=18w43a|[[File:Knowledge Book JE2.png|32px]] The texture of knowledge books has now been changed.}}
{{History||1.20|snap=1.20 Release Candidate 1|Knowledge books can now be placed in [[chiseled bookshelf|chiseled bookshelves]].}}
{{History|Foot}}
== Issues ==
{{Issue list}}
== See also ==
* [[Book]]
* [[Enchanted Book]]
* {{cmd|recipe}} command
{{Items}}
[[Category:Non-renewable resources]]
[[de:Buch des Wissens]]
[[es:Enciclopedia]]
[[fr:Livre des connaissances]]
[[ja:知恵の本]]
[[ko:지식의 책]]
[[lzh:天工開物]]
[[pl:Księga wiedzy]]
[[pt:Enciclopédia]]
[[ru:Книга знаний]]
[[zh:知识之书]]</li><li>[[Trident|Trident]]<br/>{{For|the Hidden Depths DLC weapon in ''Minecraft Dungeons''|MCD:Trident}}
{{ItemEntity
|durability= 250
|renewable= Yes
|stackable= No
|size=Height: 0.25 Blocks<br>Width: 0.25 Blocks
|title=Trident|image= <gallery>
Trident (item).png | Item
Trident.png | Entity
</gallery>}}
A '''trident''' is a [[weapon]] used in both melee and ranged combat and is a rare drop from [[drowned]].
==Obtaining==
Tridents are not craftable. A trident can be obtained only when dropped by a [[drowned]].
===Mob loot===
15% of [[drowned]] {{in|bedrock}} (6.25% {{in|java}}) spawn with a trident of random durability as their natural weapon, and only the drowned with a trident have a 8.5% chance of dropping the trident, increasing by 1% with each level of [[Looting]].
Only naturally-spawned drowned can spawn with a trident and have a chance of dropping one. {{IN|Java}}, a trident held by a drowned has a chance to be enchanted, but the trident's enchantments have no effects for drowned.<ref>{{bug|MC-127321}}</ref>
===Thrown tridents===
Tridents thrown onto the ground by a player can be picked up; however, tridents thrown by [[drowned]] cannot be picked up, similar to arrows shot by [[skeleton]]s, [[stray]]s, and [[pillager]]s. Only the owner of a trident thrown in Creative mode or enchanted with Loyalty can pick it up; other players in Creative and players in Survival mode including its own owner can't pick up the trident thrown in Creative.
===Trading===
Drowned who are holding tridents will sometimes drop their trident at full durability if given a nautilus shell when they aren't attacking anything.{{only|BE}}
==Usage==
===Drowned===
{{main|Drowned}}
15% of drowned {{in|bedrock}}, and 6.25% {{in|java}}, spawn with a trident as its natural weapon. It throws the trident at its opponent every 1.5 seconds, dealing {{hp|9}} [[damage]] in normal difficulty. A drowned can throw unlimited tridents, and these tridents cannot be picked up by the [[player]].
A [[villager]] can be turned into a [[zombie villager]] if it is killed by a trident thrown by a drowned: the chance of conversion is 0% on Easy [[difficulty]], 50% on Normal, and 100% on Hard and [[Hardcore]].
{{IN|bedrock}}, a drowned can use the trident's melee attack if its target is within three blocks. The melee attack deals {{hp|9}} damage.
===Melee attack===
Pressing {{control|attack}} while holding a trident deals damage to both [[mob]]s and players. Tridents deal {{hp|9}} melee damage. A successful hit consumes durability of the trident.
===Ranged attack===
[[File:Steve aiming with Trident.png|150px]] [[File:Alex aiming with Trident.png|150px]]
Pressing and holding {{control|use}} while holding a trident charges it. When released at full charge, the trident is thrown and deals damage to any [[entity]] it hits. It flies on a ballistic trajectory similar to that of an [[arrow]], but at 80% strength. If the trident hits a block, it sticks to the block. If it hits an entity, it bounces off the entity and lands nearby. It is also blocked by [[shield]]s and can be retrieved once it lands in the ground. Thrown tridents can trigger wooden [[button]]s, wooden [[pressure plate]]s, and [[target]] blocks. A trident can be thrown at a [[chorus flower]] or [[pointed dripstone]] to break it, which causes the block to be dropped as its respective item.
{{IN|bedrock}} and [[Java Edition Combat Test 4]], tridents can be shot by [[dispenser]]s regardless of enchantment.
Tridents [[Enchanting#Summary_of_enchantments_by_item|enchanted]] with [[Loyalty]] return to the thrower after hitting an entity{{only|java}}/hitting and bouncing off an entity then hitting a block{{only|bedrock}}<ref>{{bug|MCPE-51726}}</ref> or just a block. A Loyalty-enchanted trident fired from a [[dispenser]] just sticks to the block it strikes. Higher levels of enchantment result in shorter recovery times. {{IN|java}}, throwing a trident enchanted with Loyalty into the [[void]] destroys it,<ref>{{bug|MC-125755|||WAI}}</ref> while {{in|bedrock}} it automatically returns to the player. Tridents (if enchanted with Loyalty), can take [[fire]] damage but still return to the player if thrown in [[lava]]. This is especially helpful in [[the Nether]] should the [[player]] be using a trident instead of a [[bow]]. If a trident enchanted with Loyalty attempts to return to a player with no available inventory space, the trident floats near the player until inventory space becomes available.
Thrown tridents take 1 durability damage, regardless of whether it hit an entity or not. Tridents with 1 durability remaining cannot be thrown.
Tridents enchanted with [[Riptide]] launch the player a certain distance when thrown, with the distance increasing for higher enchantment levels. They can be thrown only if the player is standing in [[water]], or if it is raining on the block they are standing on. If the player charges it but walks into a nearby dry area, the charge is canceled. If the player throws a Riptide trident and collides with a mob, the mob takes melee damage (including critical damage if the player is falling). {{IN|java}} tridents enchanted with Riptide take one durability damage upon throwing, and lose an additional 1 durability if it collides with an entity on both editions. Each level of Riptide increases the distance traveled by six blocks. The enchantment at level one launches the player nine blocks, fifteen blocks at level two, and twenty-one blocks at level three.
Tridents enchanted with [[Channeling]] summon a lightning bolt if there is a thunderstorm, although only upon hitting a mob or player standing in the rain as well as a [[Lightning Rod|lightning rod]] placed in the rain.
Unlike other projectiles, the trident does not slow down when thrown through water or lava.
{{IN|java}}, the [[Impaling]] enchantment affects ''all water mobs''. {{IN|bedrock}}, it deals extra damage to [[player]]s and mobs in water or rain.
Unlike arrows, thrown tridents do not despawn.{{only|bedrock}} Tridents despawn after 60 seconds if they are not picked up.{{only|java}}<ref>{{bug|MC-125817}}</ref>
;Magical damage
Using [[Riptide]], nearby players or mobs are dealt [[Harming|splash damage]] within an 8.25×8.25×4.25 cubical area. It stacks with the [[Impaling]] enchantment and [[Strength]] effect. Critical hits do not increase splash damage, but affect the target.
{{IN|bedrock}}, thrown tridents can damage the [[ender dragon]] while resting on the bedrock fountain. {{IN|java}}, they act just like arrows — deflected, but burn as if they had [[Flame]].
=== Damage===
Thrown tridents and splashes deal {{hp|8}} damage. The damage remains the same regardless of the trident's speed. It has a faster charging speed than a [[bow]] or [[crossbow]] (barring the [[Quick Charge]] enchantment.)
====Java Edition====
{{IN|java}}, tridents have an attack speed of 1.1 and take ~0.91 seconds to [[Damage#Attack cooldown|recover]].
{| class="wikitable" style="text-align:center" data-description="Sword attack damage by type"
!Attack
!{{ItemSprite|Trident|text=Melee}}
!{{ItemSprite|Trident|text=Melee (critical)}}
!{{ItemSprite|Trident|text=Range}}
|-
!Attack damage
|{{hp|9}}
|{{hp|13.5}}
|{{hp|8}}
|-
!Damage/Second (DPS)<ref group="note">This does not take travel time into account</ref>
|9.9
|14.3
| ?
|-
!Lifetime damage inflicted<ref group="note">The formula to find the total lifetime damage is ''Durability × Damage per hit = Lifetime damage minimum'' (e.g., 250 × 9 = 2250). It ignores enchantments and critical hits, and assumes the trident is at maximum charge</ref>
|{{hp|2250}}
|{{hp|3375}}
|{{hp|2000}}
|-
!Durability
| colspan="3" |250
|}
{{notelist}}
====Bedrock Edition====
{{IN|bedrock}}, tridents have no attack cooldown and do the following damage:
{| class="wikitable" style="text-align:center" data-description="Sword attack damage by type"
!Attack
!{{ItemSprite|Trident|text=Melee}}
!{{ItemSprite|Trident|text=Range}}
|-
!Attack damage
|{{hp|9}}
|{{hp|8}}
|-
! ''Lifetime damage inflicted''<ref group="note">The formula to find the total lifetime damage is ''Durability × Damage per hit = Lifetime damage minimum''. It excludes enchantments and critical hits.</ref>
|{{hp|2259}}
|{{hp|2008}}
|-
!Durability
| colspan="2" |251
|}
{{notelist}}
===Elytra===
A trident with the [[Riptide]] enchantment can be used to propel a player with a pair of [[elytra]], but only in [[rain]]y weather, during snowy weather in certain biomes<ref>{{bug|MC-128169}}</ref> or while the [[player]] is in a body of water. A Riptide trident can boost the player to speeds as high as 125 blocks per second,<ref>{{bug|MC-147173||Using riptide tridents while elytra flying can boost the player to excessive speeds}}</ref> much faster than the 33.5 blocks-per-second speed achievable using [[firework rocket]]s.
===Impaling damage ===
{{IN|java}}, the [[Impaling]] enchantment deals extra damage to all water mobs. {{IN|bedrock}} and in [[Java Edition Combat Test 3]], it deals extra damage to all players and mobs in water or rain.
{| class="wikitable" style="text-align:center" data-description="Trident Damage by Impaling Level" |
|+ Trident Damage by Impaling level
|-
!Level
!Increase
!Melee
!Ranged
|-
|I
| adds {{hp|2.5}}
|{{hp|11.5}}
|{{hp|10.5}}
|-
|II
|adds {{hp|5}}
|{{hp|14}}
|{{hp|13}}
|-
|III
| adds {{hp|7.5}}
|{{hp|16.5}}
|{{hp|15.5}}
|-
|IV
|adds {{hp|10}}
|{{hp|19}}
|{{hp|18}}
|-
|V
|adds {{hp|12.5}}
|{{hp|21.5}}
|{{hp|20.5}}
|}
{{-}}
===Enchantments===
Tridents have a base enchantability of 1 and can receive the following [[enchantment]]s:
{| class="wikitable col-2-center col-3-right"
|+
!Name
!Max Level
![[Enchanting|Method]]
|-
|[[Loyalty]]<ref group="note" name="note1">Loyalty and Channeling are mutually exclusive from Riptide, but not from each other.</ref>
|III
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|-
|[[Channeling]]<ref group="note" name="note1" />
|I
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|-
|[[Riptide]]<ref group="note" name="note1" />
|III
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|-
|[[Impaling]]
|V
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|-
|[[Unbreaking]]
|III
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|-
|[[Mending]]
|I
|{{Inventory slot|Anvil}}
|-
|[[Curse of Vanishing]]
|I
|{{Inventory slot|Anvil}}
|}
; Notes
<references group="note" />
===Repairing ===
Tridents have the same [[durability]] as an [[sword|iron sword]]. Whenever a trident deals damage, its durability decreases by 1.
Tridents can be repaired by:
*combining two damaged tridents in a [[grindstone]], or on a [[crafting table]] or the 2×2 inventory grid, which removes any enchantments except for [[Curse of Vanishing]] and [[Curse of Binding]]
*combining a damaged trident with another trident on an [[anvil]], which preserves enchantments.
*applying the [[Mending]] enchantment.
==Sounds==
{{Edition|Java}}:<br>
Thrown tridents use the Friendly Creatures sound category for entity-dependent sound events.
{{Sound table
|sound=Trident pierce1.ogg
|sound2=Trident pierce2.ogg
|sound3=Trident pierce3.ogg
|subtitle=Trident stabs
|source=neutral
|description=When a trident hits a mob
|id=item.trident.hit
|translationkey=subtitles.item.trident.hit
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Trident ground impact1.ogg
|sound2=Trident ground impact2.ogg
|sound3=Trident ground impact3.ogg
|sound4=Trident ground impact4.ogg
|subtitle=Trident vibrates
|source=neutral
|description=When a trident hits the ground
|id=item.trident.hit_ground
|translationkey=subtitles.item.trident.hit_ground
|volume=0.9
|pitch={{frac|12|11}}-{{frac|4|3}}
|distance=16}}
{{Sound table
|sound=Trident throw1.ogg
|sound2=Trident throw2.ogg
|subtitle=Trident clangs
|source=player
|description=When a player throws a trident
|id=item.trident.throw
|translationkey=subtitles.item.trident.throw
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|rowspan=2
|sound=Trident thunder1.ogg
|sound2=Trident thunder2.ogg
|subtitle=Trident thunder cracks
|source=neutral
|description=When a Channeling trident hits a mob
|id=item.trident.thunder
|translationkey=subtitles.item.trident.thunder
|volume=5.0
|pitch=1.0
|distance=16}}
{{Sound table
|subtitle=Trident thunder cracks
|source=weather
|description=When a trident with Channeling strikes a lightning rod
|id=item.trident.thunder
|translationkey=subtitles.item.trident.thunder
|volume=5.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Riptide I.ogg
|subtitle=Trident zooms
|source=player
|description=When a Riptide I trident is used
|id=item.trident.riptide_1
|translationkey=subtitles.item.trident.riptide
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Riptide II.ogg
|subtitle=Trident zooms
|source=player
|description=When a Riptide II trident is used
|id=item.trident.riptide_2
|translationkey=subtitles.item.trident.riptide
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Riptide III.ogg
|subtitle=Trident zooms
|source=player
|description=When a Riptide III or higher trident is used
|id=item.trident.riptide_3
|translationkey=subtitles.item.trident.riptide
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Trident return1.ogg
|sound2=Trident return2.ogg
|sound3=Trident return3.ogg
|subtitle=Trident returns
|source=neutral
|description=When a trident starts returning <ref group=sound>The first sound is only played {{frac|1|9}} of the time, while the others are played {{frac|4|9}} of the time</ref>
|id=item.trident.return
|translationkey=subtitles.item.trident.return
|volume=8.0
|pitch=''varies'' <ref group=sound>1.0 for <code>return1</code>, 1.0/0.8/1.2/1.2 for <code>return2</code>, and 1.0/0.8/0.8/1.2 for <code>return3</code></ref>
|distance=16}}
{{Sound table
|sound=Trident throw1.ogg
|sound2=Trident throw2.ogg
|subtitle=Drowned throws Trident
|source=hostile
|description=When a drowned shoots a trident
|id=entity.drowned.shoot
|translationkey=subtitles.entity.drowned.shoot
|volume=1.0
|pitch={{frac|5|6}}-1.25
|distance=16}}
{{Sound table
|sound=Random break.ogg
|subtitle=Item breaks
|source=player
|description=When a trident's durability is exhausted
|id=entity.item.break
|translationkey=subtitles.entity.item.break
|volume=0.8
|pitch=0.8-1.2
|distance=16
|foot=1}}
{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Trident pierce1.ogg
|sound2=Trident pierce2.ogg
|sound3=Trident pierce3.ogg
|source=player
|description=When a trident hits a mob
|id=item.trident.hit
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Trident ground impact1.ogg
|sound2=Trident ground impact2.ogg
|sound3=Trident ground impact3.ogg
|sound4=Trident ground impact4.ogg
|source=player
|description=When a trident hits the ground
|id=item.trident.hit_ground
|volume=0.9
|pitch=1.0}}
{{Sound table
|sound=Trident throw1.ogg
|sound2=Trident throw2.ogg
|source=player
|description=When a player throws a trident
|id=item.trident.throw
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Trident thunder1.ogg
|sound2=Trident thunder2.ogg
|source=player
|description=When a trident with Channeling strikes a mob<ref group="sound">{{Bug|MCPE-43402}}</ref><wbr><ref group=sound>{{bug|MCPE-173931||Tridents don't make channeling sounds when striking a lightning rod}}</ref><wbr>{{Upcoming|BE 1.20.30}}
|id=item.trident.thunder
|volume=1.0<wbr>{{Until|BE 1.20.30}}<br>1000.0<wbr>{{Upcoming|BE 1.20.30}}
|pitch=1.0}}
{{Sound table
|sound=Riptide I.ogg
|source=player
|description=When a Riptide I trident is used
|id=item.trident.riptide_1
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Riptide II.ogg
|source=player
|description=When a Riptide II trident is used
|id=item.trident.riptide_2
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Riptide III.ogg
|source=player
|description=When a Riptide III trident is used
|id=item.trident.riptide_3
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Trident return1.ogg
|sound2=Trident return2.ogg
|sound3=Trident return3.ogg
|source=player
|description=When a trident starts returning <ref group=sound>The first sound is only played {{frac|1|9}} of the time, while the others are played {{frac|4|9}} of the time</ref>
|id=item.trident.return
|volume=8.0
|pitch=''varies'' <ref group=sound>1.0 for <code>return1</code>, 1.0/0.8/1.2/1.2 for <code>return2</code>, and 1.0/0.8/0.8/1.2 for <code>return3</code></ref>}}
{{Sound table
|sound=Trident throw1.ogg
|sound2=Trident throw2.ogg
|source=hostile
|description=When a drowned shoots a trident<ref group="sound">{{Bug|MCPE-53297}}</ref><wbr>{{Upcoming|BE 1.20.30}}
|id=mob.drowned.shoot
|volume=1.0
|pitch=0.8-1.2
|foot=1}}
==Data values==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Trident
|spritetype=item
|nameid=trident
|form=item
|foot=1}}
{{ID table
|edition=java
|showentitytags=y
|generatetranslationkeys=y
|displayname=Trident
|spritetype=entity
|nameid=trident
|entitytags=impact_projectiles
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Trident
|spritetype=item
|nameid=trident
|id=546
|form=item
|foot=1}}
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Trident
|spritetype=entity
|nameid=thrown_trident
|id=73
|foot=1}}
===Entity data ===
Tridents have entity data associated with them that contain various properties of the entity.
{{el|java}}:
{{main|Entity format}}
{{/ED}}
{{el|bedrock}}:
:See [[Bedrock Edition level format/Entity format]].
==Achievements==
{{load achievements|Do a Barrel Roll!;Bullseye}}
==Advancements==
{{load advancements|A Throwaway Joke;Very Very Frightening;Not Today;Sniper Duel;Bullseye}}
==History==
{{History|java}}
{{History||November 18, 2017|link={{YouTubeLink|mAapz_nIC_Y}}|A trident was shown killing a [[zombie]] in a clip presented at [[MineCon Earth]].}}
{{History||1.13|snap=18w07a|[[File:Trident.png|60px]] {{InvSprite|Trident Revision 1}} Added tridents, which are currently unobtainable in [[Survival]].}}
{{History|||snap=18w10a|[[File:Trident (item).png|32px]] Tridents now have a new texture in the [[inventory]].}}
{{History|||snap=18w11a|Added [[drowned]] mobs, which can spawn with a trident, allowing tridents to now become obtainable in [[Survival]].}}
{{History|||snap=18w14a|If the [[player]] is not in [[water]] and it is not [[rain]]ing, the player can no longer throw tridents [[enchantment|enchanted]] with [[Riptide]], but they can still deal melee [[damage]].}}
{{History|||snap=18w20a|Like with swords, tridents no longer can break blocks when held in [[Creative]] mode.<ref>{{bug|MC-126300}}</ref>}}
{{History||1.14|snap=18w43a|Thrown tridents can now break [[chorus flower]]s.}}
{{History||1.15|snap=19w39a|[[File:Enchanted Trident.png|60px]] [[File:Enchanted Trident (item).gif|32px]] Tridents that are [[enchanting|enchanted]] now have a glint.
|Trident items use a 3D model again. When dropped, it rotates off center<ref>{{bug|MC-161886}}</ref> (like with beds at the time and shields currently).}}
{{History|||snap=19w42a|Trident items now use the 2D sprite again.<ref>{{bug|MC-161872}}</ref>}}
{{History||1.17|snap=20w48a|Thrown tridents can now break [[pointed dripstone]].}}
{{History|upcoming java}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=23w31a|Trident-exclusive enchantments are no longer obtainable from villager [[trading]].}}
{{History||Combat Tests|snap=1.14.3 - Combat Test|The attack speed of tridents has been increased to 2.
|The base [[damage]] of tridents has been decreased from {{hp|9}} to {{hp|7}}.
|The attack reach of tridents has been increased to 4 [[block]]s.}}
{{History|||snap=Combat Test 2|The damage of tridents has been increased to {{hp|8}}.}}
{{History|||snap=Combat Test 4|Tridents can now be shot from [[dispenser]]s.
|Tridents with [[Loyalty]] that fall into the [[void]] now return to their owner upon breaking in the void.
|Tridents with [[Impaling]] now deal [[enchanting|enchantment]] damage to all [[mob]]s that are in [[water]] or [[rain]].}}
{{History|||snap=Combat Test 5|The damage of tridents has been decreased to {{hp|7}} again.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.13.8|[[File:Trident.png|60px]] [[File:Trident (item).png|32px]] Added tridents.
|Tridents are currently a part of [[Experimental Gameplay]].}}
{{History|||snap=beta 1.2.14.2|Tridents have been fully implemented.}}
{{History|||snap=beta 1.2.20.1|A new animation has been added for tridents with [[Riptide]] when they are thrown.}}
{{History||1.5.0|snap=beta 1.5.0.0|Tridents can now be [[enchantment|enchanted]] with [[Mending]] and [[Unbreaking]].}}
{{History|||snap=beta 1.5.0.7|Tridents no longer break [[block]]s in [[Creative]] mode.}}
{{History||1.10.0|snap=beta 1.10.0.3|Thrown tridents can now break [[chorus flower]]s.}}
{{History||1.16.0|snap=beta 1.15.0.51|Drowned can no longer have a trident when converted.|Drowned that are not holding a trident are no longer able to drop one.}}
{{History||1.16.220|snap=beta 1.16.220.50|Tridents are now able to break pointed dripstone.}}
{{History|||snap=beta 1.16.220.51|Drowned now hold their tridents correctly when targeting a player.}}
{{History|console}}
{{History||xbox=TU69|ps=1.76|wiiu=Patch 38|[[File:Trident.png|60px]] [[File:Trident (item).png|32px]] Added tridents.}}
{{History|education}}
{{History||1.4.0|[[File:Trident.png|60px]] [[File:Trident (item).png|32px]] Added tridents.}}
{{History|foot}}
==Issues==
{{issue list}}
==Trivia==
* If a player throws a Loyalty-enchanted trident and the player's inventory subsequently fills, the trident hovers around or through the player's skin until an inventory slot opens, which it fills immediately. Multiple tridents can be 'queued' to re-enter the player's inventory in this manner.
*{{IN|java}} in Creative mode, sword enchantments can be applied to tridents. This includes Sharpness, Fire Aspect, and Looting. Sharpness, Smite, and Bane of Arthropods increases their damage against their specific mobs, as well.{{more info needed|Does the damage also increase when the trident is thrown?}}
*Thrown tridents pass through [[Nether Portal (block)|nether portal block]]s without being transported to [[the Nether]] or the [[Overworld]].
*Using a trident enchanted with Riptide while riding an entity cancels the charge and does nothing.
==Gallery==
<gallery>
TridentMineconEarth.jpg|Tridents are shown in a clip of Minecon Earth 2017.
Returning trident.jpg|A trident [[enchantment|enchanted]] with [[Loyalty]] returning to the [[player]].
Riptide Trident.png|A player "flying" high in the [[air]] after throwing a trident enchanted with [[Riptide]] III vertically upward.
Trident in ground.png|A trident stuck in [[sand]].
Two-hand drowned.png|A drowned holding a trident and a [[nautilus shell]].
Enchanted Trident (item).gif|An enchanted trident.
Alex with Trident.png|An official T-Shirt design of [[Alex]] with a trident.
Acid Drowned.png|"Acid Drowned," an officially licensed T-Shirt featuring a [[drowned]] with a trident.
ArgoMajor Trident.jpg|First image of a trident in ''Bedrock Edition''.
</gallery>
==References==
{{reflist}}
==External Links==
*[https://www.minecraft.net/en-us/article/taking-inventory--trident Taking Inventory: Trident] – Minecraft.net on January 30, 2020
{{Items}}
{{Entities}}
[[Category:Combat]]
[[de:Dreizack]]
[[es:Tridente]]
[[fr:Trident]]
[[ja:トライデント]]
[[ko:삼지창]]
[[pl:Trójząb]]
[[pt:Tridente]]
[[ru:Трезубец]]
[[th:ตรีศูล]]
[[zh:三叉戟]]</li></ul> | pre1 | Added functions. | |||
| pre3 | Commands are no longer allowed to begin with a / (forward slash) | ||||
| Comments can now only be preceded with #; using // is no longer allowed | |||||
| pre4 | Added new arguments to the /function command: [if|unless] [selector] | ||||
| pre6 | Skipped functions (when a conditional fails) are now considered failures when used in commands. | ||||
1.13{{Extension DPL}}<ul><li>[[Item (entity)|Item (entity)]]<br/>{{Entity
| title = Item Entity
| image = Item.gif
| health = {{hp|5}}<ref>Items cannot be damaged by attacking them.</ref>
| size = Height: 0.25 Blocks<br>Width: 0.25 Blocks
}}
'''Items''' are "dropped" [[block]]s or [[item]]s (non-block resources) that appear in the world, rather than being in the [[inventory]] of a [[player]] or [[block entity]]; they are a type of [[entity]].
== Appearance ==
[[File:Item entities.png|150px|thumb|3D dropped items, both blocks and strict items.]]
Items have two possible appearances, generally corresponding to whether the item appears as a 3D or 2D shape in a player's inventory screens. 3D items appear as their 3D shape, miniaturized to about {{frac|1|4}} scale, while 2D items appear as {{frac|1|2}} scale with all the pixels extruded into a cube. Both types slowly rotate and bob up and down; this is merely a visual effect, the item itself does not actually rotate or bob up and down.
Item entities that represent a stack of more than one item appear as several items stuck together. Stacks of 1 appear as one item, 2-16 as two items, 17–32 as three, 33-48 as four, and 49+ as five.
The rotation rate of the item is approximately 2.87675 degrees per tick, or 57.595 degrees per second.
== Behavior ==
Item entities come from many sources. Some common ones are:
* The death of a [[mob]] or [[player]].
* A [[block]] that is mined by a player, destroyed by an [[explosion]], or washed away by [[water]].
* An inventory item tossed by pressing the drop item key (default {{key|Q}} on PC, {{xbtn|dpad-down}} on Xbox, {{nsbtn|down}}/{{nsbtn|dpad-down}} on Nintendo Switch, {{psbtn|dpad-down}} on PlayStation) or dragging a stack outside of an inventory window.
** In the mobile versions of {{el|be}}, items in the hotbar can be dropped by pressing on the item's slot. The entire stack is dropped.
* A container (other than an {{BlockLink|ender chest}} or a {{BlockLink|shulker box}}) that is destroyed while holding items inside.
The player may be thought of as having an "item pickup" box that surrounds their hitbox. This pickup box extends 1 additional block to the horizontal sides, and 0.5 additional blocks up and down. Any item whose hitbox intersects with the pickup box can be picked up. The pickup box is inclusive on the horizontal sides (distance less than or equal to 1 will count), and exclusive on the vertical sides (distance less than 0.5 will count, but not equal). When the player's hitbox size changes, such as when crouching{{only|java}} or sleeping, the pickup box size changes with it.
Once an item entity's hitbox overlaps with the player's pickup box, it can transfer its items. As many items as can fit in the player inventory, excluding the armor slots and the [[dual wield|off-hand slot]], are transferred. If any item is transferred, [[Item (entity)#Sounds|a "plopping" sound]] is played. If all items are transferred, the items appear to move into the center of the player. The item entity never physically moves, however, which means it can appear to go through lava and blocks in its path. This can happen through blocks that are thinner than a full block, but also through the shared edge of two full blocks. Unlike [[experience orb]]s, multiple item entities can be picked up simultaneously. Dropped items have a delay of 10 [[tick]]s (half a second) between appearing and being able to be picked up, or 40 ticks (2 seconds) if thrown by a player, [[dolphin]], or [[fox]].
When two stackable items of the same type come within 3/4 of a block of each other, they merge into a single stack if the resulting stack size does not exceed that item's maximum stack size.
Items do not collide with other entities(except boats) and are only moved or stopped by blocks.
Like other entities, items can be pushed by flowing water and [[bubble column]]s, pushed by a [[piston]], launched by a moving [[slime block]], stuck to a [[honey block]], or caught in a [[cobweb]]. Items move at faster speeds if [[ice]] is placed under the flowing water. When in still water, items float slowly up to the surface.
Items can be reared by [[fishing rod]]s, costing 3 [[durability]].{{only|je}}
If an item is within a [[solid block]], then it flies out one of the unobstructed sides, or out of the top of the block if surrounded by solid blocks on all sides. It does this even if the space below is unoccupied; therefore, it is possible to recover an item dropped by breaking a hole in a floor by quickly placing another block there.
Items visually disappear when the player is about 16 blocks away from them, and reappear when they get closer. This distance can be adjusted by the "Entity Distance" slider in [[Options#Video Settings|video settings]].
Unlike most entities, items cannot be spectated in [[Spectator]] mode without use of the {{cmd|spectate}} command.
=== Damage ===
Items cannot be attacked by players or mobs; attempting to do so simply hits through them. However, they take damage and disappear from environmental or block-based damage such as [[explosion]]s, [[fire]], [[lava]], and contact with [[cactus|cacti]]. Items have essentially no health, so they are destroyed by the slightest damage, though if set on fire they may remain for a few seconds before disappearing. [[Nether star]]s are immune to explosions, and [[netherite]]-based items and tools are immune to fire and float on top of lava. Also, some blocks that normally damage mobs, such as [[magma block]]s, [[campfire]]s, [[Sweet Berries|sweet berry bushes]], [[flower|wither rose]]s and [[powder snow]], do not damage items.
=== Despawning ===
Items despawn after 6000 game [[tick]]s (5 minutes) of being in a loaded, entity-ticking [[chunk]]; this is affected by the player's [[simulation distance]]. If two item stacks merge, the timer is set to the item that has more time remaining. The 5-minute timer is paused when the chunk is unloaded or no longer processing entities. Nether stars do not despawn{{only|bedrock}}.
Items that fall into the [[void]] immediately despawn when they fall below Y=-128 in the [[Overworld]], or Y=-64 in [[the Nether]] and [[the End]].
== Sounds ==
{{Edition|Java}}:<br>
Item Entities use the Ambient/Environment sound category for entity-dependent sound events.
{{Sound table
|nocat=1
|sound=Pop.ogg
|subtitle=Item plops
|source=player<!--Even when not picked up by player-->
|description=When an item is picked up
|id=entity.item.pickup
|translationkey=subtitles.entity.item.pickup
|volume=0.2
|pitch=1.6-3.4 <ref group=sound>0.6-3.4 for using {{cmd|give}} and items from advancement rewards</ref>
|distance=16}}
{{Sound table
|sound=fizz.ogg
|nocat=1
|subtitle=Burning
|source=ambient
|description=When an item is destroyed by [[lava]], but not [[fire]]<ref>{{bug|MC-36538}}</ref>
|id=entity.generic.burn
|translationkey=subtitles.entity.generic.burn
|volume=0.4
|pitch=2.0-2.4
|distance=16
|foot=1}}
{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|rowspan=2
|sound=Pop.ogg
|source=player
|description=When an item is picked up
|id=random.pop
|volume=0.25
|pitch=0.6-2.2}}
{{Sound table
|source=player
|description=When an item is dropped
|id=random.pop
|volume=0.3
|pitch=0.55-0.75}}
{{Sound table
|sound=fizz.ogg
|source=block
|description=When an item is destroyed by lava, but not fire
|id=random.fizz
|volume=0.5
|pitch=1.8-2.4
|foot=1}}
== Data values ==
=== ID ===
{{editions|java}}:
{{ID table
|generatetranslationkeys=java
|displayname=Item
|spritename=items
|spritetype=env
|translationtype=entity
|nameid=item
|foot=1}}
{{editions|bedrock}}:
{{ID table
|shownumericids=y
|generatetranslationkeys=bedrock
|displayname=Item
|spritename=items
|spritetype=env
|translationtype=entity
|nameid=item
|id=64
|foot=1}}
=== Entity data ===
{{see also|Chunk format}}
Dropped items have entity data associated with them that contain various properties of the entity.
{{el|java}}:
{{main|Entity format}}
{{/ED}}
{{el|bedrock}}:
: See [[Bedrock Edition level format/Entity format]].
== History ==
{{History|java classic}}
{{History||0.24 Resource Test|In the first public mention of item entities, {{ytl|OP3jzMWJmu8|this early video of Minecraft (Classic 0.24) by Notch}}, they were referred to as "resources".<ref name="resources">{{ytl|YIm_AKUbqh8}} Early video of Minecraft (Classic 0.24) by Notch referring to item entities as "resources"</ref>}}
{{History||August 4, 2009|link=https://notch.tumblr.com/post/155882307/a-video-showing-what-i-did-today-are-vids-like|Items were showcased by [[Notch]] in a blog post.}}
{{History||0.24_SURVIVAL_TEST|Added items to the game.
|Items currently take the form of destroyed [[block]]s.
|Items currently pulse white (similar to the selection cursor).<ref name="resources"/>
|Instead of appearing as shrunken down blocks, items use pixels the same size as block pixels.}}
{{History|java indev}}
{{History||0.31|snap=20091231-2|Dropped items don't spin and don't glow white anymore.
|Dropped items now appear as shrunken down blocks.
|Items no longer prevent the placement of blocks but instead are moved to the nearest chunk. {{info needed}}
|Non-block items added (as sprites); they now rotate to face the [[player]].}}
{{History||?|Dropped items now spin again.}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|[[File:Oversized items.png|100px|right]][[File:In awe at the size of these fluids.png|100px|right]] A bug causing many item forms of blocks to be displayed at the {{frac|1|2}} scale rather than {{frac|1|4}} was fixed. The following items were affected by this at least at one point:
* [[Cactus]]
* [[Oak Trapdoor]]
* [[Oak Fence]]
* [[Oak Pressure Plate]]
* [[Stone Pressure Plate]]
* [[Stone Button]]
* [[Oak Stairs]]
* [[Cobblestone Stairs]]
* [[Snow]] (unobtainable at the time)
* [[Farmland]] (unobtainable)
* [[Cake]] ([[Technical blocks/Cake|unobtainable version]])
* [[Nether Portal (block)|Nether Portal]] ([[Technical blocks/Nether Portal|unobtainable]])
* [[Water]] ([[Technical blocks/Water|unobtainable]], before becoming 2D in [[Java Edition Infdev 20100615]])
* [[Lava]] ([[Technical blocks/Lava|unobtainable]], before becoming 2D in [[Java Edition Infdev 20100615]])
}}
{{History|java}}
{{History||1.3.1|snap=12w15a|Items that are moved into the same location now combine into stacks instead of remaining independent entities.}}
{{History||1.4.2|snap=12w34a|Items, like other entities, can now travel through [[portal]]s.}}
{{History|||snap=12w34b|Some [[zombie]]s, [[skeleton]]s and [[Zombified Piglin|zombie pigmen]] can now pick up items.}}
{{History||1.4.4|snap=1.4.3|Items are now pushed out of transparent solid blocks as well as opaque ones.<ref>{{bug|MC-15}}</ref> Items can push into solid blocks while trying to escape a solid block instead of stopping (this has been used to create vertical transport of items). New feature: items are pushed out of the inside corner of stair blocks, causing "bouncing" effects.}}
{{History||December 11, 2012|link=none|[[Dinnerbone]] tweeted a picture of [[diamond]]s being rendered in 3D as dropped items.<ref>{{tweet|dinner|278457679805030401|Diamonds are a miners best friend. It's only fair they get treated to some luxury rendering. http://dinnerbone.com/media/uploads/2012-12/screenshots/Minecraft_2012-12-11_12-13-11.png … #AndMaybeEverythingElseToo|December 11, 2012}}</ref> He also revealed that other items would rendered in this way, but only in [[fancy graphics]].<ref>{{tweet|dinner|278463997982949378|@PaymenowTV It's Fancy Rendering option, but really won't make much of a difference on even a slow pc.|December 11, 2012}}</ref>}}
{{History||December 12, 2012|link=none|TeamMojang ([[wikipedia:Youtube|YouTube]]) posted a video showing off the new 3D items.<ref>{{ytl|tMOZLAxPWFE}}</ref>}}
{{History||1.4.6|snap=12w49a|[[Nether star]]s are the first items to not be deleted by [[explosion]]s.}}
{{History|||snap=12w50a|When dropped, items now render in the [[fancy graphics]] setting as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).
|Dropped items now merge with nearby items and be stacked.
|Enchanted items now show the enchanted glow when dropped.}}
{{History||1.5|snap=13w01a|Added [[hopper]]s, which can collect items.}}
{{History|||snap=13w03a|Added [[Minecart with Hopper|hopper minecart]]s, which can collect items.}}
{{History||1.8|snap=14w04a|Dropped items don't spin, and they are visible only from the south on fast graphics.}}
{{History|||snap=14w04b|Dropped items are now completely invisible on fast graphics.}}
{{History|||snap=14w05a|Dropped items on fast graphics now face the player on all three axes, and they spin again on fancy graphics.}}
{{History|||snap=14w25a|Dropped items now render in 3D on fast graphics, instead of just on fancy graphics, likely due to item models being fully implemented and replacing the need for 2D items. However, they do not spin.}}
{{History||1.8.1|snap=pre4|Dropped items now spin on fast graphics.}}
{{History||1.10|snap=16w21a|Items can now be reared by [[fishing rod]]s.}}
{{History||1.11|snap=16w32a|The entity ID of items has been changed from <code>Item</code> to <code>item</code>.}}
{{History||1.13|snap=18w07a|Items in water now float up.}}
{{History||1.16|snap=20w06a|Netherite items are the first items to not burn in [[lava]], and float in lava.}}
{{History||1.20|snap=Pre-release 5|Item are no longer destroyed by falling [[anvil]]s.<ref>{{bug|MC-120158
||Anvils and other falling_blocks with HurtEntities set to true kill items and xp orbs|Fixed}}</ref>}}
{{History|pocket alpha}}
{{History||v0.2.0|Added items to the game.}}
{{History||?|Items now have improved graphics.{{more info|clarify}}}}
{{History|Bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Items in [[water]] now float up.}}
{{History||1.16.0|snap=beta 1.15.0.51|When dropped, items now render as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).}}
{{History|||snap=beta 1.16.0.51|Added [[netherite]] items, which float and do not burn in [[lava]].}}
{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|Added items to the game.}}
{{History||xbox=TU12|When dropped, items now render as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|Items in [[water]] now float up.}}
{{History|foot}}
== Trivia ==
* {{bug|MC-4}}, the oldest standing bug in the Minecraft [[bug tracker]], involves item entity positioning being incorrectly handled.
==Gallery==
<gallery>
3D Diamonds.png|First image of 3D dropped items.
</gallery>
== See also ==
* [[Drops]] — items dropped by [[mobs]] when killed.
* [[Chunk format#Items|Chunk format]] for more information about the attributes of items.
== References ==
{{Reflist}}
{{entities}}
{{items}}
[[Category:Items| ]]
[[de:Drop]]
[[es:Objeto (entidad)]]
[[fr:Objet (entité)]]
[[ja:アイテム (エンティティ)]]
[[ko:아이템 (개체)]]
[[nl:Voorwerp (entiteit)]]
[[pt:Drops]]
[[ru:Предмет (сущность)]]
[[zh:物品(实体)]]</li><li>[[Copper Horn|Copper Horn]]<br/>{{About|the removed item|the current item|Goat Horn}}
{{outdated feature|edition=bedrock}}
{{Item
| renewable = Yes
| stackable = No
}}
A '''copper horn''' was an [[item]] crafted from a [[goat horn]] and [[copper ingots]].
== Obtaining ==
=== Crafting ===
{{Crafting
|ignoreusage=1
|A2=Copper Ingot
|B2=Goat Horn
|B3=Copper Ingot
|C2=Copper Ingot
|Output=Copper Horn
}}
=== Natural generation ===
Copper horns were found in pillager outpost chests.
== Usage ==
Copper horns were used to play sounds. They took one second to use and had a four second cooldown. There were ten variations of copper horns, and each of them played three different sounds: when looking up, crouching, or neither of those. In total, there were thirty different sounds that could be played using copper horns. The sound a copper horn plays based on multiple conditions, which are in order as follows:
* If crouching, the bass tune was played.
* Else, if looking up (by 45 degrees), the harmony tune was played.
* Else, the melody tune was played.
== Sounds ==
Sound names in the item tooltip are created using the harmony, melody, and bass sounds in that order.
=== Harmony ===
{{Sound table
|type=bedrock
|sound=harmony0.ogg
|description="Great" ("Great Sky Falling")
|source=hostile
|id=horn.call.0
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony1.ogg
|description="Old" ("Old Hymn Resting")
|source=hostile
|id=horn.call.1
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony2.ogg
|description="Pure" ("Pure Water Desire")
|source=hostile
|id=horn.call.2
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony3.ogg
|description="Humble" ("Humble Fire Memory")
|source=hostile
|id=horn.call.3
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony4.ogg
|description="Dry" ("Dry Urge Anger")
|source=hostile
|id=horn.call.4
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony5.ogg
|description="Clear" ("Clear Temper Journey")
|source=hostile
|id=horn.call.5
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony6.ogg
|description="Fresh" ("Fresh Nest Thought")
|source=hostile
|id=horn.call.6
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony7.ogg
|description="Secret" ("Secret Lake Tear")
|source=hostile
|id=horn.call.7
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony8.ogg
|description="Fearless" ("Fearless River Gift")
|source=hostile
|id=horn.call.8
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=harmony9.ogg
|description="Sweet" ("Sweet Moon Love")
|source=hostile
|id=horn.call.9
|volume=1.0
|pitch=1.0
|foot=1}}
=== Melody ===
{{Sound table
|type=bedrock
|sound=melody0.ogg
|description="Sky" ("Great Sky Falling")
|source=hostile
|id=horn.melody.0
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody1.ogg
|description="Hymn" ("Old Hymn Resting")
|source=hostile
|id=horn.melody.1
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody2.ogg
|description="Water" ("Pure Water Desire")
|source=hostile
|id=horn.melody.2
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody3.ogg
|description="Fire" ("Humble Fire Memory")
|source=hostile
|id=horn.melody.3
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody4.ogg
|description="Urge" ("Dry Urge Anger")
|source=hostile
|id=horn.melody.4
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody5.ogg
|description="Temper" ("Clear Temper Journey")
|source=hostile
|id=horn.melody.5
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody6.ogg
|description="Nest" ("Fresh Nest Thought")
|source=hostile
|id=horn.melody.6
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody7.ogg
|description="Lake" ("Secret Lake Tear")
|source=hostile
|id=horn.melody.7
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody8.ogg
|description="River" ("Fearless River Gift")
|source=hostile
|id=horn.melody.8
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=melody9.ogg
|description="Moon" ("Sweet Moon Love")
|source=hostile
|id=horn.melody.9
|volume=1.0
|pitch=1.0
|foot=1}}
=== Bass ===
{{Sound table
|type=bedrock
|sound=bass0.ogg
|description="Falling" ("Great Sky Falling")
|source=hostile
|id=horn.bass.0
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass1.ogg
|description="Resting" ("Old Hymn Resting")
|source=hostile
|id=horn.bass.1
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass2.ogg
|description="Desire" ("Pure Water Desire")
|source=hostile
|id=horn.bass.2
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass3.ogg
|description="Memory" ("Humble Fire Memory")
|source=hostile
|id=horn.bass.3
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass4.ogg
|description="Anger" ("Dry Urge Anger")
|source=hostile
|id=horn.bass.4
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass5.ogg
|description="Journey" ("Clear Temper Journey")
|source=hostile
|id=horn.bass.5
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass6.ogg
|description="Thought" ("Fresh Nest Thought")
|source=hostile
|id=horn.bass.6
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass7.ogg
|description="Tear" ("Secret Lake Tear")
|source=hostile
|id=horn.bass.7
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass8.ogg
|description="Gift" ("Fearless River Gift")
|source=hostile
|id=horn.bass.8
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=bass9.ogg
|description="Love" ("Sweet Moon Love")
|source=hostile
|id=horn.bass.9
|volume=1.0
|pitch=1.0
|foot=1}}
==Data Values==
===ID===
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Copper Horn
|spritetype=item
|nameid=copper_horn
|form=item
|foot=1}}
== History ==
{{h|bedrock}}
{{h||Vanilla Experiments<br>(experimental)|link=1.18.30|snap=beta 1.18.30.26|[[File:Copper Horn BE1.png|32px]]Added copper horns.}}
{{h|||snap=beta 1.18.30.28|[[File:Copper Horn BE2.png|32px]]Changed the texture of copper horns.}}
{{h||1.19.0|snap=beta 1.19.0.24|Removed copper horns.}}
{{h|foot}}
== Trivia ==
* Copper horns were removed from the game as they didn't live up to the developers' design goals, and as such are no longer supported.<ref>{{cite|url=https://feedback.minecraft.net/hc/en-us/articles/5540500564365| title = Minecraft Beta & Preview - 1.19.0.24/25|website=feedback.minecraft.net|date=April 14, 2022}}</ref>
* This is the first item in {{el|be}} to have been completely removed instead of just made unobtainable. This is likely due to the fact it never made it out of [[experimental gameplay]].
** If a world that contained this item is loaded into a newer version, the horn will disappear upon loading.
== References ==
{{reflist}}
{{Items}}
{{Removed features}}
[[Category:Renewable resources]]
[[de:Ziegenhorn]]
[[es:Cuerno de cobre]]
[[fr:Corne de chèvre]]
[[it:Corno di capra]]
[[lzh:銅號]]
[[pl:Kozi róg]]
[[pt:Chifre de cobre]]
[[ru:Козий рог]]
[[zh:铜制号角]]</li></ul> | 17w43a | Custom functions have been moved into data packs. | |||
| 17w45a | Functions are now completely parsed and cached on load. | ||||
| 17w49b | Function can now be tagged. | ||||
Functions tagged in minecraft:tick now run every tick in the beginning of the tick. | |||||
Issues
Issues relating to "Function (Java Edition)" are maintained on the bug tracker. Report issues there.
References
- ↑ "Until vanilla adds something with the same name, then it won't work for you! Or if someone else has to work with your stuff, then confusing!" – @Dinnerbone (Nathan Adams) on X, June 21, 2017
| Components |
| ||
|---|---|---|---|
| Data packs | |||
| Tutorials | |||