본문으로 건너뛰기

루트 테이블 레퍼런스 (5/7)

MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 레퍼런스를 발췌한 쪽이다. 원문의 상대 링크는 제거했다.

(출처: ms-learn, creator/Reference/Content/LootTableReference/Examples/LootTableComponents/loot_pool.md)

Loot Tables Documentation - minecraft:loot_pool​

Defines a pool of loot entries that can be rolled one or more times.

Loot Pool Properties​

NameDefault ValueTypeDescription
bonus_rolls0Integer numberAdditional rolls added based on luck attribute. Can be fixed or range.
conditionsnot setArray of Conditions itemsArray of conditions that must be met for this pool to be rolled.
entriesnot setArray of Entries itemsArray of possible entries to select from when rolling this pool.
rolls1Integer numberNumber of times to roll this pool. Can be a fixed number or a range object with min/max.
rolls (as Object)not setRolls (Rolls Range) item
tiersnot setTiers itemTiered entry selection configuration.
Loot Condition​

Defines a condition that must be met for a loot table entry or function to apply.

Loot Condition Properties​

JSON path: conditions

NameDefault ValueTypeDescription
chancenot setDecimal numberFor 'random_chance' and 'random_chance_with_looting': the base probability (0.0-1.0).
conditionnot setStringThe condition type.
default_chancenot setDecimal numberFor 'random_difficulty_chance': default probability if difficulty not matched.
easynot setDecimal numberFor 'random_difficulty_chance': probability on easy difficulty.
entitynot setStringFor 'entity_properties': which entity to check ('this', 'attacker', or 'attacking_player').
hardnot setDecimal numberFor 'random_difficulty_chance': probability on hard difficulty.
looting_multipliernot setDecimal numberFor 'random_chance_with_looting': additional chance per looting level.
match_toolnot setMatch Tool itemFor 'match_tool': the tool item properties to match. Item tag references in the 'item' property are available without an experimental toggle in 1.21.70.
normalnot setDecimal numberFor 'random_difficulty_chance': probability on normal difficulty.
peacefulnot setDecimal numberFor 'random_difficulty_chance': probability on peaceful difficulty.
propertiesnot setProperties itemFor 'entity_properties': the entity properties to match.
valuenot setInteger numberFor 'has_mark_variant' or 'has_variant': the variant value to match.

condition​

The condition type. Common values: 'killed_by_player', 'killed_by_player_or_pets', 'random_chance', 'random_chance_with_looting', 'has_mark_variant', 'has_variant', 'entity_properties', 'match_tool', 'random_difficulty_chance'.

Match Tool​

Tool Match Properties​

JSON path: conditions > match_tool

NameDefault ValueTypeDescription
enchantmentsnot setArray of Enchantments items
itemnot setString
Enchantments​
Tool Enchant Properties​

JSON path: conditions > match_tool > enchantments

NameDefault ValueTypeDescription
enchantmentnot setString
levelsnot setLevels item
Levels​
Enchant Levels Properties​

JSON path: conditions > match_tool > enchantments > levels

NameDefault ValueTypeDescription
minnot setInteger number

Properties​

Entity Props Properties​

JSON path: conditions > properties

NameDefault ValueTypeDescription
on_firenot setBoolean true/false
on_groundnot setBoolean true/false
Loot Table Entry​

Defines an entry in a loot table pool that can be selected when the pool rolls.

Loot Table Entry Properties​

JSON path: entries

NameDefault ValueTypeDescription
conditionsnot setArray of Conditions itemsArray of conditions that must be met for this entry to be considered.
functionsnot setArray of Functions itemsArray of functions to apply to the item when selected.
namenot setStringThe item identifier (for type 'item') or loot table path (for type 'loot_table').
poolsnot setArray of Pools itemsNested pools for type 'loot_table'. Allows inline loot table definition.
typenot setStringThe type of entry. Valid values: 'item' (drops an item), 'loot_table' (references another loot table), 'empty' (drops nothing).
weight1Integer numberThe relative weight of this entry being selected. Higher weights are more likely. Default is 1.

Loot Function​

Defines a function that modifies a loot table entry when selected.

Loot Function Properties​

JSON path: entries > functions

