跳到主要内容
版本:1.21 - 1.21.1

战利品函数

战利品函数可用于修改某个战利品条目的结果,或修改某个战利品池战利品表的多个结果。这两种情况下都会定义一个函数列表,并按顺序依次运行。在数据生成期间,可以对 LootPoolSingletonContainer.Builder<?>LootPool.BuilderLootTable.Builder 调用 #apply 来应用战利品函数。本文将介绍可用的战利品函数。若要创建你自己的战利品函数,请参阅自定义战利品函数

备注

战利品函数不能应用于复合战利品条目(CompositeEntryBase 的子类及其关联的构建器类)。它们必须手动添加到每个单例条目上。

minecraft:sequence 外的所有原版战利品函数都可以在 conditions 块中指定战利品条件。如果其中某个条件不满足,该函数将不会被应用。在代码层面,这由 LootItemConditionalFunction 控制,除 SequenceFunction 外的所有战利品函数都继承自它。

minecraft:set_item

设置结果物品堆叠中要使用的另一种物品。

{
"function": "minecraft:set_item",
// The item to use.
"item": "minecraft:dirt"
}

目前无法在数据生成期间创建此函数。

minecraft:set_count

设置结果物品堆叠中要使用的物品数量。使用一个数值提供器

{
"function": "minecraft:set_count",
// The count to use.
"count": {
"type": "minecraft:uniform",
"min": 1,
"max": 3
},
// Whether to add to the existing value instead of setting it. Optional, defaults to false.
"add": true
}

在数据生成期间,调用 SetItemCountFunction#setCount,传入所需的数值提供器以及可选的 add 布尔值,即可构造该函数的构建器。

minecraft:explosion_decay

应用一次爆炸衰减。物品有 1 / explosion_radius 的概率“存活”。这会根据数量运行多次。需要 minecraft:explosion_radius 战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:explosion_decay"
}

在数据生成期间,调用 ApplyExplosionDecay#explosionDecay 即可构造该函数的构建器。

minecraft:limit_count

将物品堆叠的数量限制在给定的 IntRange 范围之内。

{
"function": "minecraft:limit_count",
// The limit to use. Can have a min, a max, or both.
"limit": {
"max": 32
}
}

在数据生成期间,调用 LimitCount#limitCount,传入所需的 IntRange,即可构造该函数的构建器。

minecraft:set_custom_data

在物品堆叠上设置自定义 NBT 数据。

{
"function": "minecraft:set_custom_data",
"tag": {
"exampleproperty": 0
}
}

在数据生成期间,调用 SetCustomDataFunction#setCustomData,传入所需的 CompoundTag,即可构造该函数的构建器。

注意

此函数通常应视为已弃用。请改用 minecraft:set_components

minecraft:copy_custom_data

将自定义 NBT 数据从方块实体或实体来源复制到物品堆叠上。不建议对方块实体使用此函数,应改用 minecraft:copy_componentsminecraft:set_contents。对于实体,则需要设置实体目标。需要与指定来源(实体目标或方块实体)相对应的战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:copy_custom_data",
// The source to use. Valid values are either an entity target, "block_entity" to use the loot context's
// block entity parameter, or be "storage" for command storage. If this is "storage", it can instead be a
// JSON object that additionally specify the command storage path to be used.
"source": "this",
// Example for using "storage".
"source": {
"type": "storage",
"source": "examplepath"
},
// The copy operation(s).
"ops": [
{
// The source and target paths. In this example, we copy from "src" in the source to "dest" in the target.
"source": "src",
"target": "dest",
// A merging strategy. Valid values are "replace", "append", and "merge".
"op": "merge"
}
]
}

在数据生成期间,调用 CopyCustomDataFunction#copy,传入所需的来源与目标值以及一个合并策略(可选,默认为 replace),即可构造该函数的构建器。

minecraft:set_components

在物品堆叠上设置数据组件值。大多数原版用例都有专门的函数,将在下文说明。

{
"function": "minecraft:set_components",
// Any component can be used. In this example, we set the dyed color of the item to red.
"components": {
"dyed_color": {
"rgb": 16711680
}
}
}

在数据生成期间,调用 SetComponentsFunction#setComponent,传入所需的数据组件与值,即可构造该函数的构建器。

