Tabela de itens
A tradução da página está em andamento Sinta-se livre para ajudar a Minecraft Wiki em português! cerca de 25% da tradução está concluída a tradução está sendo feita a partir de en:Loot table |
Tabelas de itens (pt-BR) ou tabelas de espólio (pt-PT) são arquivos JSON técnicos usados para ditar quais itens devem ser gerados em várias situações, como quais itens devem estar em recipientes gerados naturalmente, quais os itens devem ser largados ao quebrar um bloco ou ao matar uma criatura, quais itens podem ser pescados, e mais. Não afeta a experiência largada ou entidades não-itens largadas, como slimes de slimes grandes ou traças de blocos infestados.
Índice
Uso
As tabelas de itens são estruturadas como uma tag String que determina a tabela a ser usada e uma tag Long determinando a semente. Recipientes ou criaturas com a mesma semente e tabela largam os mesmos itens. As tabelas de itens não determinam o slot do contêiner a ser usado, que é determinado aleatoriamente com base na semente.
Para baús, baús com armadilha, funis, carrinhos de mina com baú, carrinhos de mina com funil, ejetores, liberadores, caixas de shulker e barris:
-
- LootTable: Tabela de itens a ser usada para encher o recipiente quando ele for aberto novamente, ou os itens são de outra forma interagidos. Quando o recipiente é um baú que faz parte de um baú duplo, apenas a metade correspondente ao baú único marcado é afetada.
- LootTableSeed: Semente para gerar a tabela de itens. Funciona de forma semelhante às sementes para mundos. 0 ou omitido usa uma semente aleatória.
Essas tags são removidas uma vez que os itens tenham sido interagidos (abrindo o contêiner, quebrando o contêiner, etc.), e somente então os itens são colocados no contêiner.
Para criaturas:
- A tag raiz.
- DeathLootTable: Tabela de itens a ser usada para os itens que caem quando a entidade é morta.
- DeathLootTableSeed: Semente para gerar a tabela de itens. Funciona de forma semelhante às sementes para mundos. 0 ou omitido usa uma semente aleatória.
As tabelas de itens de criaturas e contêineres podem ser alteradas com /execute store
[inglês] e /data merge
[inglês]. O jogador também pode conceder uma tabela de itens para uma entidade ou soltá-la no mundo com /loot
[inglês].
Tags
Loot tables are defined using the JSON format. Below are a list of tags used.
- The root tag
- type: Optional type of the loot table. Must be one of
empty
if the loot table does not generate any loot,entity
for loot an entity drops,block
for loot a block drops,chest
for a treasure chest,fishing
for a fishing loot table,gift
for a cat or villager gift,advancement_reward
if it's used as a reward for an advancement,barter
for loot from bartering with piglins,command
for/execute (if|unless) predicate
[inglês],selector
forpredicate=
in selectors,advancement_entity
forentity
predicates in advancements orgeneric
if none of the above apply. - functions: Applies functions to all item stacks produced by this table. Functions are applied in order, so for example
looting_enchant
must be afterset_count
to work correctly.- A function.
- function: Namespaced ID 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: Namespaced ID of condition. Valid conditions are described below.
- A condition.
- A function.
- pools: A list of all pools for this loot table. Each pool used generates 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: Namespaced ID of condition. Valid conditions are described below.
- A condition.
- functions: Applies functions to all item stacks produced by this pool. Functions are applied in order, so for example
looting_enchant
must be afterset_count
to work correctly.- A function.
- function: Namespaced ID 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: Namespaced ID of condition. Valid conditions are described below.
- A condition.
- A function.
- 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. Inclusive.
- max: Maximum number of rolls. Inclusive.
- rolls: Specifies a random number of rolls from a binomial distribution.
- type: Type of uniform int. Set to "minecraft:binomial".
- n: Number of tries.
- p: Probability of each try to add a roll.
- bonus_rolls: Specifies the exact number of bonus rolls on the pool per point of luck. Rounded down after multiplying.
- bonus_rolls: Specifies a random number of bonus rolls within a range. Rounded down after multiplying.
- min: Minimum number of bonus rolls. Inclusive.
- max: Maximum number of bonus rolls. Inclusive.
- entries: A list of all things that can be produced by this pool. One entry is chosen per roll as a weighted random selection from all entries without failing conditions.
- An entry.
- conditions: Determines conditions for this entry to be used. If multiple conditions are specified, all must pass.
- A condition.
- condition: Namespaced ID of condition. Valid conditions are described below.
- A condition.
- functions: Applies functions to the item stack or item stacks being produced. Functions are applied in order, so for example
looting_enchant
must be afterset_count
to work correctly.- A function.
- function: Namespaced ID 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: Namespaced ID of condition. Valid conditions are described below.
- A condition.
- A function.
- type: Namespaced ID type of entry. Can be
item
for item entries,tag
for item tags,loot_table
to produce items from another loot table,group
for child entries,alternatives
to select one sub-entry from a list,sequence
to select sub-entries until one entry cannot be granted,dynamic
to generate block specific drops, orempty
for an entry that generates nothing. - name:
- For type 'item', ID name of the item to be produced, e.g.
diamond
. The default, if not changed byfunctions
, is a stack of 1 of the default instance of the item. - For type 'tag' item tag to be used, e.g.
arrows
. - For type 'loot_table', loot table to be used, e.g.
gameplay/fishing/junk
. - For type 'dynamic', can be
contents
for block entity contents orself
for banners and player skulls.
- For type 'item', ID name of the item to be produced, e.g.
- children:
- For type 'group' a list of entries that are used to generate loot. Can be used for convenience, e.g. if one condition applies for multiple entries.
- For type 'alternatives' a list of entries of which the first, and only the first, successful entry gets generated.
- For type 'sequence' a list of entries that are used until the first entry fails. After an entry fails, no more entries of this list are generated
- expand: For type 'tag', if set to true, it chooses one item of the tag, each with the same weight and quality. If false, it generates one of each of the items in the tag. Required when type is 'tag'.
- weight: Determines how often this entry is chosen out of all the entries in the pool. Entries with higher weights are used more often (chance is this entry's weight⁄total of all considered entries' weights).
- quality: Modifies the entry's
weight
based on the killing/opening/fishing player's luck attribute. Formula isfloor( weight + (quality * generic.luck))
.
- conditions: Determines conditions for this entry to be used. If multiple conditions are specified, all must pass.
- An entry.
- conditions: Determines conditions for this pool to be used. If multiple conditions are specified, all must pass.
- A pool.
- type: Optional type of the loot table. Must be one of
Funções
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:.
- apply_bonus - Applies a predefined bonus formula.
- enchantment: Enchantment ID used for level calculation.
- formula: Can be
binomial_with_bonus_count
for a binomial distribution (withn=level + extra
,p=probability
),uniform_bonus_count
for uniform distribution (from0
tolevel * bonusMultiplier
), orore_drops
for a special function used for ore drops in the vanilla game (Count * (max(0; random(0..Level + 2) - 1)+1)
). - parameters: Values required for the formula.
- extra: For formula 'binomial_with_bonus_count', the extra value.
- probability : For formula 'binomial_with_bonus_count', the probability.
- bonusMultiplier : For formula 'uniform_bonus_count', the bonus multiplier.
- copy_name - For loot table type 'block', copies a block entity's
CustomName
tag into the item'sdisplay.Name
tag.- source: "block_entity" - Needs to be set to 'block_entity'.
- copy_nbt - Copies nbt to the item's
tag
tag.- source: Specifies the source. Set to
block_entity
for the block entity of the destroyed block,this
to use the entity that died or the player that gained the advancement, opened the container or broke the block,killer
for the killer, orkiller_player
for a killer that is a player. - ops: A list of copy operations.
- An operation
- source: The nbt path to copy from.
- target: The nbt path to copy to, starting from the item's
tag
tag. - op: Can be
replace
to replace any existing contents of the target,append
to append to a list, ormerge
to merge into a compound tag.
- An operation
- source: Specifies the source. Set to
- copy_state - Copies state properties from dropped block to the item's
BlockStateTag
tag.- block: A block ID. Function fails if the block doesn't match.
- properties: A list of property names to copy.
- A block state name to copy.
- enchant_randomly - Enchants the item with one randomly-selected enchantment. The level of the enchantment, if applicable, is random.
- enchantments: List of enchantment IDs to choose from. If omitted, all enchantments applicable to the item are possible.
- 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.
- exploration_map - Converts an empty map into an explorer map leading to a nearby generated structure.
- destination: The type of generated structure to locate. Accepts any of the
StructureType
s used by the/locate
command (case insensitive). - decoration: The icon used to mark the destination on the map. Accepts any of the map icon text IDs (case insensitive). If
mansion
ormonument
is used, the color of the lines on the item texture changes to match the corresponding explorer map. - zoom: The zoom level of the resulting map. Defaults to 2.
- search_radius: The size, in chunks, of the area to search for structures. The area checked is square, not circular. Radius 0 causes only the current chunk to be searched, radius 1 causes the current chunk and eight adjacent chunks to be searched, and so on. Defaults to 50.
- skip_existing_chunks: Don't search in chunks that have already been generated. Defaults to true.
- destination: The type of generated structure to locate. Accepts any of the
- explosion_decay - For loot tables of type 'block', removes some items from a stack, if there was an explosion. Each item has a chance of 1/explosion radius to be lost.
- furnace_smelt - Smelts the item as it would be in a furnace. Used in combination with the
entity_properties
condition to cook food from animals on death.
- fill_player_head - Adds required item tags of a player head
- entity: Specifies an entity to be used for the player head. Set to
this
to use the entity that died or the player that gained the advancement, opened the container or broke the block,killer
for the killer, orkiller_player
for a killer that is a player.
- entity: Specifies an entity to be used for the player head. Set to
- limit_count - Limits the count of every item stack.
- limit: Specifies the exact limit to use.
- limit: Specifies a random limit within a range.
- min: Minimum limit to use.
- max: Maximum limit to use.
- 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, rounded after multiplying by the looting level.
- min: Minimum increase.
- max: Maximum increase.
- limit: Specifies the maximum amount of items in the stack after the looting calculation. If the value is 0, no limit is applied.
- set_attributes - Add attribute modifiers to the item.
- modifiers:
- : A modifier.
- name: Name of the modifier.
- attribute: The name of the attribute this modifier is to act upon.
- operation: Must be either "addition", "multiply_base" or "multiply_total".
- amount: Specifies the exact amount of change of the modifier.
- amount: Specifies a random amount within a range.
- min: Minimum amount.
- max: Maximum amount.
- id: Optional : UUID of the modifier following. If none specified, a new UUID is generated.
- slot: Slots the item must be in for the modifier to take effect, this value can be one of the following : "mainhand", "offhand", "feet", "legs", "chest", or "head".
- slot: One of the listed slots is chosen randomly.
- : A modifier.
- modifiers:
- set_contents - For loot tables of type 'block', sets the contents of a container block item to a list of entries.
- entries: The entries to use as contents.
- set_count - Sets the stack size.
- count: Specifies the exact stack size to set.
- count: Specifies a random stack size within a range.
- type: The distribution type. Arguments lie in the count compound.
- uniform: Uniform distribution. A random integer is chosen with probability of each number being equal.
- min: Minimum stack size.
- max: Maximum stack size.
- binomial: Binomial distribution. Roll a number of times, each having a chance of adding 1 to the stack size.
- n: Number of rolls.
- p: Chance of each roll.
- uniform: Uniform distribution. A random integer is chosen with probability of each number being equal.
- type: The distribution type. Arguments lie in the count compound.
- set_damage - Sets the item's damage value (durability) for tools.
- damage: Specifies the damage fraction to set (1.0 is undamaged, 0.0 is zero durability left).
- damage: Specifies a random damage fraction within a range.
- min: Minimum value.
- max: Maximum value.
- set_loot_table - Sets the loot table for a container (chest etc.).
- name: Specifies the resource location of the loot table to be used.
- seed: Optional. Specifies the loot table seed. If absent or set to 0, a random seed will be used.
- set_lore - Adds lore to the item
- lore: List of JSON text components. Each list entry represents one line of the lore.
- entity: Specifies the entity to act as the source
@s
in the JSON text component. Set tothis
to use the entity that died or the player that gained the advancement, opened the container or broke the block,killer
for the killer, orkiller_player
for a killer that is a player. - replace: If true, replaces all existing lines of lore, if false appends the list.
- set_name - Adds display name of the item.
- name: A JSON text component name, allowing color, translations, etc.
- entity: Specifies an entity to act as source
@s
in the JSON text component. Set tothis
to use the entity that died or the player that gained the advancement, opened the container or broke the block,killer
for the killer, orkiller_player
for a killer that is a player.
- set_nbt - Adds NBT data to the 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 (
- set_stew_effect - Sets the status effects for suspicious stew.
- effects: The effects to apply.
- An effect.
- type: The effect ID.
- duration: The duration of the effect.
- An effect.
- effects: The effects to apply.
Condições
Loot tables use various conditions that 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.
Moreover, the conditions from predicates
directory in the <namespace> directory in data packs have the same structure as the loot conditions.
See predicate for the possible conditions.
Lista de tabelas de itens
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. Note that some blocks, such as bedrock, end portals and other blocks unbreakable in survival do not have loot tables, some blocks share loot tables (namely wall and floor variants of blocks) and that certain drops, namely head drops from charged creepers and the wither's nether star, are currently not covered by loot tables.[1]
- loot_tables
- blocks - items dropped when a block is broken.
- acacia_button
- acacia_door
- acacia_fence
- acacia_fence_gate
- acacia_leaves
- acacia_log
- acacia_planks
- acacia_pressure_plate
- acacia_sapling
- acacia_sign
- acacia_slab
- acacia_stairs
- acacia_trapdoor
- acacia_wood
- activator_rail
- allium
- ancient_debris
- andesite
- andesite_slab
- andesite_stairs
- andesite_wall
- anvil
- attached_melon_stem
- attached_pumpkin_stem
- azure_bluet
- bamboo
- bamboo_sapling
- barrel
- basalt
- beacon
- beehive
- bee_nest
- beetroots
- bell
- birch_button
- birch_door
- birch_fence
- birch_fence_gate
- birch_leaves
- birch_log
- birch_planks
- birch_pressure_plate
- birch_sapling
- birch_sign
- birch_slab
- birch_stairs
- birch_trapdoor
- birch_wood
- blackstone
- blackstone_slab
- blackstone_stairs
- blackstone_wall
- black_banner
- black_bed
- black_carpet
- black_concrete
- black_concrete_powder
- black_glazed_terracotta
- black_shulker_box
- black_stained_glass
- black_stained_glass_pane
- black_terracotta
- black_wool
- blast_furnace
- blue_banner
- blue_bed
- blue_carpet
- blue_concrete
- blue_concrete_powder
- blue_glazed_terracotta
- blue_ice
- blue_orchid
- blue_shulker_box
- blue_stained_glass
- blue_stained_glass_pane
- blue_terracotta
- blue_wool
- bone_block
- bookshelf
- brain_coral
- brain_coral_block
- brain_coral_fan
- brewing_stand
- brick_slab
- brick_stairs
- brick_wall
- bricks
- brown_banner
- brown_bed
- brown_carpet
- brown_concrete
- brown_concrete_powder
- brown_glazed_terracotta
- brown_mushroom
- brown_mushroom_block
- brown_shulker_box
- brown_stained_glass
- brown_stained_glass_pane
- brown_terracotta
- brown_wool
- bubble_coral
- bubble_coral_block
- bubble_coral_fan
- cactus
- cake
- campfire
- carrots
- cartography_table
- carved_pumpkin
- cauldron
- chest
- chipped_anvil
- chiseled_nether_bricks
- chiseled_polished_blackstone
- chiseled_quartz_block
- chiseled_red_standstone
- chiseled_sandstone
- chiseled_stone_brick
- chorus_flower
- chorus_plant
- clay
- coal_block
- coal_ore
- coarse_dirt
- cobblestone
- cobblestone_slab
- cobblestone_stairs
- cobblestone_wall
- cobweb
- cocoa
- comparator
- conduit
- cornflower
- cracked_nether_bricks
- cracked_polished_blackstone_bricks
- cracked_stone_bricks
- crafting_table
- creeper_head
- crimson_button
- crimson_door
- crimson_fence
- crimson_fence_gate
- crimson_fungus
- crimson_hyphae
- crimson_nylium
- crimson_planks
- crimson_pressure_plate
- crimson_roots
- crimson_sign
- crimson_slab
- crimson_stairs
- crimson_stem
- crimson_trapdoor
- crying_obsidian
- cut_red_sandstone
- cut_red_sandstone_slab
- cut_sandstone
- cut_sandstone_slab
- cyan_banner
- cyan_bed
- cyan_carpet
- cyan_concrete
- cyan_concrete_powder
- cyan_glazed_terracotta
- cyan_shulker_box
- cyan_stained_glass
- cyan_stained_glass_pane
- cyan_terracotta
- cyan_wool
- damaged_anvil
- dandelion
- dark_oak_button
- dark_oak_door
- dark_oak_fence
- dark_oak_fence_gate
- dark_oak_leaves
- dark_oak_log
- dark_oak_planks
- dark_oak_pressure_plate
- dark_oak_sapling
- dark_oak_sign
- dark_oak_slab
- dark_oak_stairs
- dark_oak_trapdoor
- dark_oak_wood
- dark_prismarine
- dark_prismarine_slab
- dark_prismarine_stairs
- daylight_detector
- dead_brain_coral
- dead_brain_coral_block
- dead_brain_coral_fan
- dead_bubble_coral
- dead_bubble_coral_block
- dead_bubble_coral_fan
- dead_bush
- dead_fire_coral
- dead_fire_coral_block
- dead_fire_coral_fan
- dead_horn_coral
- dead_horn_coral_block
- dead_horn_coral_fan
- dead_tube_coral
- dead_tube_coral_block
- dead_tube_coral_fan
- detector_rail
- diamond_block
- diamond_ore
- diorite
- diorite_slab
- diorite_stairs
- diorite_wall
- dirt
- dispenser
- dragon_egg
- dragon_head
- dried_kelp_block
- dropper
- emerald_block
- emerald_ore
- enchanting_table
- end_rod
- end_stone
- end_stone_bricks
- end_stone_brick_slab
- end_stone_brick_stairs
- end_stone_brick_wall
- ender_chest
- farmland
- fern
- fire_coral
- fire_coral_block
- fire_coral_fan
- fletching_table
- flower_pot
- frosted_ice
- furnace
- glass
- glass_pane
- glowstone
- gold_block
- gold_ore
- granite
- granite_slab
- granite_stairs
- granite_wall
- grass
- grass_block
- grass_path
- gravel
- gray_banner
- gray_bed
- gray_carpet
- gray_concrete
- gray_concrete_powder
- gray_glazed_terracotta
- gray_shulker_box
- gray_stained_glass
- gray_stained_glass_pane
- gray_terracotta
- gray_wool
- green_banner
- green_bed
- green_carpet
- green_concrete
- green_concrete_powder
- green_glazed_terracotta
- green_shulker_box
- green_stained_glass
- green_stained_glass_pane
- green_terracotta
- green_wool
- grindstone
- hay_block
- heavy_weighted_pressure_plate
- honey_block
- honeycomb_block
- hopper
- horn_coral
- horn_coral_block
- horn_coral_fan
- ice
- infested_chiseled_stone_bricks
- infested_cobblestone
- infested_cracked_stone_bricks
- infested_mossy_stone_bricks
- infested_stone
- infested_stone_bricks
- iron_bars
- iron_block
- iron_door
- iron_ore
- iron_trapdoor
- jack_o_lantern
- jukebox
- jungle_button
- jungle_door
- jungle_fence
- jungle_fence_gate
- jungle_leaves
- jungle_log
- jungle_planks
- jungle_pressure_plate
- jungle_sapling
- jungle_sign
- jungle_slab
- jungle_stairs
- jungle_trapdoor
- jungle_wood
- kelp
- kelp_plant
- ladder
- lantern
- lapis_block
- lapis_ore
- large_fern
- lectern
- lever
- light_blue_banner
- light_blue_bed
- light_blue_carpet
- light_blue_concrete
- light_blue_concrete_powder
- light_blue_glazed_terracotta
- light_blue_shulker_box
- light_blue_stained_glass
- light_blue_stained_glass_pane
- light_blue_terracotta
- light_blue_wool
- light_gray_banner
- light_gray_bed
- light_gray_carpet
- light_gray_concrete
- light_gray_concrete_powder
- light_gray_glazed_terracotta
- light_gray_shulker_box
- light_gray_stained_glass
- light_gray_stained_glass_pane
- light_gray_terracotta
- light_gray_wool
- light_weighted_pressure_plate
- lilac
- lily_of_the_valley
- lily_pad
- lime_banner
- lime_bed
- lime_carpet
- lime_concrete
- lime_concrete_powder
- lime_glazed_terracotta
- lime_shulker_box
- lime_stained_glass
- lime_stained_glass_pane
- lime_terracotta
- lime_wool
- lodestone
- loom
- magenta_banner
- magenta_bed
- magenta_carpet
- magenta_concrete
- magenta_concrete_powder
- magenta_glazed_terracotta
- magenta_shulker_box
- magenta_stained_glass
- magenta_stained_glass_pane
- magenta_terracotta
- magenta_wool
- magma_block
- melon
- melon_stem
- mossy_cobblestone
- mossy_cobblestone_slab
- mossy_cobblestone_stairs
- mossy_cobblestone_wall
- mossy_stone_bricks
- mossy_stone_brick_slab
- mossy_stone_brick_stairs
- mossy_stone_brick_wall
- mushroom_stem
- mycelium
- netherite_block
- netherrack
- nether_bricks
- nether_brick_fence
- nether_brick_slab
- nether_brick_stairs
- nether_brick_wall
- nether_gold_ore
- nether_portal
- nether_quartz_ore
- nether_sprouts
- nether_wart
- nether_wart_block
- note_block
- oak_button
- oak_door
- oak_fence
- oak_fence_gate
- oak_leaves
- oak_log
- oak_planks
- oak_pressure_plate
- oak_sapling
- oak_sign
- oak_slab
- oak_stairs
- oak_trapdoor
- oak_wood
- observer
- obsidian
- orange_banner
- orange_bed
- orange_carpet
- orange_concrete
- orange_concrete_powder
- orange_glazed_terracotta
- orange_shulker_box
- orange_stained_glass
- orange_stained_glass_pane
- orange_terracotta
- orange_tulip
- orange_wool
- oxeye_daisy
- packed_ice
- peony
- petrified_oak_slab
- pink_banner
- pink_bed
- pink_carpet
- pink_concrete
- pink_concrete_powder
- pink_glazed_terracotta
- pink_shulker_box
- pink_stained_glass
- pink_stained_glass_pane
- pink_terracotta
- pink_tulip
- pink_wool
- piston
- player_head
- podzol
- polished_andesite
- polished_andesite_slab
- polished_andesite_stairs
- polished_basalt
- polished_blackstone
- polished_blackstone_bricks
- polished_blackstone_brick_slab
- polished_blackstone_brick_stairs
- polished_blackstone_brick_wall
- polished_blackstone_button
- polished_blackstone_pressure_plate
- polished_blackstone_slab
- polished_blackstone_stairs
- polished_blackstone_wall
- polished_diorite
- polished_diorite_slab
- polished_diorite_stairs
- polished_granite
- polished_granite_slab
- polished_granite_stairs
- poppy
- potatoes
- potted_acacia_sapling
- potted_allium
- potted_azure_bluet
- potted_bamboo
- potted_birch_sapling
- potted_blue_orchid
- potted_brown_mushroom
- potted_cactus
- potted_cornflower
- potted_crimson_fungus
- potted_crimson_roots
- potted_dandelion
- potted_dark_oak_sapling
- potted_dead_bush
- potted_fern
- potted_jungle_sapling
- potted_lily_of_the_valley
- potted_oak_sapling
- potted_orange_tulip
- potted_oxeye_daisy
- potted_pink_tulip
- potted_poppy
- potted_red_mushroom
- potted_red_tulip
- potted_spruce_sapling
- potted_warped_fungus
- potted_warped_roots
- potted_white_tulip
- potted_wither_rose
- powered_rail
- prismarine
- prismarine_bricks
- prismarine_brick_slab
- prismarine_brick_stairs
- prismarine_slab
- prismarine_stairs
- prismarine_wall
- pumpkin
- pumpkin_stem
- purple_banner
- purple_bed
- purple_carpet
- purple_concrete
- purple_concrete_powder
- purple_glazed_terracotta
- purple_shulker_box
- purple_stained_glass
- purple_stained_glass_pane
- purple_terracotta
- purple_wool
- purpur_block
- purpur_pillar
- purpur_slab
- purpur_stairs
- quartz_block
- quartz_bricks
- quartz_pillar
- quartz_slab
- quartz_stairs
- rail
- red_banner
- red_bed
- red_carpet
- red_concrete
- red_concrete_powder
- red_glazed_terracotta
- red_mushroom
- red_mushroom_block
- red_nether_bricks
- red_nether_brick_slab
- red_nether_brick_stairs
- red_nether_brick_wall
- red_sand
- red_sandstone
- red_sandstone_slab
- red_sandstone_stairs
- red_sandstone_wall
- red_shulker_box
- red_stained_glass
- red_stained_glass_pane
- red_terracotta
- red_tulip
- red_wool
- redstone_block
- redstone_lamp
- redstone_ore
- redstone_torch
- redstone_wire
- repeater
- respawn_anchor
- rose_bush
- sand
- sandstone
- sandstone_slab
- sandstone_stairs
- sandstone_wall
- scaffolding
- seagrass
- sea_lantern
- sea_pickle
- shroomlight
- shulker_box
- skeleton_skull
- slime_block
- smithing_table
- smoker
- smooth_quartz
- smooth_quartz_slab
- smooth_quartz_stairs
- smooth_red_sandstone
- smooth_red_sandstone_slab
- smooth_red_sandstone_stairs
- smooth_sandstone'
- smooth_sandstone_slab
- smooth_sandstone_stairs
- smooth_stone
- smooth_stone_slab
- snow
- snow_block
- soul_campfire
- soul_fire
- soul_lantern
- soul_sand
- soul_soil
- soul_torch
- spawner
- sponge
- spruce_button
- spruce_door
- spruce_fence
- spruce_fence_gate
- spruce_leaves
- spruce_log
- spruce_planks
- spruce_pressure_plate
- spruce_sapling
- spruce_sign
- spruce_slab
- spruce_stairs
- spruce_trapdoor
- spruce_wood
- sticky_piston
- stone
- stonecutter
- stone_bricks
- stone_brick_slab
- stone_brick_stairs
- stone_brick_wall
- stone_button
- stone_pressure_plate
- stone_slab
- stone_stairs
- stripped_acacia_log
- stripped_acacia_wood
- stripped_birch_log
- stripped_birch_wood
- stripped_crimson_hyphae
- stripped_crimson_stem
- stripped_dark_oak_log
- stripped_dark_oak_wood
- stripped_jungle_log
- stripped_jungle_wood
- stripped_oak_log
- stripped_oak_wood
- stripped_spruce_log
- stripped_spruce_wood
- stripped_warped_hyphae
- stripped_warped_stem
- sugar_cane
- sunflower
- sweet_berry_bush
- tall_grass
- tall_seagrass
- terracotta
- tnt
- torch
- trapped_chest
- tripwire
- tripwire_hook
- tube_coral
- tube_coral_block
- tube_coral_fan
- turtle_egg
- twisting_vines
- twisting_vines_plant
- vine
- warped_button
- warped_door
- warped_fence
- warped_fence_gate
- warped_fungus
- warped_hyphae
- warped_nylium
- warped_planks
- warped_pressure_plate
- warped_roots
- warped_sign
- warped_slab
- warped_stairs
- warped_stem
- warped_trapdoor
- warped_wart_block
- weeping_vines
- weeping_vines_plant
- wet_sponge
- wheat
- white_banner
- white_bed
- white_carpet
- white_concrete
- white_concrete_powder
- white_glazed_terracotta
- white_shulker_box
- white_stained_glass
- white_stained_glass_pane
- white_terracotta
- white_tulip
- white_wool
- wither_rose
- wither_skeleton_skull
- yellow_banner
- yellow_bed
- yellow_carpet
- yellow_concrete
- yellow_concrete_powder
- yellow_glazed_terracotta
- yellow_shulker_box
- yellow_stained_glass
- yellow_stained_glass_pane
- yellow_terracotta
- yellow_wool
- zombie_head
- chests - Items from loot chests
- abandoned_mineshaft - Minecarts with chests found in abandoned mineshafts
- bastion_bridge - Chest found in the bridge variant of the Bastion Remnant
- bastion_hoglin_stable - Chest found in the hoglin stables variant of the Bastion Remnant
- bastion_other - The generic Bastion Remnant chest
- bastion_treasure - Chest found in the tresure variant of the Bastion Remnant
- buried_treasure - Chests found by following buried treasure explorer maps
- 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
- jungle_temple_dispenser - Dispensers found inside jungle temples
- nether_bridge - Chests found in Nether fortresses
- pillager_outpost Chests found at the top of Pillager outposts
- ruined_portal - Chest found accompanying Ruined Portals
- shipwreck_map - Chests found in shipwrecks that can include a treasure map
- shipwreck_supply - Supply chests found in shipwrecks
- shipwreck_treasure - Treasure chests found in shipwrecks
- 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
- underwater_ruin_big - Chests found in the big variant of underwater ruins
- underwater_ruin_small - Chests found in the small variant of underwater ruins
- woodland_mansion - chests found in a woodland mansion.
- village - Chests found in villages since the Village & Pillage update.
- village_armorer - Chest found in a village armorer house.
- village_butcher - Chest found in a village butcher house.
- village_cartographer - Chest found in a village cartographer house.
- village_mason - Chest found in a village mason house.
- village_shepherd - Chest found in a village shepherd house.
- village_tannery - Chest found in a village tannery house.
- village_weaponsmith - Chest found in a village weaponsmith house.
- village_desert_house- Chest found in a village desert house.
- village_plains_house - Chest found in a village plains house.
- village_savanna_house Chest found in a savanna village house.
- village_snowy_house - Chest found in a snowy village house.
- village_taiga_house - Chest found in a taiga village house.
- village_fisher
- village_fletcher
- village_temple
- village_toolsmith
- 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
- light_gray
- lime
- magenta
- orange
- pink
- purple
- red
- white
- yellow
- armor_stand
- bat
- blaze
- cat
- cave_spider
- chicken
- cod
- cow
- creeper
- donkey
- dolphin
- drowned
- elder_guardian
- ender_dragon
- enderman
- endermite
- evoker
- ghast
- giant
- guardian
- hoglin
- horse
- husk
- illusioner
- iron_golem
- llama
- magma_cube
- mooshroom
- mule
- ocelot
- panda
- parrot
- phantom
- pig
- piglin
- pillager
- player
- polar_bear
- pufferfish
- rabbit
- ravager
- salmon
- sheep - Sheep without wool, also inherited by sheep with wool
- shulker
- silverfish
- skeleton
- skeleton_horse
- slime
- snow_golem
- spider
- squid
- stray
- strider
- trader_llama
- tropical_fish
- turtle
- vex
- villager
- vindicator
- wandering_trader
- witch
- wither
- wither_skeleton
- wolf
- zoglin
- zombie
- zombie_horse
- zombie_villager
- zombified_piglin
- sheep - Sheep with wool
- gameplay
- cat_morning_gift
- fishing
- fish - Also inherited by guardians and elder guardians
- junk
- treasure
- fishing - Used to determine loot from fishing by loading the three tables from the fishing folder and applying luck to each one
- hero_of_the_village
- armorer_gift
- butcher_gift
- cartographer_gift
- cleric_gift
- farmer_gift
- fisherman_gift
- fletcher_gift
- leatherworker_gift
- librarian_gift
- mason_gift
- shepherd_gift
- toolsmith_gift
- weaponsmith_gift
- piglin_bartering
- blocks - items dropped when a block is broken.
Pacotes de dados
Pacotes de dados personalizados usam tabelas de itens para alterar o que o saque pode gerar em contêineres ou cair por criaturas. Eles podem alterar as tabelas de itens existentes ou criar novas. Esta é a estrutura do arquivo:
- pasta de salvamento do mundo
- datapacks
- pacote de dados
- data
- minecraft
- loot_tables
- namespace_personalizado
- loot_tables
- nome da tabela de itens.json
- loot_tables
- minecraft
- data
- pacote de dados
- datapacks
The JSON files go in this folder. Vanilla loot tables are grouped into 4 categories: gameplay
(fishing), entities
, blocks
, and chests
, with some tables being in subfolders of those. For example, the file for zombies would go in datapacks/pack name/data/minecraft/loot_tables/entities/zombie.json
. This makes every zombie in that world use the datapack's loot table rather than the default zombie loot table.
Loot tables are namespaced. To create a custom loot table, first create a new folder for the custom namespace, and then create loot tables within following a similar structure. Then, summon the mob with the data tag DeathLootTable set to the name of the directory and file (without the .json extension), such as DeathLootTable:"custom_namespace:path/to/table"
.
Histórico
Edição Java | |||||
---|---|---|---|---|---|
1.9 | 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: to default files, though it currently does nothing in the code. | |||||
Added the function set_damage. | |||||
15w44a | Added the function enchant_randomly and set_attributes. | ||||
15w44b | Added the quality tag. | ||||
Removed luck and luck_multiplier tags. | |||||
Added the bonus_rolls tag. | |||||
15w51a | A player in spectator mode no longer triggers a container to use its loot table to generate loot. | ||||
1.9.1 | pre1 | Loot tables now work with dispensers and droppers. | |||
Added default table chests/jungle_temple_dispenser . | |||||
1.11 | 16w32a | Donkeys, mules, husks and zombie villagers now each draw from their own loot tables, rather than drawing from the horse and zombie loot tables, respectively | |||
16w43a | Villagers, vexes and ender dragons are now able to draw from their own loot tables. | ||||
1.13 | 17w43a | Custom loot tables have been moved into data packs. | |||
1.14 | 18w43a | Block drops have been changed to use loot tables too. | |||
Loot tables received a bunch of new options. | |||||
Setting entity to "this" now refers to the player in chest and block loot tables. | |||||
18w44a | Added loot tables for cats, cat_morning_gift, players and withers. | ||||
Added loot tables for new blocks. | |||||
18w46a | Added loot table for illusioners. | ||||
18w48a | Added more loot tables for villages, some of which are currently unused. | ||||
Removed loot table: village_blacksmith. | |||||
18w49a | village_savanna_house and village_snowy_house loot tables are now used. | ||||
Added more loot tables for villages. | |||||
18w50a | village_desert_house and village_taiga_house loot tables are now used, making all previously unused loot tables no longer unused. | ||||
? | Empty loot table is now hardcoded. | ||||
1.15 | 19w34a | Added the function copy_state. | |||
1.16 | 20w12a | Added fishing_hook sub-predicate to check properties of the fishing hook. |
Problemas
Problemas relacionados com "Loot table" são mantidos no rastreador de problemas. Reporte problemas lá.