NameDefault ValueTypeDescription
conditionsnot setArray of Conditions itemsConditions that must be met for this function to apply.
count (Count Range)not setCount itemFor 'set_count' and 'looting_enchant': the count value or range.
count (as Integer number)not setInteger number
damagenot setDamage itemFor 'set_damage': the damage percentage or range (0.0-1.0).
datanot setData itemFor 'set_data': the data value or range to set.
destinationnot setStringFor 'exploration_map': the structure destination type.
functionnot setStringThe function type.
idnot setStringFor 'set_actor_id': the entity identifier.
levelsnot setLevels itemFor 'enchant_with_levels': the enchantment level or range.
treasurenot setBoolean true/falseFor 'enchant_randomly': whether to include treasure enchantments.
function​

The function type. Common values: 'set_count', 'set_data', 'set_damage', 'set_nbt', 'enchant_randomly', 'enchant_with_levels', 'looting_enchant', 'furnace_smelt', 'set_actor_id', 'set_book_contents', 'fill_container', 'exploration_map', 'set_banner_details', 'set_armor_trim'.

Count​
Count Range Properties​

JSON path: entries > functions > count

NameDefault ValueTypeDescription
maxnot setInteger number
minnot setInteger number
Damage​
Damage Range Properties​

JSON path: entries > functions > damage

NameDefault ValueTypeDescription
maxnot setDecimal number
minnot setDecimal number
Data​

Same structure as Count.

Loot Pool​

Rolls (Rolls Range)​

Rolls Range Properties​

JSON path: rolls

NameDefault ValueTypeDescription
max1Integer number
min1Integer number
Tiers​

Pool Tiers Properties​

JSON path: tiers

NameDefault ValueTypeDescription
bonus_chancenot setDecimal number
bonus_rollsnot setInteger number
initial_rangenot setInteger number

(출처: ms-learn, creator/Reference/Content/LootTableReference/Examples/LootTableComponents/loot_table.md)

Loot Tables Documentation - minecraft:loot_table​

Defines the loot that can be generated when an entity is killed, a chest is opened, fishing is performed, or other gameplay events occur. Loot tables consist of one or more pools, each containing entries with items or references to other loot tables.

Loot Table Properties​

NameDefault ValueTypeDescription
poolsnot setArray of Pools itemsA list of loot pools. Each pool is rolled independently to select entries.
Loot Pool​

Defines a pool of loot entries that can be rolled one or more times.

Loot Pool Properties​

JSON path: pools

NameDefault ValueTypeDescription
bonus_rolls0Integer numberAdditional rolls added based on luck attribute. Can be fixed or range.
conditionsnot setArray of Conditions itemsArray of conditions that must be met for this pool to be rolled.
entriesnot setArray of Entries itemsArray of possible entries to select from when rolling this pool.
rolls1Integer numberNumber of times to roll this pool. Can be a fixed number or a range object with min/max.
rolls (as Object)not setRolls (Rolls Range) item
tiersnot setTiers itemTiered entry selection configuration.

Loot Condition​

Defines a condition that must be met for a loot table entry or function to apply.

Loot Condition Properties​

JSON path: pools > conditions

NameDefault ValueTypeDescription
chancenot setDecimal numberFor 'random_chance' and 'random_chance_with_looting': the base probability (0.0-1.0).
conditionnot setStringThe condition type.
default_chancenot setDecimal numberFor 'random_difficulty_chance': default probability if difficulty not matched.
easynot setDecimal numberFor 'random_difficulty_chance': probability on easy difficulty.
entitynot setStringFor 'entity_properties': which entity to check ('this', 'attacker', or 'attacking_player').
hardnot setDecimal numberFor 'random_difficulty_chance': probability on hard difficulty.
looting_multipliernot setDecimal numberFor 'random_chance_with_looting': additional chance per looting level.
match_toolnot setMatch Tool itemFor 'match_tool': the tool item properties to match. Item tag references in the 'item' property are available without an experimental toggle in 1.21.70.
normalnot setDecimal numberFor 'random_difficulty_chance': probability on normal difficulty.
peacefulnot setDecimal numberFor 'random_difficulty_chance': probability on peaceful difficulty.
propertiesnot setProperties itemFor 'entity_properties': the entity properties to match.
valuenot setInteger numberFor 'has_mark_variant' or 'has_variant': the variant value to match.
condition​

