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 encoding (without BOM) for function files to prevent any problems.

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. For single player, the world folders can be found in .minecraft/saves. For multiplayer, functions must be placed in every world folder that wants to utilize them (In 1.12 you MUST place the functions inside the main world folder (the one specified in the server.properties, level-name=(world-name here)), otherwise it will NOT work.). 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 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. 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:

1.12

execute @a ~ ~ ~ function foo:bar

foo:bar

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

1.13

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

/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 coordinates from which the "server" executes commands are (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>
  • To stop the loop just point gameLoopFunction to a non-existing function: /gamerule gameLoopFunction -, this value is also the default.

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

release
1.12
{{Extension DPL}}<ul><li>[[Slimeball|Slimeball]]<br/>{{about|the item|the mob|Slime|the block constructed with slimeballs|Slime Block|other uses|Slime (disambiguation)}}
{{Item
| image = Slimeball.png
| renewable = Yes
| stackable = Yes (64)
}}

A '''slimeball''' is a [[crafting]] ingredient commonly dropped by [[slime]]s, and can be sneezed out by [[panda]]s.

== Obtaining ==

=== Mob loot ===

==== Slimes ====
{{see also|Tutorials/Slime farming}}

If a [[slime]]'s size is 1, it drops 0–2 slimeballs when killed. The maximum number of slimeballs is increased by 1 per level of [[Looting]], for a maximum of 5 slimeballs with Looting III.

==== Pandas ====

Baby [[panda]]s have a {{frac|1|700}} chance of [[drop]]ping one slimeball when sneezing.

=== Crafting ===

{{Crafting
  |Slime Block
  |Output= Slimeball,9
  |type= Miscellaneous
}}

=== Trading ===

[[Wandering trader]]s sometimes offer to sell a slimeball for 4 [[emerald]]s.

== Usage ==

=== Crafting ingredient ===

{{crafting usage}}

=== Breeding ===

Slimeballs can be used to breed [[frog]]s and reduce the remaining growth duration of [[tadpole]]s by 10%. Both also follow a player holding a slimeball.

==Video==
{{Video note|This video is outdated, as slimeballs can now also be used to craft [[lead]]s and [[slime block]]s, breed [[frog]]s, and can now be obtained from baby [[panda]]s and [[wandering trader]]s.}}
{{yt|J6oR3fdbbjY}}

== Data values ==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Slimeball
|spritetype=item
|nameid=slime_ball
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Slimeball
|spritetype=item
|nameid=slime_ball
|id=388
|form=item
|foot=1}}

==History==

{{History|java alpha}}
{{History||v1.0.11|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs, which are dropped from [[slime]]s. At the moment, they serve no purpose.}}
{{History|java beta}}
{{History||1.7|Slimeballs are now used to craft [[sticky piston]]s.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Slimeballs are used to craft [[magma cream]].}}
{{History||1.6.1|snap=13w18a|[[Lead]]s, which were originally implemented in the [[13w16a]] snapshot, now have a [[crafting]] recipe that includes slimeballs.}}
{{History||1.8|snap=14w02a|Nine slimeballs are now used to [[crafting|craft]] a [[slime block]]. Slime blocks also act as storage [[block]]s, being able to craft back into 9 slimeballs.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 341.}}
{{History||1.14|snap=18w43a|[[File:Slimeball JE2 BE2.png|32px]] The texture of slimeballs has been changed.
|Slimeballs can now be obtained when a [[panda|baby panda]] sneezes.}}
{{History|||snap=19w05a|Slimeballs can now be bought from [[wandering trader]]s.}}
{{History||1.19|snap=22w11a|Slimeballs can now be used to breed [[frog]]s.}}

{{History|pocket alpha}}
{{History||v0.9.0|snap=build 1|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs. They are currently unobtainable and serve no purpose.}}
{{History||v0.12.1|snap=build 1|Added slimeballs to the [[creative]] [[inventory]].
|Slimeballs can now be obtained by killing [[slime]]s.
|Slimeballs are now used to craft [[magma cream]].}}
{{History||v0.14.0|snap=build 1|Slimeballs are now used to craft [[slime block]]s.}}
{{History||v0.15.0|snap=build 1|Slimeballs are now used to craft [[sticky piston]]s and [[lead]]s.}}
{{History|bedrock}}
{{History||1.8.0|snap=beta 1.8.0.8|Slimeballs can now be obtained when a [[panda|baby panda]] sneezes.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Slimeball JE2 BE2.png|32px]] The texture of slimeballs has been changed.
|Slimeballs can now be obtained via [[trading]] with [[wandering trader]]s.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs.}}
{{History||xbox=TU3|Slimeballs are now used to craft [[sticky piston]]s.}}
{{History||xbox=TU5|Slimeballs are found in the Miscellaneous tab in the [[Creative inventory]].}}
{{History||xbox=TU9|Moved slimeballs to the Materials tab in the Creative inventory.}}
{{History||xbox=none|xbone=none|ps=1.83|wiiu=none|switch=none|Slimeballs can now be obtained when a [[panda|baby panda]] sneezes.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Slimeball JE2 BE2.png|32px]] The texture of slimeballs has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Slimeball JE1 BE1.png|32px]] Added slimeballs.}}
{{History|foot}}

==Issues ==
{{issue list}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--slimeball Taking Inventory: Slimeball] – Minecraft.net on June 24, 2021

{{Items}}

[[Category:Renewable resources]]

[[cs:Sliz]]
[[de:Schleimball]]
[[es:Bola de slime]]
[[fr:Boule de Slime]]
[[hu:Nyálkagolyó]]
[[it:Palla di slime]]
[[ja:スライムボール]]
[[ko:슬라임볼]]
[[nl:Slijmbal]]
[[pl:Kula szlamu]]
[[pt:Bola de slime]]
[[ru:Слизь]]
[[th:ลูกเมือก]]
[[uk:Слизова кулька]]
[[zh:黏液球]]</li><li>[[Beetroot|Beetroot]]<br/>{{about|the basic food item|the seeds|Beetroot Seeds|the soup|Beetroot Soup}}
{{Item
| title = Beetroot
| image = Beetroot.png
| heals = {{hunger|1}}
| renewable = Yes
| stackable = Yes (64)
}}

