Minecraft Wiki
Advertisement
Crafting Table
This article describes content that may be included in a future update. 
This content has appeared in development versions, but the full update containing it has not been released yet.

Loot tables are technical JSON tables that represent what items should be in a naturally generated chest, what items should drop when killing a mob, or what items can be fished.

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 used will generate items from its list of items based on the number of rolls. Pools are applied in order.
      •  A pool
        •  conditions: Determines conditions for this pool to be used. If multiple conditions are specified, all must pass.
          •  A condition
            •  condition: Name of condition. Valid conditions are described below.
        •  rolls: Specifies the exact number of rolls on the pool.
        •  rolls: Specifies a random number of rolls within a range.
          •  min: Minimum number of rolls.
          •  max: Maximum number of rolls.
        •  entries: A list of all items that can be produced by this pool. One item is chosen per roll as a weighted random selection.
          •  An entry
            •  conditions: Determines conditions for this item to be used. If multiple conditions are specified, all must pass. If the conditions fail, the roll does not produce an item.
              •  A condition
                •  condition: Name of condition. Valid conditions are described below.
            •  type: Type of entry. Can be item for item entries, or loot_table to load a loot table from the folder.
            •  name: ID name of the item to be produced, e.g. minecraft:diamond, or loot table to be use, e.g. minecraft:gameplay/fishing/junk. The default, if not changed by functions, is a stack of 1 of the default instance of the item. If omitted, this entry represents a weighted chance for receiving no item on the roll and functions and conditions must also be omitted.
            •  functions: Applies functions to the item stack being produced. Functions are applied in order, so for example looting_enchant must be after set_count to work correctly.
              •  A function:
                •  function: Name of the function to apply. Valid functions are described below.
                •  conditions: Determines conditions for this function to be applied. If multiple conditions are specified, all must pass.
                  •  A condition
                    •  condition: Name of condition. Valid conditions are described below.
            •  weight: Determines how often this item will be chosen out of all the items in the pool. Items with higher weights will be used more often (chance is this item's weighttotal of all items' weights).
            •  luck:
            •  luck_multiplier: Increases the item's weight based on luck being applied to this application of the loot table, formula is floor( weight + weight * luck_multiplier * luck ). However, luck is currently always 0.

Functions

Loot tables use various functions to change the item stack being produced, such as adjusting the stack size or adding 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 - Enchants the item, with the specified enchantment level (roughly equivalent to using an enchantment table at that level).
    •  treasure: Determines whether treasure enchantments are allowed on this item.
    •  levels: Specifies the exact enchantment level to use.
    •  levels: Specifies a random enchantment level within a range.
      •  min: Minimum level to use.
      •  max: Maximum level to use.
  • furnace_smelt - Smelts the item as it would be in a furnace. Used in combination with the entity_properties condition to cook food for animals on death.
  • looting_enchant - Adjusts the stack size based on the level of the Looting enchantment on the killer entity.
    •  count: Specifies an exact number of additional items per level of looting.
    •  count: Specifies a random number (within a range) of additional items per level of looting. Note the random number generated may be fractional, and will be rounded after multiplying by the looting level.
      •  min: Minimum increase.
      •  max: Maximum increase.
  • set_count - Sets the stack size.
    •  count: Specifies the exact stack size to set.
    •  count: Specifies a random stack size within a range.
      •  min: Minimum stack size.
      •  max: Maximum stack size.
  • set_damage - Determines item damage value (durability) for tools.
    •  damage: Specifies the exact value to set.
    •  damage: Specifies a random value within a range.
      •  min: Minimum value.
      •  max: Maximum value.
  • set_data - Determines the item data ("damage") value of the item.
    •  data: Specifies the exact value to set.
    •  data: Specifies a random value within a range.
      •  min: Minimum value.
      •  max: Maximum value.
  • set_nbt - Adds NBT data to an item.
    •  tag: Tag string 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 - Test properties of an entity.
    •  entity: Specifies the entity to check for the condition. Set to this to use the entity that died, killer for the killer, or killer_player for a killer that is a player.
    •  properties: Properties to be checked.
      •  on_fire: Test whether the entity is or is not on fire.
  • entity_scores - Test the scoreboard scores of an entity.
    •  entity: Specifies the entity to check for the condition. Set to this to use the entity that died, killer for the killer, or killer_player for a killer that is a player.
    •  scores: Scores to check. All specifies scores must pass for the condition to pass.
      •  A score: Key name is the objective while the value is the exact score value required for the condition to pass. Note that this is broken as of 15w43b.
      •  A score: Key name is the objective while the value specifies a range of score values required for the condition to pass. Note that only the minimum score works as of 15w43b.
        •  min: Minimum score.
        •  max: Maximum score.
  • killed_by_player - Test if a killer_player entity is available.
    •  inverse: If true, the condition passes if killer_player is not available.
  • random_chance - Test if a random number 0.0–1.0 is less than a specified value.
    •  chance: Success rate as a number 0.0–1.0.
  • random_chance_with_looting - Test if a random number 0.0–1.0 is less than a specified value, affected by the level of Looting on the killer entity.
    •  chance: Base success rate.
    •  looting_multiplier: Looting adjustment to the base success rate. Formula is chance + looting_level * looting_multiplier.

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
    • entities - Items dropped from entities. May cause issues when applied to chests, due to some items spawning in stacks of 0
      • sheep - Sheep with wool
        • 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
      • iron_golem
      • magma_cube
      • mushroom_cow
      • ocelot
      • pig
      • rabbit
      • sheep - Sheep without wool
      • shulker
      • silverfish
      • skeleton
      • skeleton_horse
      • slime
      • snowman - Snow golems
      • spider
      • squid
      • wolf
      • zombie
      • zombie_horse
      • zombie_pigman
    • gameplay
      • fishing
        • fish.json
        • junk.json
        • treasure.json
      • fishing.json - Loads the three tables from the fishing folder, applying luck to each one
    • empty - Contains no items