The condition type. Common values: 'killed_by_player', 'killed_by_player_or_pets', 'random_chance', 'random_chance_with_looting', 'has_mark_variant', 'has_variant', 'entity_properties', 'match_tool', 'random_difficulty_chance'.

Match Tool​
Tool Match Properties​

JSON path: pools > conditions > match_tool

NameDefault ValueTypeDescription
enchantmentsnot setArray of Enchantments items
itemnot setString
Enchantments​
Tool Enchant Properties​

JSON path: pools > conditions > match_tool > enchantments

NameDefault ValueTypeDescription
enchantmentnot setString
levelsnot setLevels item
Levels​
Enchant Levels Properties​

JSON path: pools > conditions > match_tool > enchantments > levels

NameDefault ValueTypeDescription
minnot setInteger number
Properties​
Entity Props Properties​

JSON path: pools > conditions > properties

NameDefault ValueTypeDescription
on_firenot setBoolean true/false
on_groundnot setBoolean true/false

Loot Table Entry​

Defines an entry in a loot table pool that can be selected when the pool rolls.

Loot Table Entry Properties​

JSON path: pools > entries

NameDefault ValueTypeDescription
conditionsnot setArray of Conditions itemsArray of conditions that must be met for this entry to be considered.
functionsnot setArray of Functions itemsArray of functions to apply to the item when selected.
namenot setStringThe item identifier (for type 'item') or loot table path (for type 'loot_table').
poolsnot setArray of Pools itemsNested pools for type 'loot_table'. Allows inline loot table definition.
typenot setStringThe type of entry. Valid values: 'item' (drops an item), 'loot_table' (references another loot table), 'empty' (drops nothing).
weight1Integer numberThe relative weight of this entry being selected. Higher weights are more likely. Default is 1.
Loot Function​

Defines a function that modifies a loot table entry when selected.

Loot Function Properties​

JSON path: pools > entries > functions

NameDefault ValueTypeDescription
conditionsnot setArray of Conditions itemsConditions that must be met for this function to apply.
count (Count Range)not setCount itemFor 'set_count' and 'looting_enchant': the count value or range.
count (as Integer number)not setInteger number
damagenot setDamage itemFor 'set_damage': the damage percentage or range (0.0-1.0).
datanot setData itemFor 'set_data': the data value or range to set.
destinationnot setStringFor 'exploration_map': the structure destination type.
functionnot setStringThe function type.
idnot setStringFor 'set_actor_id': the entity identifier.
levelsnot setLevels itemFor 'enchant_with_levels': the enchantment level or range.
treasurenot setBoolean true/falseFor 'enchant_randomly': whether to include treasure enchantments.
function​

The function type. Common values: 'set_count', 'set_data', 'set_damage', 'set_nbt', 'enchant_randomly', 'enchant_with_levels', 'looting_enchant', 'furnace_smelt', 'set_actor_id', 'set_book_contents', 'fill_container', 'exploration_map', 'set_banner_details', 'set_armor_trim'.

Count​
Count Range Properties​

JSON path: pools > entries > functions > count

NameDefault ValueTypeDescription
maxnot setInteger number
minnot setInteger number
Damage​
Damage Range Properties​

JSON path: pools > entries > functions > damage

NameDefault ValueTypeDescription
maxnot setDecimal number
minnot setDecimal number
Data​

Same structure as Count.

Loot Pool​

Rolls (Rolls Range)​

Rolls Range Properties​

JSON path: pools > rolls

NameDefault ValueTypeDescription
max1Integer number
min1Integer number

Tiers​

Pool Tiers Properties​

JSON path: pools > tiers

NameDefault ValueTypeDescription
bonus_chancenot setDecimal number
bonus_rollsnot setInteger number
initial_rangenot setInteger number

(출처: ms-learn, creator/Reference/Content/LootTableReference/Examples/LootTableDefinitionList.md)

Loot Tables Documentation - Loot Tables Definition List​

Loot Tables are configured in JSON files under the behavior_packs/'name of pack'/loot_tables directory. Loot table JSON files have different structures dependent on their type.

List of Loot Tables​

TypeDescription
Enchanting TablesUsed to set the rules for tables that enchant items
Item Modification TablesUsed to set the rules for tables that modify items
Miscellaneous TablesUsed to set the rules for other supported types of tables
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13