A '''beetroot''' is a food and [[dye]] ingredient.

== Obtaining ==

=== Farming ===
Beetroots are obtained from harvesting a fully grown [[beetroots|crop block]], which drops 1 beetroot and 1-4 seeds ({{frac|2|5|7}} seeds per plant harvested on average). Seed yield can be increased using a tool enchanted with [[Fortune]], with Fortune III harvesting an average of {{frac|5|3|7}} seeds per plant.

These crops can be found growing in [[village]]s or can be grown from planted [[beetroot seeds]].<!-- Do not add locations for finding seeds. Where to find seeds is described in the article about the seeds. -->

== Usage ==

=== Food ===
A beetroot can be eaten to restore {{hunger|1}} [[hunger]] and 1.2 hunger [[Hunger#Mechanics|saturation]]. Six beetroots can be crafted into [[beetroot soup]], which restores six times the hunger and saturation of a single beetroot.

=== Crafting ingredient ===
{{crafting usage}}

=== Breeding ===
Beetroots can be used to [[breeding|breed]] [[pig]]s. Pigs also follow a player who is holding beetroot.

[[Villager]]s can pick up beetroot items to become willing, allowing them to breed. Villagers need 12 beetroots before they can breed.

=== Composting ===
Placing beetroot into a [[composter]] has a 65% chance of raising the compost level by 1.

=== Trading ===

Novice-level Farmer villagers have a 25%{{only|bedrock}} or 40%{{only|java}} chance to buy 15 beetroots for an emerald.

== Sounds ==

{{Sound table/Entity/Food}}

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Beetroot
|spritetype=item
|nameid=beetroot
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Beetroot
|spritetype=item
|nameid=beetroot
|id=285
|form=item
|foot=1}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}

== History ==
{{History|java}}
{{History||1.9|snap=15w31a|[[File:Beetroot JE1 BE1.png|32px]] Beetroots have been added, along with its [[beetroot seeds|seeds]] and [[beetroot soup]]. Beetroot can also be used to craft [[rose red]] dye.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 434.}}
{{History||1.14|snap=18w43a|[[File:Beetroot JE2 BE2.png|32px]] The texture of beetroot has been changed.}}
{{History|||snap=19w03a|Placing beetroot into the new [[composter]] has a 50% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Beetroot now has a 65% chance of increasing the compost level in a composter by 1.}}
{{History|||snap=19w11a|Farmer [[villager]]s now [[trading|buy]] beetroots.}}
{{History||1.17|snap=21w13a|The model of the [[crop]] for the beetroot crops has been tweaked that the backside textures are mirrored.}}

{{History|pocket alpha}}
{{History||November 13, 2013|link=http://instagram.com/p/gnkWOlJMB3/|[[Jeb]] announces on [[wikipedia:Instagram|Instagram]] that [[Johan Bernhardsson]] is working on a surprise feature for 0.8.0 alongside a picture of the [[player]] holding beetroot.}}
{{History||November 14, 2013|link={{tweet|jbernhardsson|400902957782147072}}|Johan posts another image of beetroot, confirming that the image previously posted by Jeb was indeed beetroot.}}
{{History||v0.8.0|snap=build 2|[[File:Beetroot JE1 BE1.png|32px]] Added beetroots. They are not obtainable in the Creative inventory.}}
{{History||v0.9.0|snap=build 1|Beetroot can now be used to lead and [[breeding|breed]] [[pig]]s.}}
{{History||v0.12.1|snap=build 1|Beetroot now restore [[hunger]], rather than [[health]].
|Beetroot can now generate in [[village]]s as [[crop]]s.}}
{{History||v0.13.1|Added beetroot to the Creative inventory.<ref name="missing beetroot item">https://bugs.mojang.com/browse/MCPE-10497</ref><!---{{info needed}}, the bug tracker has very little information. It's not in the Creative inventory in v0.12.1 or v0.13.0 initial release, but is in v0.14.0--->}}
{{History||v0.16.0|snap=build 1|Beetroot can now be used to craft [[rose red]] dye.}}
{{History||v0.16.2|Beetroot can now be found in [[chest]]s inside large houses in [[snowy taiga]] and [[snowy tundra]] [[village]]s.}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|[[Villager]]s can now can pick up beetroot to become willing.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Beetroot JE2 BE2.png|32px]] The texture of beetroot has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Beetroot can now be used to fill up [[composter]]s.}}
{{History|||snap=beta 1.11.0.4|Beetroot can now be sold to farmer villagers.}}

{{History|console}}
{{History||xbox=TU43|xbone=CU33|ps=1.36|wiiu=Patch 13|switch=1.0.1|[[File:Beetroot JE1 BE1.png|32px]] Added beetroots.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Beetroot JE2 BE2.png|32px]] The texture of beetroot has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Beetroot JE1 BE1.png|32px]] Added beetroots.}}
{{History|foot}}

== Issues ==

{{Issue list}}

== Gallery ==

<gallery>
File:Beetrootstwitpic.png|The image released by [[Johan Bernhardsson]] on [[Wikipedia:Twitter|Twitter]].
File:Pigs following beetroot holder.png|Pigs following the [[player]].
File:Village Wheat Beetroot Farm.png|Beetroots generated in a [[village]].
File:Beetroot farm.png|A beetroot garden.
</gallery>

== References ==
{{Reflist}}

{{Items}}

[[Category:Plants]]
[[Category:Food]]
[[Category:Renewable resources]]