minecraft:copy_components

数据组件值从方块实体复制到物品堆叠上。需要 minecraft:block_entity 战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:copy_components",
// The system is designed to allow multiple sources, however for now, there are only block entities available.
"source": "block_entity",
// By default, all components are copied. The "exclude" list allows excluding certain components, and the
// "include" list allows explicitly re-including components. Both fields are optional.
"exclude": [],
"include": []
}

在数据生成期间,调用 CopyComponentsFunction#copyComponents,传入所需的数据来源(通常是 CopyComponentsFunction.Source.BLOCK_ENTITY),即可构造该函数的构建器。

minecraft:copy_state

将方块状态属性复制到物品堆叠的 block_state 数据组件中,在尝试放置方块时使用。要复制的方块状态属性必须显式指定。需要 minecraft:block_state 战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:copy_state",
// The expected block. If this does not match the block that is actually broken, the function does not run.
"block": "minecraft:oak_slab",
// The block state properties to save.
"properties": {
"type": "top"
}
}

在数据生成期间,调用 CopyBlockState#copyState,传入方块,即可构造该条件的构建器。随后可通过 #copy 在构建器上设置所需的方块状态属性值。

minecraft:set_contents

设置物品堆叠的内容物。

{
"function": "minecraft:set_contents",
// The contents component to use. Valid values are "container", "bundle_contents" and "charged_projectiles".
"component": "container",
// A list of loot entries to add to the contents.
"entries": [
{
"type": "minecraft:empty",
"weight": 3
},
{
"type": "minecraft:item",
"item": "minecraft:arrow"
}
]
}

在数据生成期间,调用 SetContainerContents#setContents,传入所需的内容物组件,即可构造该函数的构建器。随后在构建器上调用 #withEntry 以添加条目。

minecraft:modify_contents

对物品堆叠的内容物应用一个函数。

{
"function": "minecraft:modify_contents",
// The contents component to use. Valid values are "container", "bundle_contents" and "charged_projectiles".
"component": "container",
// The function to use.
"modifier": "apply_explosion_decay"
}

目前无法在数据生成期间创建此函数。

minecraft:set_loot_table

在结果物品堆叠上设置一个容器战利品表。适用于箱子以及其他在放置后仍保留此属性的战利品容器。

{
"function": "minecraft:set_loot_table",
// The id of the loot table to use.
"name": "minecraft:entities/enderman",
// The id of the block entity type of the target block entity.
"type": "minecraft:chest",
// The random seed for generating loot tables. Optional, defaults to 0.
"seed": 42
}

在数据生成期间,调用 SetContainerLootTable#withLootTable,传入所需的方块实体类型、战利品表资源键以及可选的种子,即可构造该函数的构建器。

minecraft:set_name

为结果物品堆叠设置名称。该名称可以是一个 Component,而不必是字面字符串。它也可以从一个实体目标解析而来。如适用,需要相应的实体战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:set_name",
"name": "Funny Item",
// The entity target to use.
"entity": "this",
// Whether to set the custom name ("custom_name") or the item name ("item_name") itself.
// Custom name are displayed in italics and can be changed in an anvil, while item names cannot.
"target": "custom_name"
}

在数据生成期间,调用 SetNameFunction#setName,传入所需的名称组件、所需的名称目标以及可选的实体目标,即可构造该函数的构建器。

minecraft:copy_name

将一个实体目标或方块实体的名称复制到结果物品堆叠上。需要与指定来源(实体目标或方块实体)相对应的战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:copy_name",
// The entity target, or "block_entity" if a block entity's name should be copied.
"source": "this"
}

在数据生成期间,调用 CopyNameFunction#copyName,传入所需的实体来源,即可构造该函数的构建器。

minecraft:set_lore

