Loot tables are technical JSON tables that represent what items should be in a naturally generated chest or what items should drop when killing a mob.
Usage
The loot tables are structured as a String tag which determines the table to use, and a Long tag determining the seed. Chests or mobs with the same seed will drop the same items. Loot tables do not determine which slot of a chest is used, that is randomly determined based on the seed.
For chests:
- The root tag
- LootTable: Loot table to be used to fill the chest when it is next opened. When the chest is part of a double chest, only the half corresponding to the tagged single-chest will be affected.
- LootTableSeed: Seed for generating the loot table. 0 or omitted will use a random seed.
These tags will be removed once the chest is opened and only then items will be put in the chest.
For entities:
- The root tag
- DeathLootTable: Loot table to be used for the items that drop when the entity is killed.
- DeathLootTableSeed: Seed for generating the loot table. 0 or omitted will use a random seed.
The loot tables of entities and chests can be altered with /entitydata and /blockdata.
Tags
Loot tables are defined using the JSON format. Below are a list of tags used.
- The root tag
- pools: A list of all pools for this entity. Each pool will randomly choose something from its list of items based on the number of rolls
- A pool
- conditions: Determines conditions for this pool to be used.
- A condition
- condition: Name of condition. Valid conditions are described below.
- A condition
- rolls: Determines the minimum and maximum time an item pool can be used. If set to an Integer instead of a Compound, it will always use that number
- min: Minimum number of times a pool will be used
- max: Maximum number of times a pool will be used
- items: A list of all items in this pool
- An item
- conditions: Determines conditions for this item to be used.
- A condition
- condition: Name of condition. Valid conditions are described below.
- A condition
- item: ID name of the item. For example,
minecraft:diamond - functions: Determines special actions to add to an item. If any function is unset, it will not be used.
- A function:
- function: Name of function to use. Valid functions are described below.
- conditions: Determines conditions for this function to take place.
- A condition
- condition: Name of condition. Valid conditions are described below.
- A condition
- A function:
- weight: Determines how often this item will be chosen. Items with higher weights will be used more often
- conditions: Determines conditions for this item to be used.
- An item
- conditions: Determines conditions for this pool to be used.
- A pool
- pools: A list of all pools for this entity. Each pool will randomly choose something from its list of items based on the number of rolls
Functions
Loot tables use various functions which add special data to an item, such as stack size or enchantments. Below are a list of valid functions, and the tags used by them. The tags are placed in the same function object as function:.
- enchant_with_levels - Determines the level of enchantment to apply to this item.
- treasure: Determines whether treasure enchantments are allowed on this item.
- levels: Determines exact enchantment level to use, as opposed to a range.
- levels: Determines the minimum and maximum enchantment to apply, which is mostly equivalent to using an enchantment table with this level. If set to an Integer instead of a Compound, it will always use that number.
- min: Minimum level to use.
- max: Maximum level to use.
- furnace_smelt - Smelts the item as it would be in a furnace. Used to cook food for animals on death.
- looting_enchant - Determines the effects of Looting on this item. If unused, Looting will have no effect.
- count: Determines exact number of additional items from looting, as opposed to a range.
- count: Determines the minimum and maximum increase for this item per level of Looting.
- min: Minimum increase.
- max: Maximum increase.
- set_count - Determines the minimum and maximum stack size. If unused, a stack size of 1 will be used.
- count: Determines exact number of items provided, as opposed to a range.
- count: Determines the minimum and maximum stack size for this item.
- min: Minimum stack size.
- max: Maximum stack size.
- set_data - Determines the damage value of the item.
- data: Exact damage value of the item, as opposed to a range.
- data: Determines the minimum and maximum damage value for this item.
- min: Minimum damage.
- max: Maximum damage.
- set_nbt - Adds NBT data to an item
- tag: Tag to add, similar to those used by commands. Note that the first bracket is required and quotation marks need to be escaped using a backslash (
\)
- tag: Tag to add, similar to those used by commands. Note that the first bracket is required and quotation marks need to be escaped using a backslash (
Conditions
Loot tables use various conditions which add requirements to a drop, pool, or function. Below are a list of valid conditions, and the tags used by them. The tags are placed in the same condition object as condition:.
- entity_properties - Determines required properties for this to be used
- entity: Determines the entity to check for the condition. Set to
thisto use the entity that died,killerfor the killer, orkiller_playerfor a killer that is a player. - properties: Properties that must match for the condition.
- on_fire: The entity must be on fire
- entity: Determines the entity to check for the condition. Set to
- entity_scores - Checks for the scores of an entity for the drop to happen
- entity: Determines the entity to check for the condition. Set to
thisto use the entity that died,killerfor the killer, orkiller_playerfor a killer that is a player. - scores: Scores to check
- A score: Name of a score to check for the minimum and maximum. If set to an Integer instead of a Compound, it will always use that number. Note that only the minimum score works as of 15w43b.
- min: Minimum score
- max: Maximum score
- A score: Name of a score to check for the minimum and maximum. If set to an Integer instead of a Compound, it will always use that number. Note that only the minimum score works as of 15w43b.
- entity: Determines the entity to check for the condition. Set to
- killed_by_player - Requires the entity to be killed by the player
- inverse: Reverse the condition to only allow item drop if not killed by a player.
- random_chance_with_looting - Changes the chance of the pool based on Looting
- chance: Determines the base chance for this item to drop
- looting_multiplier: Determines the amount to increase the chance per level of Looting.
List of loot tables
Below is a list of all loot tables that exist by default. More tables can be added in the world save for use with custom maps.
- loot_tables
- chests - Items from loot chests
- abandoned_mineshaft - Minecarts with chests found in abandoned mine shafts
- desert_pyramid - Chests found in the treasure room inside Desert Temples
- end_city_treasure - Chests found in End Cities
- igloo_chest - The chest that appears in the basements in igloos
- jungle_temple - Chests found inside Jungle Temples
- nether_bridge - Chests found in Nether Fortresses
- simple_dungeon - Dungeon chests
- spawn_bonus_chest - Bonus chests that appear in a new world when bonus chests are enabled
- stronghold_corridor - Chests found on slab altars in corridors in strongholds
- stronghold_crossing - The chest in the upper level of store rooms in strongholds
- stronghold_library - Chests found in a library in strongholds
- village_blacksmith - The chest found in the Blacksmith's house in a Village
- entities - Items dropped from entities. May cause issues when applied to chests, due to some items spawning in stacks of 0
- sheep
- black
- blue
- brown
- cyan
- gray
- green
- light_blue
- lime
- magenta
- orange
- pink
- purple
- red
- silver
- white
- yellow
- bat
- blaze
- cave_spider
- chicken
- cow
- creeper
- elder_guardian
- enderman
- endermite
- ghast
- giant
- guardian
- horse
- magma_cube
- mushroom_cow
- ocelot
- pig
- rabbit
- shulker
- silverfish
- skeleton
- slime
- snowman - snow golems
- spider
- squid
- villager_golem - iron golems
- wolf
- zombie
- zombie_pigman
- sheep
- empty - contains no items
- chests - Items from loot chests
History
| u | |||||
|---|---|---|---|---|---|
1.9{{Extension DPL}}<ul><li>[[Lava Bucket|Lava Bucket]]<br/>{{Item
| title = Lava Bucket
| image = Lava Bucket.png
| renewable = Yes
| stackable = No
}}
A '''lava bucket''' is a [[bucket]] filled with [[lava]].
== Obtaining ==
=== Interacting ===
To fill an empty [[bucket]] with lava, {{control|use}} it on a [[lava]] source block or lava in a [[cauldron]]. The block is consumed in the process. Flowing lava does not fill a bucket.
If there is a lava source above the [[pointed dripstone]] stalactite, there is a {{frac|15|256}} (~5.9%) chance for it to completely fill an empty cauldron within 10 blocks under the tip with lava after a [[random tick]]. This lava can then be scooped with a bucket, making it a renewable resource.
==Usage==
A lava bucket can be used to place down lava sources with the {{key|Use Item}} button. Doing so gives the player the bucket back. Lava buckets can be used to replace some transparent, non-full blocks such as [[tall grass]] and [[water]], both flowing and sources.
{{IN|java}}, lava buckets can be used to break [[Nether Portal (block)|Nether portal blocks]] by placing the lava on the side of a block next to the portal block.
=== Smelting ===
A lava bucket can be used as an efficient [[fuel]]. It has the longest burning value of 1000 seconds, compared to 800 seconds for a [[coal block]] (a lava bucket smelts 100 items, and a coal block smelts 80). After smelting starts, the lava bucket turns into an empty bucket.
=== Trading ===
{{IN|bedrock}}, journeyman-level armorer villagers buy a lava bucket for one [[emerald]] as part of their trades.
{{IN|java}}, journeyman-level armorer villagers have a 40% chance of offering to buy a lava bucket for one emerald.
=== Cauldrons ===
A lava bucket can be used to fill a [[cauldron]] with lava. The lava damages any entity standing inside the cauldron, unless the entity is immune to fire damage.<!-- ex: nether mobs--> Flowing water or waterlogging does not affect the lava in the cauldron.
== Sounds ==
{{el|je}}:
{{Sound table
|sound=Fill lava bucket1.ogg
|sound2=Fill lava bucket2.ogg
|sound3=Fill lava bucket3.ogg
|subtitle=Bucket fills
|source=player
|description=When a bucket is filled with lava
|id=item.bucket.fill_lava
|translationkey=subtitles.item.bucket.fill
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Empty lava bucket1.ogg
|sound2=Empty lava bucket2.ogg
|sound3=Empty lava bucket3.ogg
|subtitle=Bucket empties
|source=block
|description=When a lava bucket is emptied
|id=item.bucket.empty_lava
|translationkey=subtitles.item.bucket.empty
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}
{{el|be}}:
{{Sound table
|type=bedrock
|sound=Fill lava bucket1.ogg
|sound2=Fill lava bucket2.ogg
|sound3=Fill lava bucket3.ogg
|source=block
|description=When a bucket is filled with lava
|id=bucket.fill_lava
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Empty lava bucket1.ogg
|sound2=Empty lava bucket2.ogg
|sound3=Empty lava bucket3.ogg
|source=block
|description=When a lava bucket is emptied
|id=bucket.empty_lava
|volume=1.0
|pitch=1.0
|foot=1}}
==Data values==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Lava Bucket
|spritetype=item
|nameid=lava_bucket
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Lava Bucket
|spritetype=item
|nameid=lava_bucket
|aliasid=bucket / 10
|id=363
|form=item
|translationkey=item.bucketLava.name
|foot=1}}
== Achievements ==
{{load achievements|Super Fuel}}
== Advancements ==
{{Load advancements|Hot Stuff}}
==History==
{{History|java infdev}}
{{History||20100615|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History|java alpha}}
{{History||v1.1.0|Buckets of lava can now be used to fuel a [[furnace]] for 100 [[smelting|smelts]], consuming the [[lava]] and the [[bucket]]. This is the highest number of smelts of any single [[item]] in the game.}}
{{History||v1.2.6|{{control|use|text=Using}} a lava bucket on [[block]]s with GUIs ([[chest]]s, furnaces, etc.) no longer places the lava.}}
{{History|java}}
{{History||1.2.1|snap=1.2|Changed name from "Lava bucket" to "Lava Bucket".}}
{{History||1.3|snap=12w22a|[[Smelting]] in a [[furnace]] with a lava bucket now leaves an empty [[bucket]] for the [[player]] to retrieve.}}
{{History||1.8|snap=14w25a|A lava bucket is now shown as the icon when [[lava]] is used as a layer in [[Superflat]].}}
{{History||1.9|snap=15w50a|Added sounds for filling and pouring lava buckets.}}
{{History||1.13|snap=17w47a|Prior to the ''[[Flattening]]'' this item's numerical ID was 327.}}
{{History||1.14|snap=18w43a|[[File:Lava Bucket JE2 BE2.png|32px]] The texture of lava buckets has been changed.}}
{{History|||snap=19w11a|Armorer villagers can now [[trading|buy]] lava buckets.}}
{{History||1.17|snap=20w45a|Lava buckets can now be used to fill a [[cauldron]] with lava.}}
{{History|||snap=21w13a|The lava bucket is now fully renewable, as [[pointed dripstone]] can now be obtained in Survival mode without custom generation.}}
{{History|pocket alpha}}
{{History||v0.7.0|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History||v0.7.4|Lava buckets can now be used as [[fuel]] in a [[furnace]].
|Lava buckets no longer stack to 64.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Moved all bucket items, including lava buckets, from the Equipment tab to the Items tab in the [[Creative inventory]].{{verify|type=update}}{{info needed}}<!---please check snapshots, only 1 major release version was checked each--->}}
{{History||1.9.0|snap=beta 1.9.0.2|Lava bucket can now be used to fill a [[cauldron]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Lava Bucket JE2 BE2.png|32px]] The texture of lava buckets has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Lava buckets can now be [[trading|sold]] to armorer [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of lava buckets has been changed from <code>bucket/10</code> to <code>lava_bucket</code>.}}
{{History||1.17.0|snap=beta 1.16.230.54|The lava bucket is now fully renewable, as [[pointed dripstone]] can now be obtained in Survival mode without custom generation.}}
{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History||xbox=TU9|[[Dispenser]]s have now been given the ability to shoot out the [[liquids]] inside lava buckets. They can also suck up the liquids if activated again, but do not fill up the [[bucket]]s with the liquid dropped due to a bug.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Lava Bucket JE2 BE2.png|32px]] The texture of lava buckets has been changed.}}
{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History|foot}}
== Issues ==
{{Issue list}}
==Trivia==
* One lava bucket has the highest number of [[smelting|smelts]] in the game at 100 items per bucket.
** This makes it 12.5 times more efficient than [[coal]] and [[charcoal]].
* A lava bucket is used as Steve's Down-Smash attack in the crossover fighting game Super Smash Bros. Ultimate.
{{Items}}
[[Category:Renewable resources]]
[[Category:Tools]]
[[de:Lavaeimer]]
[[ja:溶岩入りバケツ]]
[[pt:Balde de lava]]
[[th:ถังลาวา]]
[[uk:Відро лави]]
[[zh:熔岩桶]]</li><li>[[Dragon's Breath|Dragon's Breath]]<br/>{{Item
| image = Dragon's Breath.png
| renewable = Yes
| stackable = Yes (64)
| rarity = Uncommon
}}
The '''dragon's breath''' is a [[brewing]] item that is used solely to make [[lingering potion]]s.
== Obtaining ==
The dragon's breath can be obtained by scooping up the [[ender dragon]]'s breath attack or the purple [[area effect cloud|effect clouds]] caused by [[dragon fireball]]s in an empty [[glass bottle]].
== Usage ==
=== Brewing ingredient ===
Dragon's breath may be added to any splash potion to upgrade it to a lingering potion, which can be used to create a lasting [[Lingering Potion#Area Effect Cloud|area effect cloud]], or to craft [[Arrow#Tipped arrows|tipped arrows]].
{{brewing
|name=[[Lingering Potion]]
|showname=1
|Dragon's Breath
|Any Lingering Potion
|base=Any Splash Potion}}
When put 2 or more dragon's breath in the brewing stand, after the brewing process, a glass bottle will drop as an [[Item (entity)|entity]]. However, if put only 1 dragon's breath in the brewing stand, after the brewing process, the glass bottle is consumed and cannot be retrieved.<ref>{{bug|MC-259583}}</ref>
== Sounds ==
{{Edition|Java}}:
{{Sound table
|sound=Bottle fill dragon breath1.ogg
|sound2=Bottle fill dragon breath2.ogg
|subtitle=Bottle fills
|source=neutral
|description=Filling a glass bottle with dragon's breath
|id=item.bottle.fill_dragonbreath
|translationkey=subtitles.item.bottle.fill
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}
{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Bottle fill dragon breath1.ogg
|sound2=Bottle fill dragon breath2.ogg
|source=sound
|description=When a bottle is filled with dragon's breath
|id=bottle.dragonbreath
|volume=0.7<wbr>{{Until|BE 1.20.40}}<br>1.0<wbr>{{Upcoming|BE 1.20.40}}
|pitch=1.0
|foot=1}}
== Achievements ==
{{Load achievements|You Need a Mint}}
== Advancements ==
{{load advancements|You Need a Mint}}
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Dragon's Breath
|spritetype=item
|nameid=dragon_breath
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Dragon's Breath
|spritetype=item
|nameid=dragon_breath
|id=560
|form=item
|foot=1}}
== History ==
{{History|java}}
{{History||1.9|snap=15w33a|[[File:Dragon's Breath JE1 BE1.png|32px]] Added dragon's breath.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 437.}}
{{History||1.14|snap=18w43a|[[File:Dragon's Breath JE2 BE2.png|32px]] The texture of dragon's breath has been changed.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|[[File:Dragon's Breath JE1 BE1.png|32px]] Added dragon's breath.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Dragon's Breath JE2 BE2.png|32px]] The texture of dragon's breath has been changed.}}
{{History|console}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|switch=1.0.1|[[File:Dragon's Breath JE1 BE1.png|32px]] Added dragon's breath.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Dragon's Breath JE2 BE2.png|32px]] The texture of dragon's breath has been changed.}}
{{History|3ds}}
{{History||1.7.10|[[File:Dragon's Breath JE1 BE1.png|32px]] Added dragon's breath.}}
{{History|foot}}
== Issues ==
{{issue list}}
== Trivia ==
* If the dragon's breath is used in a [[crafting]] recipe (using a [[mod]] or a [[data pack]]), it becomes an empty bottle instead of being entirely consumed.
== References ==
{{reflist}}
==External Links==
*[https://www.minecraft.net/en-us/article/dragon-s-breath Taking Inventory: Dragon's Breath] – Minecraft.net on June 9, 2023
{{Items}}
[[Category:Renewable resources]]
[[de:Drachenatem]]
[[fr:Souffle de dragon]]
[[it:Soffio di drago]]
[[ja:ドラゴンブレス]]
[[ko:드래곤의 숨결]]
[[nl:Drakenadem]]
[[pl:Oddech smoka]]
[[pt:Bafo do dragão]]
[[ru:Драконье дыхание]]
[[zh:龙息]]
[[Category:Brewing recipe]]</li></ul> | October 19, 2015 | Dinnerbone announces loot tables. | |||
| 15w43a | Added loot tables. | ||||
| 15w43b | Added condition entity_scores. | ||||