[[cs:Červená řepa]]
[[de:Rote Bete]]
[[es:Remolacha]]
[[fr:Betterave]]
[[hu:Cékla]]
[[it:Barbabietola]]
[[ja:ビートルート]]
[[ko:비트]]
[[nl:Biet]]
[[pl:Burak]]
[[pt:Beterraba]]
[[ru:Свёкла]]
[[th:บีทรูท]]
[[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.
1.13
{{Extension DPL}}<ul><li>[[Crossbow|Crossbow]]<br/>{{For}}
{{Item
| title = Crossbow
| image = <gallery>
Crossbow.png | Crossbow
Crossbow Pull 0.png | Pull (state 0)
Crossbow Pull 1.png | Pull (state 1)
Crossbow Pull 2.png | Pull (state 2)
Arrow Loaded Crossbow.png | Arrow loaded
Firework Loaded Crossbow.png | Firework loaded
</gallery>
| rarity = Common
| renewable = Yes
| durability = 465{{only|JE|short=yes}}<br>464{{only|BE|short=1}}
| stackable = No
}}

A '''crossbow''' is a ranged [[weapon]] similar to a [[bow]] that uses [[arrow]]s or [[firework rocket|fireworks]] as ammunition.

== Obtaining ==
=== Crafting ===
{{Crafting
|A1=Stick|B1=Iron Ingot |C1=Stick
|A2=String|B2= Tripwire Hook|C2=String
|B3= Stick
|Output= Crossbow
|type= Combat
}}

=== Repairing ===
{{Grinding
|showdescription=1
|ingredients=2× Damaged [[Crossbow]] or<br>2× Damaged [[Arrow Loaded Crossbow]] or<br>2× Damaged [[Firework Loaded Crossbow]]
|Damaged Crossbow; Damaged Arrow Loaded Crossbow; Damaged Firework Loaded Crossbow
|Damaged Crossbow; Damaged Arrow Loaded Crossbow; Damaged Firework Loaded Crossbow
|Crossbow; Arrow Loaded Crossbow; Firework Loaded Crossbow
|description=The [[item durability|durability]] of the two crossbows is added together, plus an extra 5% durability.‌
}}

{{Crafting
|Damaged Crossbow;Damaged Arrow Loaded Crossbow;Damaged Firework Loaded Crossbow
|Damaged Crossbow;Damaged Arrow Loaded Crossbow;Damaged Firework Loaded Crossbow
|Output=Crossbow
|type=Combat
|ignoreusage=1
|showdescription=1
|description=The durability of the two crossbows is added together, plus an extra 5% durability.‌ Any loaded ammunition is lost.
}}

=== Mob loot ===

==== Pillagers ====

When killed, a [[pillager]] has a small chance (8.5%) of dropping a loaded or unloaded crossbow with random [[durability]]; the [[drop]] rate increases by 1% per [[level]] of [[Looting]]: 9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III. The [[drop]]ped crossbow can rarely (10% chance) be [[enchanted]] at level 5–19 regardless of being [[enchanted]] when it [[spawn]]ed.

Crossbows dropped by pillagers may have multiple enchantments, including duplicate enchantments on the same weapon.

==== Piglins ====
[[Piglin]]s have a chance of wielding a crossbow upon spawning, and they also have a small chance (8.5%) of dropping a loaded or unloaded crossbow of random durability when killed; this rate increases by 1% per level of [[Looting]]: 9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III. It can rarely (10% chance) be enchanted at level 5–19 regardless of being enchanted when spawned.

=== Chest loot ===

{{LootChestItem|crossbow,damaged-level-enchanted-crossbow,damaged-random-enchanted-crossbow,damaged-random-enchanted-crossbow-2}}

=== Trading ===

Journeyman-level Fletcher [[villager]]s offer to [[trading|sell]] an unenchanted crossbow for 3 [[emerald]]s.

Master-level Fletcher villagers have a {{frac|1|16}} (6.25%) chance of selling an [[enchanting|enchanted]] crossbow for 8 emeralds.{{only|bedrock}}

Master-level Fletcher villagers have {{frac|2|3}} chance of selling an enchanted crossbow for 7-22 emeralds.{{only|java}}

== Usage ==
<gallery>
Steve aiming with Crossbow.png|
Alex aiming with Crossbow.png|
Pillager Aiming with Crossbow BE.png|
Piglin with Crossbow targeting JE.png|
</gallery>

Despite using [[iron ingot]]s in their crafting recipe, crossbows cannot be smelted into [[iron nugget]]s.<ref>{{bug|MC-111738}}</ref>

=== Weapon ===
[[File:Crossbowcooldown.gif|thumb|right|Charging and shooting the crossbow {{in|bedrock}}.]]
Crossbows are similar to [[bow]]s, but take longer to load and are slightly more powerful, shooting farther with slightly higher accuracy. Alternatively, they can be loaded with a firework rocket, which flies in a straight line.

Load them by {{control|using}} them, which makes the player move at sneak speed. Unlike bows, the [[arrow]] or [[firework rocket]] can be fired only if the player releases the use button after the crossbow is loaded{{Only|je}}  or if the crossbow finishes its loading animation {{Only|be}}. At this point, it ''must be used a second time'' to fire its bolt.

Once it has reached full charge, the [[player]]'s speed returns to normal. After that, shooting a charged crossbow does not delay any of the [[player]]'s current action like [[sprinting]] or [[swimming]].

The crossbow can even be placed in another [[inventory]] slot or into an [[item frame]] without the [[arrow]] or [[firework rocket]] being unloaded or fired. A charged crossbow also remains charged after enchanting it with an enchantment table or with an anvil.

In order to use the crossbow, at least one arrow or firework rocket must be present in the inventory. The player can choose the type of arrow to fire based on its location in their [[inventory]]:
* Arrows in the off-hand, or the selected [[hotbar]] slot if the crossbow is in the off-hand, are prioritized first. 
* If there are no arrows in the off-hand or selected hotbar slot, the arrow closest to slot 0 is selected. 
Crossbows take 1.25 seconds (25 ticks) to load. 

The player can load either an arrow, spectral arrow, tipped arrow (of any effect) or a firework (of any color/type).

[[Endermen]] teleport away from projectile paths, so they cannot be hit with crossbow [[arrow]]s. However, they can still get harmed by [[firework rocket]] explosions, if they can't detect the firework rocket.

;Attack strength

''Java Edition'':

{| class="wikitable" style="text-align:center" data-description="Crossbow Damage Statistic"
|-
! Damage || Arrow || Max firework
|-
| {{ItemSprite|Crossbow|text= '''Minimum'''}}
| {{hp|7}}
| {{hp|11}}
|-
| {{ItemSprite|Crossbow|text= '''Average'''}}
| {{hp|9}}
| {{hp|14.5}}
|-
| {{ItemSprite|Crossbow|text= '''Maximum'''}}
| {{hp|11}}
| {{hp|18}}
|}

''Bedrock Edition''
* Always {{hp|9}}

=== Fireworks ===

[[Firework rocket]]s can be fired by loading the crossbow only while holding the rockets in the off-hand. They fly at 32 m/s. Firework rockets with higher flight duration have a longer time before they explode and therefore travel farther. Firing a firework rocket uses 3 [[durability]] points per shot.
{| class="wikitable" style="text-align:center"
! colspan="4" |Firework rocket range
|-
|Minimum
|Average
|Maximum
|Gunpowder
|-
|32m (20 ticks)
|40.8m (25.5 ticks)
|49.6m (31 ticks)
|1 ([[File:Gunpowder JE2 BE2.png|12x12px]])
|-
|48m (30 ticks)
|56.8m (35.5 ticks)
|65.6m (41 ticks)
| 2 ([[File:Gunpowder JE2 BE2.png|12x12px]][[File:Gunpowder JE2 BE2.png|12x12px]])
|-
|64m (40 ticks)
|72.8m (45.5 ticks)
|81.6m (51 ticks)
|3 ([[File:Gunpowder JE2 BE2.png|12x12px]][[File:Gunpowder JE2 BE2.png|12x12px]][[File:Gunpowder JE2 BE2.png|12x12px]])
|}
Firework rockets also work with the [[Multishot]] enchantment, enabling the [[player]] to shoot 3 firework rockets at a time. The increased durability usage stacks, resulting in 9 durability being consumed with each shot.

A shot firework rocket explodes instantly when it hits a [[mob]] or [[block]].{{only|java}} If the firework rocket has no explosion effect, it deals no [[damage]]. The explosion of a firework rocket deals {{hp|5}} to {{hp|6}} points of damage, with one [[firework star]]. The explosion has a radius of roughly 4 blocks, which is unaffected by the firework star's [[Firework Star#Effects|effect]]. Each additional firework star on the rocket deals an additional {{hp|1}} to {{hp|2}} points of damage, for a maximum of {{hp|11}} to {{hp|18}} with 7 firework stars. The flight duration of the firework increases the maximum range the firework can travel before exploding, but does not affect the damage output. Likewise, the damage remains the same regardless of any dyes used. The [[Piercing]] enchantment causes the firework rocket to pierce a number of entities based on its respective level before exploding.{{only|java}} Unlike an arrow shot from a bow, the firework does not slow down under water.

=== Repair ===

Crossbows can be repaired in an [[anvil]] or [[grindstone]] by combining two crossbows. Any loaded ammunition is retained from the crossbow in the first slot but sacrificed from the crossbow in the second slot.

===Enchantments===
{| class="wikitable"
|+
!Name
!Description
!Max Level
|-
|[[Quick Charge]]
|Decreases the reloading time of the crossbow by {{code|level * 0.25}} seconds. Crossbows with [[Quick Charge]] III fire slightly faster than [[bow]]s. If [[commands]] are used to enchant a crossbow with Quick Charge V, the crossbow charges instantaneously. A crossbow enchanted with Quick Charge VI is effectively impossible to charge, which renders it useless. This can be done only {{in|je}}.
|III
|-
|[[Multishot]]
| Makes the crossbow fire a spread of 3 projectiles at once instead of a single projectile, which is useful for targeting mobs spread out in a small area. This works for both [[arrow]]s and [[firework rocket]]s. Firing with this enchantment still uses only one projectile, and because of that, it is possible to recover only one of the three arrows shot from a Multishot crossbow. Multishot crossbows use 3 [[item durability|durability]] points per shot, unless using fireworks for ammunition, in which case 9 durability is consumed. Mutually exclusive with Piercing.
|I
|-
|[[Piercing]]
|Makes [[arrow]]s shot from the crossbow pierce [[entity|entities]] they hit and continue their flight, which allows each arrow to hit up to {{code|level + 1}} entities. This is useful for targeting [[mob]]s closely packed together, and for conserving arrows, as they can be picked up after piercing entities. Arrows fired in this manner also ignore [[Shield|shields]]. Mutually exclusive with Multishot.
|IV
|-
|[[Unbreaking]]
|Causes a <code>(Level /(Level+1)) * 100%</code> chance a shot fired does not reduce the [[item durability|durability]] of the crossbow.
|III
|-
|[[Mending]]
|Allows a certain proportion of [[experience]] orbs collected to contribute toward repairing the crossbow, rather than raising the [[player]]'s experience.
|I
|-
|[[Curse of Vanishing]]
| Causes the crossbow to disappear instead of dropping on the ground when the player dies. The {{cmd|gamerule keepInventory}} overrides this.
|I
|}

[[Multishot]] and [[Piercing]] are mutually exclusive. Normal methods of [[enchanting]] allow only one of them to be applied to a crossbow.

Crossbows can receive 3 unique [[enchanting|enchantment]]s, and have a base enchantability of 1. Enchantments specific to crossbows include [[Quick Charge]], Multishot and Piercing.

===Fuel===
Crossbows can be used as [[fuel]] in [[furnace]]s, [[smelting]] 1.5 [[item]]s per crossbow.

== Sounds ==
{{el|je}}:
{{Sound table
|sound=Crossbow loading start.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a crossbow starts to load
|id=item.crossbow.loading_start
|translationkey=subtitles.item.crossbow.charge
|volume=0.15
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Crossbow quick charge one1.ogg
|sound2=Crossbow quick charge one2.ogg
|sound3=Crossbow quick charge one3.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a Quick Charge I crossbow starts to load <ref group=sound><code>quick1_3</code> occurs at half the frequency as the other sounds</ref>
|id=item.crossbow.quick_charge_1
|translationkey=subtitles.item.crossbow.charge
|volume=''varies'' <ref group=sound>0.325 for all except <code>quick1_1</code> (pitch=0.9), which is 0.25</ref>
|pitch=''varies'' <ref group=sound><code>quick1_1</code> can be 1.0 or 0.9; <code>quick1_2</code> can be 1.0 or 0.95; <code>quick1_3</code> can be 1.0</ref>
|distance=16}}
{{Sound table
|sound=Crossbow quick charge two1.ogg
|sound2=Crossbow quick charge two2.ogg
|sound3=Crossbow quick charge two3.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a Quick Charge II crossbow starts to load <ref group=sound name=quickchargefrequency><code>_1</code> occurs at {{frac|2|3}} the frequency as the other sounds</ref>
|id=item.crossbow.quick_charge_2
|translationkey=subtitles.item.crossbow.charge
|pitch=''varies'' <ref group=sound name=quickchargevolume />
|volume=''varies'' <ref group=sound name=quickchargepitch />
|distance=16}}
{{Sound table
|sound=Crossbow quick charge three1.ogg
|sound2=Crossbow quick charge three2.ogg
|sound3=Crossbow quick charge three3.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a Quick Charge III crossbow starts to load <ref group=sound name=quickchargefrequency />
|id=item.crossbow.quick_charge_3
|translationkey=subtitles.item.crossbow.charge
|volume=''varies'' <ref group=sound name=quickchargevolume>0.325 for all except <code>_1</code> (pitch=0.95), which is 0.25</ref>
|pitch=''varies'' <ref group=sound name=quickchargepitch><code>_1</code> can be 1.0 or 0.95; <code>_2</code> can be 1.0, 0.95, or 1.05; <code>_3</code> can be 1.0, 0.9, or 1.05</ref>
|distance=16}}
{{Sound table
|sound=Crossbow loading middle1.ogg
|sound2=Crossbow loading middle2.ogg
|sound3=Crossbow loading middle3.ogg
|sound4=Crossbow loading middle4.ogg
|subtitle=MC-203146
|source=player
|description=While a crossbow is loading <ref group=sound><code>loading_middle4</code> occurs at {{frac|1|4}} the frequency as the other sounds</ref>
|id=item.crossbow.loading_middle
|translationkey=-
|volume=0.325
|pitch=''varies'' <ref group=sound><code>loading_middle1</code> can be 1.0, 0.95, or 1.2; <code>loading_middle2</code> and <code>loading_middle3</code> can be 1.0, 0.9, or 1.05; <code>loading_middle4</code> can be 1.0</ref>
|distance=16}}
{{Sound table
|sound=Crossbow loading end.ogg
|subtitle=Crossbow loads
|source=dependent
|description=When a crossbow stops loading
|id=item.crossbow.loading_end
|translationkey=subtitles.item.crossbow.load
|volume=1.0
|pitch={{frac|13|15}}-1.2
|distance=16}}
{{Sound table
|sound=Crossbow shoot1.ogg
|sound2=Crossbow shoot2.ogg
|sound3=Crossbow shoot3.ogg
|subtitle=Crossbow fires
|source=dependent
|description=When a crossbow fires
|id=item.crossbow.shoot
|translationkey=subtitles.item.crossbow.shoot
|volume=0.8/0.9/0.9
|pitch=1.0/1.0/0.9 <ref group=sound>Multiplied by the loading percentage of the crossbow</ref>
|distance=16}}
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|subtitle=Arrow hits
|source=neutral
|description=When an arrow hits a block or entity
|id=item.crossbow.hit
|translationkey=subtitles.item.crossbow.hit
|volume=1.0
|pitch={{frac|12|11}}-{{frac|4|3}}
|distance=16}}
{{Sound table
|sound=Succesfull Hit.ogg
|subtitle=Player hit
|source=player
|description=When an arrow shot by a player hits another player
|id=entity.arrow.hit_player
|translationkey=subtitles.entity.arrow.hit_player
|volume=0.18
|pitch=0.45
|distance=16}}
{{Sound table
|sound=Firework launch.ogg
|subtitle=Firework launches
|source=ambient
|description=When a crossbow fires a firework rocket
|id=entity.firework_rocket.launch
|translationkey=subtitles.entity.firework_rocket.launch
|volume=3.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Random break.ogg
|subtitle=Item breaks
|source=dependent
|description=When a crossbow'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}}

{{el|be}}:
{{Sound table
|type=bedrock
|sound=Crossbow loading start.ogg
|source=player
|description=When a crossbow starts to load
|id=crossbow.loading.start
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow loading middle1.ogg
|sound2=Crossbow loading middle2.ogg
|sound3=Crossbow loading middle3.ogg
|sound4=Crossbow loading middle4.ogg
|source=player
|description=While a crossbow is loading and when a crossbow stops loading
|id=crossbow.loading.middle
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow loading end.ogg
|source=player
|description=''Unused sound event''
|id=crossbow.loading.end
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow quick charge one1.ogg
|sound2=Crossbow quick charge two1.ogg
|sound3=Crossbow quick charge three1.ogg
|source=player
|description=When a crossbow with Quick Charge starts to load
|id=crossbow.quick_charge.start
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow quick charge one2.ogg
|sound2=Crossbow quick charge two2.ogg
|sound3=Crossbow quick charge three2.ogg
|source=player
|description=While a crossbow with Quick Charge is loading
|id=crossbow.quick_charge.middle
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow quick charge one3.ogg
|sound2=Crossbow quick charge two3.ogg
|sound3=Crossbow quick charge three3.ogg
|source=player
|description=When a crossbow with Quick Charge stops loading
|id=crossbow.quick_charge.end
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow shoot1.ogg
|sound2=Crossbow shoot2.ogg
|sound3=Crossbow shoot3.ogg
|source=player
|description=When a crossbow fires
|id=crossbow.shoot
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|source=player
|description=When an arrow hits a block or entity
|id=random.bowhit
|volume=1.0
|pitch=1.09-1.3}}
{{Sound table
|sound=Firework launch.ogg
|source=ambient
|description=When a crossbow fires a firework rocket
|id=firework.launch
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Random break.ogg
|source=player
|description=When a crossbow's durability is exhausted
|id=random.break
|volume=1.0
|pitch=0.9
|foot=1}}

==Data values==
=== ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Crossbow
|spritetype=item
|nameid=crossbow
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Crossbow
|spritetype=item
|nameid=crossbow
|id=575
|form=item
|foot=1}}