History

u
1.9
{{Extension DPL}}<ul><li>[[Gunpowder|Gunpowder]]<br/>{{Item
| image = Gunpowder.png
| stackable = Yes (64)
| renewable = Yes
}}

'''Gunpowder''' is an item that is used for [[explosion]]-related recipes, and as an ingredient in potions.

== Obtaining ==

=== Mob loot ===

==== Creepers ====

[[Creeper]]s can drop 0-2 pieces of gunpowder upon death. [[Looting]] can increase this by one per level, with a maximum of 5 gunpowder.

==== Ghasts ====

[[Ghast]]s can drop 0-2 pieces of gunpowder upon death. Looting can increase this by one per level, with a maximum of 5 gunpowder.

==== Witches ====

[[Witch]]es can drop 0-6 pieces of gunpowder upon death. Looting can increase this by three per level, with a maximum of 15 gunpowder.
<!--
=== Crafting ===

{{Crafting
|showdescription=1
|description= {{only|bedrock|education}}
|Coal; Charcoal
|Sulfur
|Bone Meal
|Output= Gunpowder, 3
|type= Miscellaneous
}}
-->
=== Trading ===

<!--Wandering trader always offer one of the 5 item (one of them is gunpowder)-->

[[Wandering trader]]s have {{frac|1|6}} chance to sell gunpowder for an [[emerald]].

=== Chest loot ===

{{LootChestItem|gunpowder}}

== Usage ==

=== Crafting ingredient ===

{{crafting usage}}

=== Brewing ingredient ===
{{brewing
  |name=[[Splash Potion]]
  |showname=1
  |Gunpowder
  |Splash Mundane Potion; Splash Potion of Healing; Splash Potion of Fire Resistance; Splash Potion of Harming; Splash Potion of Poison; Splash Potion of Regeneration; Splash Potion of Slowness; Splash Potion of Strength; Splash Potion of Swiftness; Splash Potion of Weakness; Splash Potion of Night Vision; Splash Potion of Invisibility; Splash Potion of Water Breathing; Splash Potion of Leaping
  |base=Any Potion
}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Gunpowder
|spritetype=item
|nameid=gunpowder
|id=328
|form=item
|foot=1}}

== History ==