为结果物品堆叠设置说明文本(工具提示行)。这些行可以是 Component,而不必是字面字符串。它也可以从一个实体目标解析而来。如适用,需要相应的实体战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:set_lore",
"lore": [
"Funny Lore",
"Funny Lore 2"
],
// The merging mode used. Valid values are:
// - "append": Appends the entries to any existing lore entries.
// - "insert": Inserts the entries at a certain position. The position is denoted as an additional field
// named "offset". "offset" is optional and defaults to 0.
// - "replace_all": Removes all previous entries and then appends the entries.
// - "replace_section": Removes a section of entries and then adds the entries at that position.
// The section removed is denoted through the "offset" and optional "size" fields.
// If "size" is omitted, the amount of lines in "lore" is used.
"mode": {
"type": "insert",
"offset": 0
},
// The entity target to use.
"entity": "this"
}

在数据生成期间,调用 SetLoreFunction#setLore 即可构造该函数的构建器。随后根据需要在构建器上调用 #addLine#setMode#setResolutionContext

minecraft:toggle_tooltips

启用或禁用特定组件的工具提示。

{
"function": "minecraft:toggle_tooltips",
"toggles": {
// All values are optional. If omitted, these values will use pre-existing values on the stack.
// The pre-existing values are generally true, unless they have already been modified by another function.
"minecraft:attribute_modifiers": false,
"minecraft:can_break": false,
"minecraft:can_place_on": false,
"minecraft:dyed_color": false,
"minecraft:enchantments": false,
"minecraft:jukebox_playable": false,
"minecraft:stored_enchantments": false,
"minecraft:trim": false,
"minecraft:unbreakable": false
}
}

目前无法在数据生成期间创建此函数。

minecraft:enchant_with_levels

用给定的等级数量随机附魔物品堆叠。使用一个数值提供器

{
"function": "minecraft:enchant_with_levels",
// The amount of levels to use.
"levels": {
"type": "minecraft:uniform",
"min": 10,
"max": 30
},
// A list of possible enchantments. Optional, defaults to all applicable enchantments for the item.
"options": [
"minecraft:sharpness",
"minecraft:fire_aspect"
]
}

在数据生成期间,调用 EnchantWithLevelsFunction#enchantWithLevels,传入所需的数值提供器,即可构造该函数的构建器。随后如有需要,可使用 #fromOptions 在构建器上设置一个附魔列表。

minecraft:enchant_randomly

用一个随机附魔为物品附魔。

{
"function": "minecraft:enchant_randomly",
// A list of possible enchantments. Optional, defaults to all enchantments.
"options": [
"minecraft:sharpness",
"minecraft:fire_aspect"
]
// Whether to only allow compatible enchantments, or any enchantments. Optional, defaults to true.
"only_compatible": true
}

在数据生成期间,调用 EnchantRandomlyFunction#randomEnchantmentEnchantRandomlyFunction#randomApplicableEnchantment 即可构造该函数的构建器。随后如有需要,可在构建器上调用 #withEnchantment#withOneOf

minecraft:set_enchantments

在结果物品堆叠上设置附魔。

{
"function": "minecraft:set_enchantments",
// A map of enchantments to number providers.
"enchantments": {
"minecraft:fire_aspect": 2,
"minecraft:sharpness": {
"type": "minecraft:uniform",
"min": 3,
"max": 5,
}
},
// Whether to add enchantment levels to existing levels instead of overwriting them. Optional, defaults to false.
"add": true
}

在数据生成期间,调用 new SetEnchantmentsFunction.Builder,(可选地)传入 add 布尔值,即可构造该函数的构建器。随后调用 #withEnchantment 以添加要设置的附魔。

minecraft:enchanted_count_increase

根据附魔数值增加物品堆叠的数量。使用一个数值提供器。需要 minecraft:attacking_entity 战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:enchanted_count_increase",
// The enchantment to use.
"enchantment": "minecraft:fortune",
// The increase count per level. The number provider is rolled once per function, not once per level.
"count": {
"type": "minecraft:uniform",
"min": 1,
"max": 3
},
// The stack size limit, which will not be exceeded no matter the enchantment level. Optional.
"limit": 5
}

在数据生成期间,调用 EnchantedCountIncreaseFunction#lootingMultiplier,传入所需的数值提供器,即可构造该函数的构建器。随后可选地在构建器上调用 #setLimit

minecraft:apply_bonus