===Item data===

{{el|java}}:
{{main|Player.dat format}}
<div class="treeview" style="margin-top: 0;">
*{{nbt|compound|tag}}: The '''tag''' tag.
{{:Player.dat_format/Crossbow}}
</div>

{{el|bedrock}}:
: See [[Bedrock Edition level format/Item format]].

==Achievements==
{{load achievements|Sniper Duel;Archer;Bullseye}}

==Advancements==
{{load advancements|Take Aim;Bullseye;Sniper Duel;Ol' Betsy;Who's the Pillager Now;Two Birds;Arbalistic}}

==History==
{{History||September 29, 2018|link={{tweet|Minecraft|1046094916902965249}}|Crossbows are announced at [[MINECON Earth 2018]].}}
{{History|java}}
{{History||1.14|snap=18w43a|[[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Arrow Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Firework Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] Added crossbows.
|Crossbows can be enchanted with either the [[Quick Charge]] (Highest Level III), [[Piercing]] (Highest Level IV) or [[Multishot]] (Highest Level I).}}
{{History|||snap=18w47a|Crossbows can now be found inside loot [[chest]]s at the top of [[pillager outpost]]s.}}
{{History|||snap=19w11a|Fletcher [[villager]]s now [[trading|sell]] crossbows and enchanted crossbows.}}
{{History||1.16|snap=20w07a|[[File:Piglin with Crossbow.png|32px]] [[File:Piglin left handed with Crossbow.png|35px]] [[File:Piglin using one hand to hold a loaded crossbow JE1.png|35px]] Added [[piglin]]s, which can spawn with and [[drops|drop]] crossbows.}}
{{History|||snap=20w16a|Crossbows now generate randomly enchanted in [[bastion remnants]] chests.}}
{{History||1.18|snap=21w37a|Crossbow durability is increased to 465 to match {{edition|BE}}.}}
{{History||1.19.4|snap=23w07a|The crossbow recipes are no longer unlocked by [[stick]]s.}}
{{History|upcoming java}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=23w31a|Enchantments exclusive to crossbows are no longer obtainable from villager [[trading]].}}