{{History|java indev}}
{{History||0.31|snap=20100130|[[File:Gunpowder JE1 BE1.png|32px]] Added gunpowder.
|Gunpowder is a [[crafting]] ingredient for [[TNT]]. 
|Gunpowder can be [[drops|dropped]] by any [[mob]].}}
{{History||20100219|Gunpowder now [[drops]] only from [[creeper]]s.}}
{{History|java infdev}}
{{History||20100625-2|Gunpowder can now be found in [[dungeon]] [[chest]]s.}}
{{History|java alpha}}
{{History||v1.2.0|snap=preview|Added [[ghast]]s, which [[drops|drop]] gunpowder upon [[death]].{{needs testing|was their gunpowder dropping present in the preview version, or added later on?|type=untestable}}}}
{{History|java beta}}
{{History||1.0|The item now has a display name: ''Sulphur''.}}
{{History||1.3|''Sulphur'' has been renamed to ''Gunpowder''.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 4|Gunpowder is now usable in [[brewing]] to create [[splash potion]]s.}}
{{History||1.2.1|snap=12w04a|[[Fire charge]]s are now [[crafting|crafted]] with gunpowder.}}
{{History||1.4.2|snap=12w38b|[[Witch]]es may now [[drops|drop]] gunpowder.}}
{{History||1.4.6|snap=12w49a|Gunpowder can now be used to craft a [[firework star]] and a [[firework rocket]].}}
{{History||1.9|snap=15w44a|Gunpowder now generates in [[desert temple]] [[chest]]s.
|The average yield of gunpowder in [[dungeon]] chests has now doubled.}}
{{History||1.11|snap=16w39a|Gunpowder can now be found in [[woodland mansion]] chests.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 289.}}
{{History|||snap=18w11a|Gunpowder can now generate in [[shipwreck]] [[chest]]s.}}
{{History||1.14|snap=18w43a|[[File:Gunpowder JE2 BE2.png|32px]] The texture of gunpowder has been changed.}}
{{History|||snap=19w05a|Added [[wandering trader]]s, which sell gunpowder.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|Gunpowder now drops when brushing [[suspicious sand]] in [[desert pyramid]]s.}}
{{History||1.20|snap=23w12a|The probability for the gunpowder to generate in [[suspicious sand]] in [[desert temple]]s has been changed from 1/7 to 1/8.}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Gunpowder JE1 BE1.png|32px]] Added gunpowder. It is currently unobtainable and serves no purpose.}}
{{History||v0.3.3|Gunpowder now drops from [[creeper]]s. It is still unobtainable due to creepers not yet spawning naturally.}}
{{History||v0.4.0|Creepers now spawn naturally, making gunpowder obtainable in Survival mode.
|Gunpowder can now be used to craft [[TNT]].}}
{{History||v0.12.1|snap=build 1|Added gunpowder to the [[creative]] [[inventory]].
|Gunpowder is now usable in [[brewing]] to create [[splash potion]]s.}}
{{History||v0.13.0|snap=build 1|Gunpowder can now be found inside [[desert temple]] [[chest]]s.}}
{{History||v0.14.0|snap=build 1|Gunpowder can now be dropped by [[witch]]es.}}
{{History||v0.15.0|snap=build 1|Gunpowder can now be used to craft [[fire charge]]s.}}
{{History|pocket}}
{{History||1.1.0|snap=alpha 1.1.0.0|Gunpowder now generates inside [[woodland mansion]] [[chest]]s.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Gunpowder can now be used to craft [[firework rocket]]s and [[firework star]]s.}}
{{History||1.4.0|snap=beta 1.2.14.2|Gunpowder now generates inside [[shipwreck]] [[chest]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Gunpowder JE2 BE2.png|32px]] The texture of gunpowder has been changed.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.70|snap=beta 1.19.70.23|Gunpowder now drops when brushing [[suspicious sand]] in [[desert pyramid]]s.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Gunpowder JE1 BE1.png|32px]] Added gunpowder.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Gunpowder JE2 BE2.png|32px]] The texture of gunpowder has been changed.}}

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

== Issues ==
{{issue list}}

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--gunpowder Taking Inventory: Gunpowder] – Minecraft.net on June 21, 2019

{{Items}}

[[Category:Recipe using Charcoal]]

[[cs:Střelný prach]]
[[de:Schwarzpulver]]
[[es:Pólvora]]
[[fr:Poudre à canon]]
[[hu:Puskapor]]
[[it:Polvere da sparo]]
[[ja:火薬]]
[[ko:화약]]
[[nl:Buskruit]]
[[pl:Proch]]
[[pt:Pólvora]]
[[ru:Порох]]
[[th:ดินปืน]]
[[tr:Barut]]
[[uk:Порох]]
[[zh:火药]]
[[Category:Renewable resources]]
[[Category:Brewing recipe]]</li><li>[[Rabbit Stew|Rabbit Stew]]<br/>{{Item
| title = Rabbit Stew
| heals = {{hunger|10}}
| renewable = Yes
| stackable = No
}}

'''Rabbit stew''' is a [[food]] [[item]] that can be eaten by the [[player]].

== Obtaining ==

=== Crafting ===

{{Crafting
  |shapeless=true
  |B1=Cooked Rabbit
  |A2=Carrot
  |B2=Baked Potato
  |C2=Any Mushroom
  |B3=Bowl
  |Output=Rabbit Stew
  |type=Foodstuff
}}

=== Trading ===
{{IN|bedrock}}, novice-level Butcher villagers always offer to sell rabbit stew for one emerald as their second trade.