根据附魔数值和各种公式对物品堆叠数量应用一个增量。需要 minecraft:tool 战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:apply_bonus",
// The enchantment value to query.
"enchantment": "minecraft:fortune",
// The formula to use. Valid values are:
// - "minecraft:binomial_with_bonus_count": Applies a bonus based on a binomial distribution with
// n = enchantment level + extra and p = probability.
// - "minecraft:ore_drops": Applies a bonus based on a special formula for ore drops, including randomness.
// - "minecraft:uniform_bonus_count": Adds a bonus based on the enchantment level scaled by a constant multiplier.
"formula": "ore_drops",
// The parameter values, depending on the formula.
// If the formula is "minecraft:binomial_with_bonus_count", requires "extra" and "probability".
// If the formula is "minecraft:ore_drops", requires no parameters.
// If the formula is "minecraft:uniform_bonus_count", requires "bonusMultiplier".
"parameters": {}
}

在数据生成期间,调用 ApplyBonusCount#addBonusBinomialDistributionCountApplyBonusCount#addOreBonusCountApplyBonusCount#addUniformBonusCount,传入附魔以及其他必需参数(取决于公式),即可构造该函数的构建器。

minecraft:furnace_smelt

尝试将物品当作在熔炉中一样熔炼,如果无法熔炼则返回未修改的物品堆叠。

{
"function": "minecraft:furnace_smelt"
}

在数据生成期间,调用 SmeltItemFunction#smelted 即可构造该函数的构建器。

minecraft:set_damage

在结果物品堆叠上设置一个耐久度损伤值。使用一个数值提供器

{
"function": "minecraft:set_damage",
// The damage to set.
"damage": {
"type": "minecraft:uniform",
"min": 10,
"max": 300
},
// Whether to add to the existing damage instead of setting it. Optional, defaults to false.
"add": true
}

在数据生成期间,调用 SetItemDamageFunction#setDamage,传入所需的数值提供器以及可选的 add 布尔值,即可构造该函数的构建器。

minecraft:set_attributes

向结果物品堆叠添加一组属性修饰符。

{
"function": "minecraft:set_attributes",
// A list of attribute modifiers.
"modifiers": [
{
// The resource location id of the modifier. Should be prefixed by your mod id.
"id": "examplemod:example_modifier",
// The id of the attribute the modifier is for.
"attribute": "minecraft:generic.attack_damage",
// The attribute modifier operation.
// Valid values are "add_value", "add_multiplied_base" and "add_multiplied_total".
"operation": "add_value",
// The amount of the modifier. This can also be a number provider.
"amount": 5,
// The slot(s) the modifier applies for. Valid values are "any" (any inventory slot),
// "mainhand", "offhand", "hand", (mainhand/offhand/both hands),
// "feet", "legs", "chest", "head", "armor" (boots/leggings/chestplates/helmets/any armor slots)
// and "body" (horse armor and similar slots).
"slot": "armor"
}
],
// Whether to replace the existing values instead of adding to them. Optional, defaults to true.
"replace": false
}

在数据生成期间,调用 SetAttributesFunction#setAttributes 即可构造该函数的构建器。随后使用构建器上的 #withModifier 添加修饰符。使用 SetAttributesFunction#modifier 获取一个修饰符。

minecraft:set_potion

在结果物品堆叠上设置一种药水。

{
"function": "minecraft:set_potion",
// The id of the potion.
"id": "minecraft:strength"
}

在数据生成期间,调用 SetPotionFunction#setPotion,传入所需的药水,即可构造该函数的构建器。

minecraft:set_stew_effect

在结果物品堆叠上设置一组炖菜效果。

{
"function": "minecraft:set_stew_effect",
// The effects to set.
"effects": [
{
// The effect id.
"type": "minecraft:fire_resistance",
// The effect duration, in ticks. This can also be a number provider.
"duration": 100
}
]
}

在数据生成期间,调用 SetStewEffectFunction#stewEffect 即可构造该函数的构建器。随后在构建器上调用 #withModifier

minecraft:set_ominous_bottle_amplifier

在结果物品堆叠上设置不祥之瓶的增幅等级。使用一个数值提供器

{
"function": "minecraft:set_ominous_bottle_amplifier",
// The amplifier to use.
"amplifier": {
"type": "minecraft:uniform",
"min": 1,
"max": 3
}
}

在数据生成期间,调用 SetOminousBottleAmplifierFunction#amplifier,传入所需的数值提供器,即可构造该函数的构建器。