{{History|bedrock}}
{{History||1.8.0|snap=beta 1.8.0.10|[[File:Crossbow.png|32px]] [[File: Crossbow Pull 0.png|32px]] [[File: Crossbow Pull 1.png|32px]] [[File: Crossbow Pull 2.png|32px]] [[File:Arrow Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Firework Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] Added crossbows.
|Crossbows are currently apart of [[Experimental Gameplay]].}}
{{History||1.9.0|snap=beta 1.9.0.0|Added [[pillager]]s, which use and [[drops|drop]] crossbows.}}
{{History|||snap=beta 1.9.0.3|Crossbows now appear bigger in a pillager's hand.}}
{{History||1.10.0|snap=beta 1.10.0.3|Crossbows are now fully implemented and separate from [[Experimental Gameplay]].
|Crossbows can now be found in [[pillager outpost]] [[chest]]s.}}
{{History||1.11.0|snap=beta 1.11.0.4|Unenchanted and [[enchanting|enchanted]] crossbows can now be [[trading|bought]] from fletcher [[villager]]s.}}
{{History||1.12.0|snap=beta 1.12.0.3|Journeyman-level fletcher villagers now have 100% chance to [[trading|sell]] unenchanted crossbow, rather than 50% chance.}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Piglin with Crossbow BE.png|32px]] Added [[piglin]]s, which can spawn with and [[drops|drop]] crossbows.}}
{{History|||snap=beta 1.16.0.57|Crossbows now generate randomly enchanted in [[bastion remnants]] chests.}}

