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.
- A condition
- 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 entrys that can be produced by this pool. One entry is chosen per roll as a weighted random selection.
- An entry
- conditions: Determines conditions for this entry to be used. If multiple conditions are specified, all must pass. If the conditions fail, the roll does not use the entry.
- A condition
- condition: Name of condition. Valid conditions are described below.
- A condition
- type: Type of entry. Can be
itemfor item entries, orloot_tableto 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 byfunctions, 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 andfunctionsandconditionsmust also be omitted. - functions: Applies functions to the item stack being produced. Functions are applied in order, so for example
looting_enchantmust be afterset_countto work correctly. - weight: Determines how often this entry will be chosen out of all the entries in the pool. Entries with higher weights will be used more often (chance is this entry's weight⁄total of all entires' weights).
- luck:
- luck_multiplier: Increases the entry's
weightbased on luck being applied to this application of the loot table, formula isfloor( weight + weight * luck_multiplier * luck ). However, luck is currently always 0.
- conditions: Determines conditions for this entry to be used. If multiple conditions are specified, all must pass. If the conditions fail, the roll does not use the entry.
- An entry
- conditions: Determines conditions for this pool to be used. If multiple conditions are specified, all must pass.
- A pool
- 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.
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_propertiescondition to cook food for animals on death. - looting_enchant - Adjusts the stack size based on the level of the Looting enchantment on the
killerentity.- 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 (
\).
- 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
thisto use the entity that died,killerfor the killer, orkiller_playerfor a killer that is a player. - properties: Properties to be checked.
- on_fire: Test whether the entity is or is not on fire.
- entity: Specifies the entity to check for the condition. Set to
- entity_scores - Test the scoreboard scores of an entity.
- entity: Specifies 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. 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.
- entity: Specifies the entity to check for the condition. Set to
- killed_by_player - Test if a
killer_playerentity is available.- inverse: If true, the condition passes if
killer_playeris not available.
- inverse: If true, the condition passes if
- 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
killerentity.- 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
- 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 - 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
- sheep - Sheep with wool
- gameplay
- fishing
- fish.json
- junk.json
- treasure.json
- fishing.json - Loads the three tables from the fishing folder, applying luck to each one
- fishing
- empty - Contains no items
- chests - Items from loot chests
History
| u | |||||
|---|---|---|---|---|---|
1.9{{Extension DPL}}<ul><li>[[Clock|Clock]]<br/>{{about|the item|the redstone circuit|Redstone circuits/Clock}}
{{Item
| image = Clock.gif
| renewable = Yes
| stackable = Yes (64)
}}
'''Clocks''' are [[Daylight cycle|time]]-telling devices that display the current in-game position of the sun and the moon. Clocks only function properly in the [[Overworld]].
== Obtaining ==
=== Crafting ===
{{Crafting
|B1= Gold Ingot
|A2= Gold Ingot
|B2= Redstone Dust
|C2= Gold Ingot
|B3= Gold Ingot
|Output= Clock
|type= Tool
}}
=== Natural generation ===
{{LootChestItem|clock}}
=== Trading ===
Expert-level [[Trading#Librarian|librarian villagers]] have a {{frac|1|3}} (roughly 33.3%) chance to sell a single clock for 4 [[emerald]]s as part of their trades.{{only|bedrock}}
Expert-level librarian villagers have a {{frac|1|2}} (50%) chance to sell a clock for 5 emeralds.{{only|java}}
== Usage ==
[[File:WatchCycle.gif|thumb|Clock animation]]
The clock dial consists of two halves, a day side and a night side. The dial spins clockwise slowly to indicate the time of day, corresponding to the sun or moon's actual position in the sky. The player is able to [[bed|sleep]] a few seconds after the clock shows exactly dusk.
The dial always shows the current in-game time when in the [[Overworld]], regardless of where it appears. This includes a player's hand, an inventory slot, a [[Crafting table|crafting grid]], an [[item frame]], or even as a dropped [[Item (entity)|item]]. For a clock to be mounted on a wall, an [[item frame]] is required.
Because there is no day/night cycle in [[the Nether]] or [[the End]], clocks do not work properly in these dimensions. Instead, the dial rotates rapidly and randomly {{in|JE}} or clockwise {{in|BE}}, making them useless.
=== Piglins ===
{{EntityLink|Piglin|Piglins}} are attracted to clocks and run toward any clock on the ground, and inspect it for 6 to 8 seconds before putting it in their inventory.
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Clock
|spritetype=item
|nameid=clock
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Clock
|spritetype=item
|nameid=clock
|id=393
|form=item
|foot=1}}
== Achievements ==
{{load achievements|Oooh, shiny!}}
== Advancements ==
{{load advancements|Oh Shiny}}
== Video ==
''Note: This video doesn't state that clocks can be found in [[shipwreck]]s or [[ruined portal]]s because the video was released in an earlier [[Java Edition version history|version]].''
<div style="text-align:center">{{yt|Q3bsT84oVz4}}</div>
== History ==
{{History|java alpha}}
{{History||v1.2.0|snap=<nowiki>?|slink=:Category:Information needed requiring unarchived version|[[File:Clock JE1.gif|32px]] Added clocks.
|They have 228 visually distinct frames due to how the texture is generated – see the section below.}}
{{History|java}}
{{History||1.3.1|snap=12w21a|Librarian [[villager]]s now [[trading|sell]] clocks for 10-11 [[emerald]]s, making them [[renewable]].}}
{{History||1.5|snap=13w02a|[[File:Clock JE2 BE2.gif|32px]] Clocks now use the new animation feature included in [[texture pack]]s. As a result, they are considerably less precise, having only 64 frames.}}
{{History||1.8|snap=14w02a|Librarian [[villager]]s now [[trading|sell]] clocks for 10-12 [[emerald]]s.}}
{{History||1.9|snap=15w31a|Clocks are now broken up into individual textures, instead of having every individual frame on one vertical strip like with animated textures.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 347.}}
{{History|||snap=18w14a|Clocks can now be found in [[shipwreck]] map rooms.}}
{{History||1.16|snap=20w09a|Clocks can now be used to distract [[piglin]]s.<ref>{{bug|MC-172363}}</ref>}}
{{History|||snap=20w16a|Clocks now generate in [[ruined portal]] chests.}}
{{History|||snap=20w19a|Clocks no longer work in the [[recipe book]].<ref>{{bug|MC-116293}}</ref>}}
{{History|||snap=20w22a|Clocks no longer work in the villager trading GUI.<ref>{{bug|MC-182888}}</ref>}}
{{History||1.17|snap=20w48a|[[File:Clock JE3.gif|32px]] The texture of clocks has been changed to match the new gold ingot texture from the texture update.}}
{{History|pocket alpha}}
{{History||v0.2.0|[[File:Clock BE1.png|32px]] Added clocks.
|Clocks currently have no function or legitimate method of obtaining them.}}
{{History||v0.8.0|snap=build 1|Clocks are now functional and [[crafting|craftable]]. They have been added into the Creative inventory.
|[[File:Clock JE2 BE2.gif|32px]] The texture of clocks has been changed. They use an predefined texture file with 64 different frames.}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|Librarian [[villager]]s now [[trading|sell]] clocks for 10-12 [[emerald]]s.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|Clocks can now be found inside map room [[chest]]s in [[shipwreck]]s.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Trading]] has been changed, librarian [[villager]]s now have {{frac|1|3}} chance to [[trading|sell]] a clock for 4 [[emerald]]s as part of their [[trading|trades]].}}
{{History||1.16.0|snap=beta 1.16.0.57|Clocks now generate in [[ruined portal]] chests.}}
{{History||1.17.0|snap=beta 1.17.0.54|[[File:Clock JE3.gif|32px]] The texture of clocks has been changed to match the new gold ingot texture from the texture update.}}
{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Clock JE2 BE2.gif|32px]] Added clocks.}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|Clocks can now be found in [[shipwreck]] map rooms.}}
{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Clock JE2 BE2.gif|32px]] Added clocks.}}
{{History|foot}}
=== Texture generation prior to Java Edition 13w02a ===
{{:Procedural animated texture generation/Clocks}}
== Issues ==
{{issue list}}
== Trivia ==
* {{IN|java}}, a clock can be viewed under the item [[statistics]] page as long as one obtained a clock at some point.
* {{IN|java}}, the default resource pack for the clock contains 64 individual frames, each frame lasting about 18.75 seconds in real time (375 ticks) (1350 seconds (22 minutes, 30 seconds) in Minecraft time).
* When the time of day changes suddenly, such as after sleeping or when {{cmd|time}} is used, the clock dial spins rapidly to catch up.
* Although clocks do not function in the Nether or the End, the actual daylight cycle does continue.
== Gallery ==
<gallery>
File:Clockonawall.png|A clock in an [[item frame]] on a wall in a [[player]]'s base, showing the night is near.
File:Player Holding Clock.png|Early-game player holding a clock.
File:Clock In Item Frame.png|A clock placed in an item frame.
</gallery>
== References ==
{{Reflist}}
{{Items}}
[[Category:Tools]]
[[Category:Renewable resources]]
[[cs:Hodiny]]
[[de:Uhr]]
[[es:Reloj]]
[[fr:Montre]]
[[hu:Óra]]
[[it:Orologio]]
[[ja:時計]]
[[ko:시계]]
[[nl:Klok]]
[[pl:Zegar]]
[[pt:Relógio]]
[[ru:Часы]]
[[th:นาฬิกา]]
[[uk:Годинник]]
[[zh:时钟]]</li><li>[[Feather|Feather]]<br/>{{about|a item|a enchantent|Feather Falling}}
{{Item
| image = Feather.png
| stackable = Yes (64)
| renewable = Yes
}}
'''Feathers''' are items dropped by [[chicken]]s and [[parrot]]s, as well as tamed [[cats]] as morning gifts.
== Obtaining ==
=== Mob loot ===
Adult [[chicken]]s drop 0–2 feathers upon death. The maximum is increased by 1 per level of [[Looting]], for a maximum of 0–5 with Looting III.
[[Parrot]]s drop 1–2 feathers upon death. The maximum is increased by 1 per level of Looting, for a maximum of 1–5 with Looting III.
A [[fox]] sometimes spawns holding a feather, which always drops upon death. Alternatively, the player can drop a [[food]] item, causing the fox to drop the feather in favor of the food.
=== Natural generation ===
{{LootChestItem|feather}}
=== Cat gifts ===
{{main|Cat#Gifts}}
Tamed [[cat]]s have a 70% chance of giving the [[player]] a "morning gift", and the gift has a 16.13% chance to be a feather.
== Usage ==
=== Helmet ===
<div style='float:right'></div>
While a feather cannot be equipped in the head slot in [[Survival]] mode, equipping it using commands causes it to appear completely upright unlike other items.
[[File:Steve wearing Feather.png|75px]]
[[File:Alex wearing Feather.png|75px]]
=== Crafting ingredient ===
{{crafting usage}}
=== Trading ===
Expert-level fletcher [[villager]]s buy 24 feathers for an [[emerald]] as part of their trade.
== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Feather
|spritetype=item
|nameid=feather
|form=item
|foot=1}}
{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Feather
|spritetype=item
|nameid=feather
|id=327
|form=item
|foot=1}}
== History ==
{{History|java indev}}
{{History||0.31|snap=20100130|[[File:Feather JE1.png|32px]] Added feathers.|Feathers can be used to [[craft]] [[arrow]]s.
|Feathers are [[drop]]ped by every [[mob]] in quantities of 0 to 2.}}
{{History||20100206|[[File:Feather JE2 BE1.png|32px]] The feather's texture has been changed; it is now not as straight anymore.}}
{{History||20100219|[[Zombie]]s are now the only [[mob]] that can drop feathers. This was a placeholder as [[Notch]] has stated he currently doesn't know what else they should drop.<ref>{{tweet|notch|21723172931895296}}</ref>}}
{{History|java alpha}}
{{History||v1.0.14|[[Chicken]]s now [[drop]] 0–2 feathers upon death.}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|[[Zombie]]s now drop [[rotten flesh]], instead of feathers.
|[[Chicken]]s are now the only source of feathers.}}
{{History|java}}
{{History||1.3.1|snap=12w17a|Feathers are now used to craft [[book and quill]]s.}}
{{History||1.4.6|snap=12w49a|Feathers are now used to craft a [[firework star]] with a burst effect.}}
{{History||1.12|snap=17w13a|[[Parrot]]s now [[drop]] feathers.}}
{{History||1.13|snap=17w47a|Prior to ''[[The Flattening]]'', this [[item]]'s numeral ID was 288.}}
{{History|||snap=18w11a|Feathers now generate in [[shipwreck]] [[chest]]s.}}
{{History||1.14|snap=18w43a|[[File:Feather JE3 BE2.png|32px]] The texture of feathers has been changed.}}
{{History|||snap=18w44a|[[Cat]]s now offer feathers as [[Cat#Gifts|gift]]s.}}
{{History|||snap=18w48a|Feathers can now be found in chests in plains [[village]] houses.}}
{{History|||snap=18w50a|Feathers can now be found in chests in fletcher houses.}}
{{History|||snap=19w07a|Added [[fox]]es, which sometimes spawn with feather in their mouths.}}
{{History|||snap=19w11a|Fletcher [[villager]]s now [[trading|buy]] feathers.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=1.19.4 Pre-release 1|Feathers can now be used to craft [[brush]]es.}}
{{History|pocket alpha}}
{{History||v0.2.0|[[File:Feather JE2 BE1.png|32px]] Added feathers. They are currently unobtainable and serve no purpose.}}
{{History||v0.3.3|Chickens now drop 0–2 feathers upon death.|Feathers can now be used to [[craft]] [[arrow]]s.}}
{{History||v0.5.0|Feathers can now be obtained after activating the [[nether reactor]].}}
{{History||v0.11.0|snap=build 1|[[Zombie]]s now drop [[rotten flesh]], instead of feathers.}}
{{History||v0.12.1|snap=build 1|Feathers are no longer available from the [[nether reactor]].}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Feathers can now be used to craft [[book and quill]]s.|Added [[parrot]]s, which [[drop]] feathers.|Feathers can now be used as an ingredient to craft a [[firework star]].}}
{{History||1.4.0|snap=beta 1.2.14.2|Feathers can now be found in [[shipwreck]] [[chest]]s.}}
{{History||1.8.0|snap=beta 1.8.0.8|Feathers can now be given as a gift to the [[player]] by tamed [[cat]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Feather JE3 BE2.png|32px]] The texture of feathers has been changed.|Feathers can now be found in the new [[plains]] [[village]] house.}}
{{History||1.11.0|snap=beta 1.11.0.1|Feathers can now be found in village fletcher [[chest]]s.}}
{{History|||snap=beta 1.11.0.4|Feathers can now be [[trading|sold]] to fletcher [[villager]]s.}}
{{History||1.13.0|snap=beta 1.13.0.1|Added [[fox]]es, which can [[drops|drop]] feathers.}}
{{History||1.20.0<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.20|Feathers can now be used to craft [[brush]]es.}}
{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|[[File:Feather JE2 BE1.png|32px]] Added feathers.}}
{{History|Ps4}}
{{History||1.90|[[File:Feather JE3 BE2.png|32px]] The texture of feathers has been changed.}}
{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Feather JE2 BE1.png|32px]] Added feathers.}}
{{History|foot}}
== Issues ==
{{issue list}}
== References ==
{{reflist}}
== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--feather Taking Inventory: Feather] – Minecraft.net on March 3, 2019
{{Items}}
[[Category:Renewable resources]]
[[cs:Pírko]]
[[de:Feder]]
[[es:Pluma]]
[[fr:Plume]]
[[hu:Toll]]
[[it:Piuma]]
[[ja:羽根]]
[[ko:깃털]]
[[nl:Veer]]
[[pl:Pióro]]
[[pt:Pena]]
[[ru:Перо]]
[[uk:Перо]]
[[zh:羽毛]]</li></ul></nowiki> | October 19, 2015 | Dinnerbone announces loot tables. | |||
| 15w43a | Added loot tables. | ||||
| 15w43b | Added condition entity_scores. | ||||
| 15w43c | Renamed "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 | |||||