minecraft:exploration_map

当且仅当结果物品堆叠是地图时,将其转换为探险地图。需要 minecraft:origin 战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:exploration_map",
// A structure tag, containing the structures an exploration map can lead to.
// Optional, defaults to "minecraft:on_treasure_maps", which only contains buried treasures by default.
"destination": "minecraft:eye_of_ender_located",
// The map decoration type to use. See the MapDecorationTypes class for available values.
// Optional, defaults to "minecraft:mansion".
"decoration": "minecraft:target_x",
// The zoom level to use. Optional, defaults to 2.
"zoom": 4,
// The search radius to use. Optional, defaults to 50.
"search_radius": 25,
// Whether existing chunks are skipped when searching for structures. Optional, defaults to true.
"skip_existing_chunks": true
}

在数据生成期间,调用 ExplorationMapFunction#makeExplorationMap 即可构造该函数的构建器。随后如有需要,可在构建器上调用各个 setter 方法。

minecraft:fill_player_head

根据给定的实体目标,在结果物品堆叠上设置玩家头颅的所有者。需要相应的战利品参数,若该参数缺失则不进行任何修改。

{
"function": "minecraft:fill_player_head",
// The entity target to use. If this doesn't resolve to a player, the stack is not modified.
"entity": "this_entity"
}

在数据生成期间,调用 FillPlayerHead#fillPlayerHead,传入所需的实体目标,即可构造该函数的构建器。

minecraft:set_banner_pattern

在结果物品堆叠上设置旗帜图案。这适用于旗帜,而非旗帜图案物品。

{
"function": "minecraft:set_banner_patterns",
// A list of banner pattern layers.
"patterns": [
{
// The id of the banner pattern to use.
"pattern": "minecraft:globe",
// The dye color of the layer.
"color": "light_blue"
}
],
// Whether to append to the existing layers instead of replacing them.
"append": true
}

在数据生成期间,调用 SetBannerPatternFunction#setBannerPattern,传入 append 布尔值,即可构造该函数的构建器。随后调用 #addPattern 向该函数添加图案。

minecraft:set_instrument

在结果物品堆叠上设置乐器标签。

{
"function": "minecraft:set_instrument",
// The instrument tag to use.
"options": "minecraft:goat_horns"
}

在数据生成期间,调用 SetInstrumentFunction#setInstrumentOptions,传入所需的乐器标签,即可构造该函数的构建器。

minecraft:set_fireworks

{
"function": "minecraft:set_fireworks",
// The explosions to use. Optional, uses the existing data component value if absent.
"explosions": [
{
// The firework explosion shape to use. Valid 原版 values are "small_ball", "large_ball",
// "star", "creeper" and "burst". Optional, defaults to "small_ball".
"shape": "star",
// The colors to use. Optional, defaults to an empty list.
"colors": [
16711680,
65280
],
// The fade colors to use. Optional, defaults to an empty list.
"fade_colors": [
65280,
255
],
// Whether the explosion has a trail. Optional, defaults to false.
"has_trail": true,
// Whether the explosion has a twinkle. Optional, defaults to false.
"has_twinkle": true
}
],
// The flight duration of the fireworks. Optional, uses the existing data component value if absent.
"flight_duration": 5
}

目前无法在数据生成期间创建此函数。

minecraft:set_firework_explosion

在结果物品堆叠上设置一次烟花爆炸。

{
"function": "minecraft:set_firework_explosion",
// The firework explosion shape to use. Valid 原版 values are "small_ball", "large_ball",
// "star", "creeper" and "burst". Optional, defaults to "small_ball".
"shape": "star",
// The colors to use. Optional, defaults to an empty list.
"colors": [
16711680,
65280
],
// The fade colors to use. Optional, defaults to an empty list.
"fade_colors": [
65280,
255
],
// Whether the explosion has a trail. Optional, defaults to false.
"has_trail": true,
// Whether the explosion has a twinkle. Optional, defaults to false.
"has_twinkle": true
}

在数据生成期间,调用 SetItemCountFunction#setCount,传入所需的数值提供器以及可选的 add 布尔值,即可构造该函数的构建器。

minecraft:set_book_cover