{{History|PS4}}
{{History||1.90|[[File:Crossbow.png|32px]] [[File: Crossbow Pull 0.png|32px]] [[File: Crossbow Pull 1.png|32px]] [[File: Crossbow Pull 2.png|32px]] [[File:Arrow Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Firework Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] Added crossbows.}}
{{History|foot}}

==Issues==
{{issue list}}

==Trivia==
*Alongside [[pillager]]s, crossbows were inspired by ''[[Minecraft Dungeons]]'', even though they were added in the base game first.<ref>{{cite|url=https://discord.com/channels/579770991056519194/818903542139453480/819631528593588244| title = March 2021 developper Q&A|website=discord.com|date=March 11, 2021}}</ref>
*Crossbows [[enchanting|enchanted]] with [[Quick Charge]] VI and above get stuck on the first frame on the recharging animation because the resulting charge time is negative, and the game never reaches the time markers that tell it to advance the animation or the reloading procedure itself. It is technically possible to charge such crossbows, but this would require overflowing the value that determines how long the crossbow has been charged. This takes such an amount of time that this is practically impossible: for example, charging a crossbow with Quick Charge VI would take 69.4 years to complete.
*Although Piercing allows arrows to bypass [[shield]]s, they can't get through the wither armor.
*The crossbow's first-person loading animation in [[Bedrock Edition]] is different from [[Java Edition]].
*Even if a crossbow is already wound with a projectile, when it drops on the ground, it always looks uncharged.<ref>{{bug|MC-137552}}</ref>
*In real life, crossbows don't shoot the same arrows as bows, rather they shoot shorter, thicker, and oftentimes fletchless arrows (usually called "bolts") made to withstand the crossbow's increased power, which can shatter conventional arrows.

==Gallery==
<gallery>
File:CrossbowMinecon.png|A crossbow shown at [[MINECON Earth 2018]].
File:PillagerMinecon.png|A [[pillager]] armed with a crossbow, shown at MINECON Earth 2018.
File:EquippingCrossbow.png|How the crossbow is equipped.
File:Enchanted_Crossbow.gif|An enchanted crossbow.
File:Steve_Charging_Crossbow.gif|Steve charging crossbow {{in|java}}.
File:Alex_Charging_Crossbow.gif|Alex charging crossbow {{in|java}}.
File:Pillager_Charging_Crossbow.gif|Pillager charging crossbow.
File:Piglin_Charging_Crossbow.gif|Piglin charging crossbow.
File:Crossbow_(MCD).png|The ''Minecraft Dungeons'' variant of the crossbow
</gallery>

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--crossbow Taking Inventory: Crossbow] – Minecraft.net on October 20, 2022

{{Items}}

[[Category:Combat]]
[[Category:Renewable resources]]

[[de:Armbrust]]
[[es:Ballesta]]
[[fr:Arbalète]]
[[it:Balestra]]
[[ja:クロスボウ]]
[[ko:쇠뇌]]
[[pl:Kusza]]
[[pt:Besta]]
[[ru:Арбалет]]
[[th:หน้าไม้]]
[[zh:弩]]</li><li>[[Balloon|Balloon]]<br/>{{exclusive|bedrock|education}}
{{education feature}}
{{ItemEntity
|image=White Balloon.png
|extratext = View [[#Gallery|all renders]]
|invimage=White Balloon
|invimage2=Orange Balloon
|invimage3=Magenta Balloon
|invimage4=Light Blue Balloon
|invimage5=Yellow Balloon
|invimage6=Lime Balloon
|invimage7=Pink Balloon
|invimage8=Gray Balloon
|invimage9=Light Gray Balloon
|invimage10=Cyan Balloon
|invimage11=Purple Balloon
|invimage12=Blue Balloon
|invimage13=Brown Balloon
|invimage14=Green Balloon
|invimage15=Red Balloon
|invimage16=Black Balloon
|renewable=No
|stackable=Yes
|size=Height: 0.4 Blocks<br>Width: 0.4 Blocks
}}

'''Balloons''' are [[entities]] that float upward when placed.

== Obtaining ==
Balloons are not available in the [[Creative]] inventory or [[commands]].

=== Crafting ===

{{Crafting
|A1= Latex
|B1= Matching Dye
|C1= Latex
|A2= Latex
|B2= Helium
|C2= Latex
|A3= Latex
|B3= Lead
|C3= Latex
|Output= Matching Balloon
|description={{only|bedrock|education}}
|type= Miscellaneous
|head=1
}}
{{Crafting
|A1= Latex
|B1= Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
|C1= Latex
|A2= Latex
|B2= Helium
|C2= Latex
|A3= Latex
|B3= Lead
|C3= Latex
|Output= White Balloon; Blue Balloon; Brown Balloon; Black Balloon
|description={{only|bedrock|education}}
|type= Miscellaneous
|foot=1
}}

== Usage ==

When {{control|used}} on a [[mob]], a [[fence]], or a [[wall]], balloons attach to the mob or block, similarly to a [[lead]]. Balloons float into the air faster than the speed the [[player]] flies up, but remain grounded if tied to a fence. If tied to a mob, the balloon floats away and carries the mob into the air, before both eventually [[despawn]] or disappear.
{| class="wikitable sortable" style="text-align: left;"
|+ Balloon-attachable mobs
! Mob
! Mass
|-
| {{EntityLink|Chicken}} 
| 0.6
|-
| {{EntityLink|Cow}} 
| 1.0
|-
| {{EntityLink|Donkey}} 
| 1.0
|-
| {{EntityLink|Horse}} 
| 1.0
|-
| {{EntityLink|Iron Golem}} 
| 2.0
|-
| {{EntityLink|Llama}} 
| 1.0
|-
| {{EntityLink|Mule}} 
| 1.0
|-
| {{EntityLink|Mooshroom}}
| 1.0
|-
| {{EntityLink|Panda}}
| 1.5
|-
| {{EntityLink|Pig}}
| 0.75
|-
| {{EntityLink|Sheep}}
| 0.75
|-
| {{EntityLink|Snow Golem}}
| 1.0
|-
| {{EntityLink|Fox}}
| 0.6
|}

When a balloon is shot by an [[arrow]] or a [[trident]], or floats into a solid block, it pops, summons [[particles]], and is destroyed. It drops nothing. A balloon tied to a fence post bursts when a player strikes it in any direction.

== Sounds ==
{{Sound table
|type=bedrock
|sound=Balloon pop1.ogg
|sound2=Balloon pop2.ogg
|source=neutral
|description=When a balloon collides with a block from above
|id=balloon.pop
|volume=10.0
|pitch=1.75/2.0
|foot=1}}

== Data values ==
=== ID ===
{{ID table
|edition=bedrock
|firstcolumnname=Balloon
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Item
|spritename=balloons
|spritetype=item
|nameid=balloon
|id=598
|form=item
|translationkey=item.balloon.black.name,item.balloon.red.name,item.balloon.green.name,item.balloon.brown.name,item.balloon.blue.name,item.balloon.purple.name,item.balloon.cyan.name,item.balloon.silver.name,item.balloon.gray.name,item.balloon.pink.name,item.balloon.lime.name,item.balloon.yellow.name,item.balloon.lightBlue.name,item.balloon.magenta.name,item.balloon.orange.name,item.balloon.white.name
|foot=1}} 
{{ID table
|edition=bedrock
|firstcolumnname=Balloon
|shownumericids=y
|generatetranslationkeys=y
|displayname=Entity
|spritename=balloons
|spritetype=entity
|nameid=balloon
|id=107
|foot=1}}

=== Metadata ===
In ''Bedrock Edition'', balloon items use the following data values:

{{/DV}}

== History ==

{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|[[File:White Balloon BE1.png|32px]] [[File:Orange Balloon BE1.png|32px]] [[File:Magenta Balloon BE1.png|32px]] [[File:Light Blue Balloon BE1.png|32px]] [[File:Yellow Balloon BE1.png|32px]] [[File:Lime Balloon BE1.png|32px]] [[File:Pink Balloon BE1.png|32px]] [[File:Gray Balloon BE1.png|32px]] [[File:Silver Balloon BE1.png|32px]] [[File:Cyan Balloon BE1.png|32px]] [[File:Purple Balloon BE1.png|32px]] [[File:Blue Balloon BE1.png|32px]] [[File:Brown Balloon BE1.png|32px]] [[File:Green Balloon BE1.png|32px]] [[File:Red Balloon BE1.png|32px]] [[File:Black Balloon BE1.png|32px]] <br> [[File:White Balloon (item) BE1.png|32px]] [[File:Orange Balloon (item) BE1.png|32px]] [[File:Magenta Balloon (item) BE1.png|32px]] [[File:Light Blue Balloon (item) BE1.png|32px]] [[File:Yellow Balloon (item) BE1.png|32px]] [[File:Lime Balloon (item) BE1.png|32px]] [[File:Pink Balloon (item) BE1.png|32px]] [[File:Gray Balloon (item) BE1.png|32px]] [[File:Silver Balloon (item) BE1.png|32px]] [[File:Cyan Balloon (item) BE1.png|32px]] [[File:Purple Balloon (item) BE1.png|32px]] [[File:Blue Balloon (item) BE1.png|32px]] [[File:Brown Balloon (item) BE1.png|32px]] [[File:Green Balloon (item) BE1.png|32px]] [[File:Red Balloon (item) BE1.png|32px]] [[File:Black Balloon (item) BE1.png|32px]] Added balloons.}}
{{History||1.18.10|snap=beta 1.18.10.24|[[Bee]]s, [[boat]]s, tamed [[cat]]s, [[dolphin]]s, [[glow squid]]s, [[goat]]s, [[hoglin]]s, [[ocelot]]s, [[panda]]s, [[parrot]]s, [[polar bear]]s, [[squid]]s, [[strider]]s, tamed [[wolves]] and [[zoglin]]s can now be leashed.}}
{{History||1.18.30|snap=beta 1.18.30.28|Added the [[boat with chest]], which can be leashed.}}

{{History|education}}
{{History||1.0.27|[[File:White Balloon BE1.png|32px]] [[File:Orange Balloon BE1.png|32px]] [[File:Magenta Balloon BE1.png|32px]] [[File:Light Blue Balloon BE1.png|32px]] [[File:Yellow Balloon BE1.png|32px]] [[File:Lime Balloon.png|32px]] [[File:Pink Balloon BE1.png|32px]] [[File:Gray Balloon BE1.png|32px]] [[File:Silver Balloon BE1.png|32px]] [[File:Cyan Balloon BE1.png|32px]] [[File:Purple Balloon BE1.png|32px]] [[File:Blue Balloon.png|32px]] [[File:Brown Balloon BE1.png|32px]] [[File:Green Balloon BE1.png|32px]] [[File:Red Balloon BE1.png|32px]] [[File:Black Balloon BE1.png|32px]] <br> [[File:White Balloon (item) BE1.png|32px]] [[File:Orange Balloon (item) BE1.png|32px]] [[File:Magenta Balloon (item) BE1.png|32px]] [[File:Light Blue Balloon (item) BE1.png|32px]] [[File:Yellow Balloon (item) BE1.png|32px]] [[File:Lime Balloon (item) BE1.png|32px]] [[File:Pink Balloon (item) BE1.png|32px]] [[File:Gray Balloon (item) BE1.png|32px]] [[File:Silver Balloon (item) BE1.png|32px]] [[File:Cyan Balloon (item) BE1.png|32px]] [[File:Purple Balloon (item) BE1.png|32px]] [[File:Blue Balloon (item) BE1.png|32px]] [[File:Brown Balloon (item) BE1.png|32px]] [[File:Green Balloon (item) BE1.png|32px]] [[File:Red Balloon (item) BE1.png|32px]] [[File:Black Balloon (item) BE1.png|32px]] Added balloons.}}
{{History||1.18.32|snap=1.18.10.04|[[Bee]]s, [[boat]]s, tamed [[cat]]s, [[dolphin]]s, [[glow squid]]s, [[goat]]s, [[hoglin]]s, [[ocelot]]s, [[panda]]s, [[parrot]]s, [[polar bear]]s, [[squid]]s, [[strider]]s, tamed [[wolves]] and [[zoglin]]s can now be leashed.}}
{{History|foot}}
==Gallery==

=== Colors ===
<gallery>
Orange Balloon.png
Magenta Balloon.png
Light Blue Balloon.png
Yellow Balloon.png
Lime Balloon.png
Pink Balloon.png
Gray Balloon.png
Light Gray Balloon.png
Cyan Balloon.png
Purple Balloon.png
Blue Balloon.png
Brown Balloon.png
Green Balloon.png
Red Balloon.png
Black Balloon.png
</gallery>

=== [[Event servers]] ===
<gallery>
File:Legends Balloon.png|Differently designed balloons featured in the ''[[Minecraft Legends Live Event]]''.
File:Sniffer Balloon (Trails and Tales Summer Event) Render.png|A [[Sniffer]] balloon, featured in the [[Trails & Tales Event]].
File:Camel Balloon (Trails and Tales Summer Event) Render.png|A balloon of a [[Camel]], featured in the Trails & Tales Event.
File:Balloon Bundle (Trails and Tales Summer Event) Render.png|Bundle of balloons from the Trails & Tales Event.
</gallery>{{Items}}
{{Entities}}
{{Education Edition}}

[[Category:Education Edition entities]]
[[Category:Education Edition items]]

[[de:Ballon]]
[[it:Palloncino]]
[[ja:風船]]
[[ko:풍선]]
[[pt:Balão]]
[[ru:Воздушный шар]]
[[zh:气球]]</li></ul>
17w43aCustom functions have been moved into data packs.
17w45aFunctions are now completely parsed and cached on load.
17w49bFunction 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

Advertisement