{{IN|java}}, novice-level Butcher villagers have a 50% chance of offering rabbit stew for one emerald.

== Usage ==

=== Food ===
To eat rabbit stew, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|10}} [[hunger]] and 12 hunger [[Hunger#Mechanics|saturation]]. This restores more hunger than any other food type in the game except [[cake]], but has less saturation than a [[golden carrot]], a [[cooked porkchop]], or a [[steak]].

Eating rabbit stew leaves the player with an empty bowl, similar to [[mushroom stew]], [[suspicious stew]], and [[beetroot soup]].

=== Wolves ===
{{IN|bedrock}}, rabbit stew can be used to feed [[wolves]], healing them by {{hp|10|mob=1}}. However, unlike other wolf food, rabbit stew does not speed up the growth of baby wolves, and it cannot be used to breed them. It is usable only on a wolf that has less than full health.

== Sounds ==
{{Sound table/Entity/Food}}

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Rabbit Stew
|spritetype=item
|nameid=rabbit_stew
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Rabbit Stew
|spritetype=item
|nameid=rabbit_stew
|id=290
|form=item
|foot=1}}

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

== Video ==

<div style="text-align:center">{{yt|GwCqwtydRBc}}</div>

== History ==
{{History|java}}
{{History||1.8|snap=June 30, 2014|slink={{tweet|TheMogMiner|483725253018157057}}|[[Ryan Holtz]] tweets the recipe of rabbit stew, and that it can restore hunger better than any other item other than [[golden apple]]s (which was incorrect, as golden apples restore less hunger, but a whole [[cake]] restores more).}}
{{History|||snap=14w27a|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 413.}}
{{History||1.14|snap=18w43a|[[File:Rabbit Stew JE2.png|32px]] The texture of rabbit stew has been changed.
|The rabbit stew's [[recipe]] is now shapeless.}}
{{History|||snap=18w50a|[[File:Rabbit Stew JE3 BE2.png|32px]] The texture of rabbit stew has been changed.}}
{{History|||snap=19w11a|Butcher [[villager]]s now [[trading|sell]] rabbit stew.}}

{{History|pocket alpha}}
{{History||v0.13.0|snap=build 1|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History|bedrock}} 
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Rabbit Stew JE3 BE2.png|32px]] The texture of rabbit stew has been changed.
|The recipe for rabbit stew is now shapeless.}}
{{History||1.11.0|snap=beta 1.11.0.4|Butcher [[villager]]s now [[trading|sell]] rabbit stew.}}

{{History|console}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|switch=1.0.1|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Rabbit Stew JE3 BE2.png|32px]] The texture of rabbit stew has been changed.
|The recipe for rabbit stew is now shapeless.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* If the ingredients of rabbit stew were eaten separately and the [[mushroom]] had become half of a [[mushroom stew]], they would restore a total of {{Hunger|16}} and 19.2 saturation points. Without counting the mushroom, the separate ingredients would restore {{Hunger|13}} and 15.6 saturation points. Therefore, crafting rabbit stew results in a net loss of restorative points, though it is quicker than eating all the ingredients separately.
* Rabbit stew restores more hunger and total food points (hunger + saturation) than nearly any other single item (the exception is a suspicious stew with Saturation).  This is balanced by the point that the stew does not stack, and with its complex recipe it's not so easy to make "on the road". The suspicious stew shares the unstackability, but with only four ingredients it can at least be crafted in the inventory.

==Gallery==
<gallery>
Rabbit Stew Crafting.jpg|Crafting rabbit stew.
</gallery>

== References ==
{{Reflist}}

{{items}}

[[de:Kaninchenragout]]
[[es:Estofado de conejo]]
[[it:Stufato di coniglio]]
[[fr:Ragoût de lapin]]
[[ja:ウサギシチュー]]
[[ko:토끼 스튜]]
[[nl:Konijnenstoofpot]]
[[pl:Gulasz z królika]]
[[pt:Ensopado de coelho]]
[[ru:Тушёный кролик]]
[[uk:Тушкований кролик]]
[[zh:兔肉煲]]

[[Category:Food]]
[[Category:Renewable resources]]</li></ul>
October 19, 2015Dinnerbone announces loot tables.
15w43aAdded loot tables.
15w43bAdded condition entity_scores.
15w43cRenamed "villager_golem.json" to "iron_golem.json"
Added fishing loot tables, sheep without wool, and zombie and skeleton horses.
Renamed the tag  item: to  name:, and the tag  items: to  entries:
Added the tag  type: and support to load a loot table instead of an item.
Added the tag  luck:
Added the function set_damage
Advertisement