设置成书中与具体页面无关的内容。

{
"function": "minecraft:set_book_cover",
// The book title. Optional, if absent, the book title remains unchanged.
"title": "Hello World!",
// The book author. Optional, if absent, the book author remains unchanged.
"author": "Steve",
// The book generation, i.e. how often it has been copied. Clamped between 0 and 3.
// Optional, if absent, the book generation remains unchanged.
"generation": 2
}

在数据生成期间,调用 new SetBookCoverFunction,传入所需的参数,即可构造该函数的构建器。

minecraft:set_written_book_pages

设置成书的页面。

{
"function": "minecraft:set_written_book_pages",
// The pages to set, as a list of strings.
"pages": [
"Hello World!",
"Hello World on page 2!",
"Never Gonna Give You Up!"
],
// The merging mode used. Valid values are:
// - "append": Appends the entries to any existing lore entries.
// - "insert": Inserts the entries at a certain position. The position is denoted as an additional field
// named "offset". "offset" is optional and defaults to 0.
// - "replace_all": Removes all previous entries and then appends the entries.
// - "replace_section": Removes a section of entries and then adds the entries at that position.
// The section removed is denoted through the "offset" and optional "size" fields.
// If "size" is omitted, the amount of lines in "lore" is used.
"mode": {
"type": "insert",
"offset": 0
}
}

目前无法在数据生成期间创建此函数。

minecraft:set_writable_book_pages

设置书与笔的页面。

{
"function": "minecraft:set_writable_book_pages",
// The pages to set, as a list of strings.
"pages": [
"Hello World!",
"Hello World on page 2!",
"Never Gonna Give You Up!"
],
// The merging mode used. Valid values are:
// - "append": Appends the entries to any existing lore entries.
// - "insert": Inserts the entries at a certain position. The position is denoted as an additional field
// named "offset". "offset" is optional and defaults to 0.
// - "replace_all": Removes all previous entries and then appends the entries.
// - "replace_section": Removes a section of entries and then adds the entries at that position.
// The section removed is denoted through the "offset" and optional "size" fields.
// If "size" is omitted, the amount of lines in "lore" is used.
"mode": {
"type": "insert",
"offset": 0
}
}

目前无法在数据生成期间创建此函数。

minecraft:set_custom_model_data

设置结果物品堆叠的自定义模型数据。

{
"function": "minecraft:set_custom_model_data",
// The custom model data value to use. This can also be a number provider.
"value": 4
}

目前无法在数据生成期间创建此函数。

minecraft:filtered

此函数接受一个 ItemPredicate,并针对 tool 战利品参数进行检查;如果检查通过,则运行另一个函数。 ItemPredicate 可以指定一个有效物品 id 列表(items)、物品数量的最小/最大范围(count)、一个 DataComponentPredicatecomponents)以及一个 ItemSubPredicatepredicates);所有字段均为可选。需要 minecraft:tool 战利品参数,若该参数缺失则始终失败。

{
"function": "minecraft:filtered",
// The custom model data value to use. This can also be a number provider.
"item_filter": {
"items": [
"minecraft:diamond_shovel"
]
},
// The other loot function to run, as either a loot modifier file or an in-line list of functions.
"modifier": "examplemod:example_modifier"
}

目前无法在数据生成期间创建此函数。

注意

此函数通常应视为已弃用。请改用带有 minecraft:match_tool 条件的目标函数。

minecraft:reference

此函数引用一个物品修饰符,并将其应用于结果物品堆叠。更多信息请参阅物品修饰符

{
"function": "minecraft:reference",
// Refers to the item modifier file at data/examplemod/item_modifier/example_modifier.json.
"name": "examplemod:example_modifier"
}

在数据生成期间,调用 FunctionReference#functionReference,传入被引用的谓词文件的 id,即可构造该函数的构建器。

minecraft:sequence

此函数依次运行其他战利品函数。

{
"function": "minecraft:sequence",
// A list of functions to run.
"functions": [
{
"function": "minecraft:set_count",
// ...
},
{
"function": "minecraft:explosion_decay"
}
],
}

在数据生成期间,调用 SequenceFunction#of,传入其他函数,即可构造该条件的构建器。

另请参阅