sandstone 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_internal/index.d.ts +91 -16
- package/dist/_internal/index.js +1961 -306
- package/dist/_internal/index.js.map +1 -1
- package/dist/_internal/types/arguments/generated/_builtin/block_state_keys.d.ts +85 -1
- package/dist/_internal/types/arguments/generated/_builtin/block_states.d.ts +181 -1
- package/dist/_internal/types/arguments/generated/_dispatcher/block.d.ts +57 -21
- package/dist/_internal/types/arguments/generated/_dispatcher/block_entity.d.ts +5 -1
- package/dist/_internal/types/arguments/generated/_dispatcher/data_component_existence_predicate.d.ts +19 -0
- package/dist/_internal/types/arguments/generated/_dispatcher/resource.d.ts +24 -1
- package/dist/_internal/types/arguments/generated/_registry/advancements.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/atlases.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/attributes.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/block_definitions.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/block_entity_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/block_predicate_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/block_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/blocks.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/cat_sound_variants.d.ts +4 -0
- package/dist/_internal/types/arguments/generated/_registry/chicken_sound_variants.d.ts +4 -0
- package/dist/_internal/types/arguments/generated/_registry/chunk_statuses.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/command_argument_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/cow_sound_variants.d.ts +4 -0
- package/dist/_internal/types/arguments/generated/_registry/damage_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/data_component_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/entity_sub_predicate_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/entity_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/game_events.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/game_rules.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/item_definitions.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/items.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/jukebox_songs.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/langs.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/loot_pool_entry_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/loot_tables.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/models.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/particle_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/pig_sound_variants.d.ts +4 -0
- package/dist/_internal/types/arguments/generated/_registry/recipes.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/sound_events.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/sounds.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/structures.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/sulfur_cube_archetypes.d.ts +4 -0
- package/dist/_internal/types/arguments/generated/_registry/tag_blocks.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/tag_damage_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/tag_entity_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/tag_items.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/test_environment_definition_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/textures.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/translation_keys.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/trigger_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/trim_patterns.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/villager_trades.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/wolf_sound_variants.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/wolf_variants.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_biomes.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_configured_carvers.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_configured_features.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_density_function_types.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_features.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_noises.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_placed_features.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/_registry/worldgen_world_presets.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/assets/atlas.d.ts +11 -2
- package/dist/_internal/types/arguments/generated/assets/block_state_definition.d.ts +25 -0
- package/dist/_internal/types/arguments/generated/assets/credits.d.ts +53 -0
- package/dist/_internal/types/arguments/generated/assets/equipment.d.ts +4 -5
- package/dist/_internal/types/arguments/generated/assets/item_definition.d.ts +29 -31
- package/dist/_internal/types/arguments/generated/assets/model.d.ts +126 -0
- package/dist/_internal/types/arguments/generated/assets/shader/program.d.ts +3 -0
- package/dist/_internal/types/arguments/generated/assets/sounds.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/assets/texture_meta.d.ts +168 -28
- package/dist/_internal/types/arguments/generated/data/advancement/predicate.d.ts +170 -56
- package/dist/_internal/types/arguments/generated/data/advancement/trigger.d.ts +18 -0
- package/dist/_internal/types/arguments/generated/data/advancement.d.ts +7 -4
- package/dist/_internal/types/arguments/generated/data/chat_type.d.ts +7 -2
- package/dist/_internal/types/arguments/generated/data/decorated_pot_pattern.d.ts +8 -0
- package/dist/_internal/types/arguments/generated/data/dialog/input.d.ts +21 -0
- package/dist/_internal/types/arguments/generated/data/dialog.d.ts +5 -5
- package/dist/_internal/types/arguments/generated/data/enchantment/effect_component.d.ts +25 -25
- package/dist/_internal/types/arguments/generated/data/gametest/test_environment.d.ts +19 -1
- package/dist/_internal/types/arguments/generated/data/gametest.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/data/item_modifier.d.ts +2 -1
- package/dist/_internal/types/arguments/generated/data/loot/condition.d.ts +84 -86
- package/dist/_internal/types/arguments/generated/data/loot/function.d.ts +261 -232
- package/dist/_internal/types/arguments/generated/data/loot.d.ts +10 -13
- package/dist/_internal/types/arguments/generated/data/predicate.d.ts +2 -1
- package/dist/_internal/types/arguments/generated/data/recipe.d.ts +58 -1
- package/dist/_internal/types/arguments/generated/data/slot_source.d.ts +91 -0
- package/dist/_internal/types/arguments/generated/data/structure.d.ts +59 -0
- package/dist/_internal/types/arguments/generated/data/sulfur_cube_archetype.d.ts +84 -0
- package/dist/_internal/types/arguments/generated/data/trim.d.ts +7 -1
- package/dist/_internal/types/arguments/generated/data/util.d.ts +7 -0
- package/dist/_internal/types/arguments/generated/data/variants/painting.d.ts +2 -2
- package/dist/_internal/types/arguments/generated/data/villager_trade.d.ts +4 -4
- package/dist/_internal/types/arguments/generated/data/worldgen/biome.d.ts +18 -0
- package/dist/_internal/types/arguments/generated/data/worldgen/carver.d.ts +24 -0
- package/dist/_internal/types/arguments/generated/data/worldgen/density_function.d.ts +28 -2
- package/dist/_internal/types/arguments/generated/data/worldgen/dimension/biome_source.d.ts +4 -0
- package/dist/_internal/types/arguments/generated/data/worldgen/dimension.d.ts +2 -2
- package/dist/_internal/types/arguments/generated/data/worldgen/feature/block_predicate.d.ts +7 -1
- package/dist/_internal/types/arguments/generated/data/worldgen/feature/tree.d.ts +54 -6
- package/dist/_internal/types/arguments/generated/data/worldgen/feature.d.ts +285 -115
- package/dist/_internal/types/arguments/generated/data/worldgen/material_condition.d.ts +93 -0
- package/dist/_internal/types/arguments/generated/data/worldgen/material_rule.d.ts +35 -0
- package/dist/_internal/types/arguments/generated/data/worldgen/noise_settings.d.ts +6 -2
- package/dist/_internal/types/arguments/generated/data/worldgen/processor_list.d.ts +18 -2
- package/dist/_internal/types/arguments/generated/data/worldgen/structure.d.ts +72 -2
- package/dist/_internal/types/arguments/generated/data/worldgen/structure_set.d.ts +4 -4
- package/dist/_internal/types/arguments/generated/dispatcher.d.ts +5 -3
- package/dist/_internal/types/arguments/generated/pack.d.ts +7 -0
- package/dist/_internal/types/arguments/generated/registry-sets.d.ts +9 -4
- package/dist/_internal/types/arguments/generated/registry.d.ts +15 -5
- package/dist/_internal/types/arguments/generated/resource-paths.d.ts +15 -0
- package/dist/_internal/types/arguments/generated/resources.d.ts +13 -1
- package/dist/_internal/types/arguments/generated/util/effect.d.ts +105 -3
- package/dist/_internal/types/arguments/generated/util/particle.d.ts +72 -1
- package/dist/_internal/types/arguments/generated/util/slot.d.ts +1 -84
- package/dist/_internal/types/arguments/generated/util/text.d.ts +191 -1
- package/dist/_internal/types/arguments/generated/util.d.ts +1 -0
- package/dist/_internal/types/arguments/generated/world/block/decorated_pot.d.ts +3 -5
- package/dist/_internal/types/arguments/generated/world/block/furnace.d.ts +3 -0
- package/dist/_internal/types/arguments/generated/world/block/potent_sulfur.d.ts +10 -0
- package/dist/_internal/types/arguments/generated/world/block/test_instance_block.d.ts +46 -1
- package/dist/_internal/types/arguments/generated/world/block/vault.d.ts +59 -0
- package/dist/_internal/types/arguments/generated/world/component/block.d.ts +6 -0
- package/dist/_internal/types/arguments/generated/world/component/item.d.ts +21 -6
- package/dist/_internal/types/arguments/generated/world/component/predicate.d.ts +4 -1
- package/dist/_internal/types/arguments/generated/world/component.d.ts +2 -1
- package/dist/_internal/types/arguments/generated/world/entity/boat.d.ts +15 -2
- package/dist/_internal/types/arguments/generated/world/entity/display.d.ts +34 -0
- package/dist/_internal/types/arguments/generated/world/entity/mob/breedable/chicken.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/world/entity/mob/breedable/cow.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/world/entity/mob/breedable/saddled.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/world/entity/mob/breedable/tamable.d.ts +1 -1
- package/dist/_internal/types/arguments/generated/world/entity/mob/copper_golem.d.ts +3 -3
- package/dist/_internal/types/arguments/generated/world/entity/mob/happy_ghast.d.ts +5 -0
- package/dist/_internal/types/arguments/generated/world/entity/mob/player.d.ts +21 -0
- package/dist/_internal/types/arguments/generated/world/entity/mob/shulker.d.ts +2 -2
- package/dist/_internal/types/arguments/generated/world/entity/mob/slime.d.ts +20 -2
- package/dist/_internal/types/arguments/generated/world/entity/mob.d.ts +50 -7
- package/dist/_internal/types/arguments/generated/world/item/map.d.ts +12 -0
- package/dist/_internal/types/arguments/generated/world/item/shield.d.ts +26 -0
- package/dist/_internal/types/core/resources/datapack/decoratedPotPattern.d.ts +24 -0
- package/dist/_internal/types/core/resources/datapack/index.d.ts +3 -0
- package/dist/_internal/types/core/resources/datapack/slotSource.d.ts +24 -0
- package/dist/_internal/types/core/resources/datapack/sulfurCubeArchetype.d.ts +24 -0
- package/dist/_internal/types/pack/pack.d.ts +5 -2
- package/dist/_internal/types/variables/ResolveNBT.d.ts +1 -1
- package/dist/browser/sandstone.esm.js +1961 -306
- package/dist/browser/sandstone.esm.js.map +1 -1
- package/dist/exports/arguments/index.d.ts +1 -1
- package/dist/exports/arguments/index.js +1 -1
- package/dist/exports/core/index.d.ts +1 -1
- package/dist/exports/core/index.js +1 -1
- package/dist/exports/index.d.ts +1 -1
- package/dist/exports/index.js +1 -1
- package/package.json +2 -2
- package/src/arguments/generated/_builtin/block_state_keys.ts +112 -0
- package/src/arguments/generated/_builtin/block_states.ts +208 -0
- package/src/arguments/generated/_dispatcher/block.ts +68 -20
- package/src/arguments/generated/_dispatcher/block_entity.ts +5 -0
- package/src/arguments/generated/_dispatcher/data_component_existence_predicate.ts +34 -0
- package/src/arguments/generated/_dispatcher/resource.ts +29 -0
- package/src/arguments/generated/_registry/advancements.ts +71 -0
- package/src/arguments/generated/_registry/atlases.ts +0 -2
- package/src/arguments/generated/_registry/attributes.ts +5 -0
- package/src/arguments/generated/_registry/block_definitions.ts +28 -0
- package/src/arguments/generated/_registry/block_entity_types.ts +1 -1
- package/src/arguments/generated/_registry/block_predicate_types.ts +1 -0
- package/src/arguments/generated/_registry/block_types.ts +3 -1
- package/src/arguments/generated/_registry/blocks.ts +28 -0
- package/src/arguments/generated/_registry/cat_sound_variants.ts +11 -0
- package/src/arguments/generated/_registry/chicken_sound_variants.ts +11 -0
- package/src/arguments/generated/_registry/command_argument_types.ts +1 -1
- package/src/arguments/generated/_registry/cow_sound_variants.ts +11 -0
- package/src/arguments/generated/_registry/damage_types.ts +1 -0
- package/src/arguments/generated/_registry/data_component_types.ts +1 -0
- package/src/arguments/generated/_registry/entity_sub_predicate_types.ts +25 -6
- package/src/arguments/generated/_registry/entity_types.ts +1 -0
- package/src/arguments/generated/_registry/game_events.ts +1 -0
- package/src/arguments/generated/_registry/item_definitions.ts +31 -0
- package/src/arguments/generated/_registry/items.ts +31 -0
- package/src/arguments/generated/_registry/jukebox_songs.ts +1 -0
- package/src/arguments/generated/_registry/langs.ts +5 -0
- package/src/arguments/generated/_registry/loot_tables.ts +29 -0
- package/src/arguments/generated/_registry/models.ts +294 -42
- package/src/arguments/generated/_registry/particle_types.ts +8 -0
- package/src/arguments/generated/_registry/pig_sound_variants.ts +12 -0
- package/src/arguments/generated/_registry/recipes.ts +70 -0
- package/src/arguments/generated/_registry/sound_events.ts +66 -0
- package/src/arguments/generated/_registry/sounds.ts +307 -0
- package/src/arguments/generated/_registry/structures.ts +10 -0
- package/src/arguments/generated/_registry/sulfur_cube_archetypes.ts +21 -0
- package/src/arguments/generated/_registry/tag_blocks.ts +18 -1
- package/src/arguments/generated/_registry/tag_damage_types.ts +1 -0
- package/src/arguments/generated/_registry/tag_entity_types.ts +1 -0
- package/src/arguments/generated/_registry/tag_items.ts +17 -0
- package/src/arguments/generated/_registry/test_environment_definition_types.ts +1 -0
- package/src/arguments/generated/_registry/textures.ts +233 -42
- package/src/arguments/generated/_registry/translation_keys.ts +316 -72
- package/src/arguments/generated/_registry/villager_trades.ts +1 -0
- package/src/arguments/generated/_registry/worldgen_biomes.ts +1 -0
- package/src/arguments/generated/_registry/worldgen_configured_features.ts +5 -0
- package/src/arguments/generated/_registry/worldgen_density_function_types.ts +1 -1
- package/src/arguments/generated/_registry/worldgen_features.ts +5 -2
- package/src/arguments/generated/_registry/worldgen_noises.ts +1 -0
- package/src/arguments/generated/_registry/worldgen_placed_features.ts +4 -0
- package/src/arguments/generated/_registry/worldgen_world_presets.ts +1 -0
- package/src/arguments/generated/assets/atlas.ts +14 -2
- package/src/arguments/generated/assets/block_state_definition.ts +30 -0
- package/src/arguments/generated/assets/credits.ts +56 -0
- package/src/arguments/generated/assets/equipment.ts +4 -5
- package/src/arguments/generated/assets/item_definition.ts +31 -31
- package/src/arguments/generated/assets/model.ts +133 -0
- package/src/arguments/generated/assets/shader/program.ts +4 -0
- package/src/arguments/generated/assets/sounds.ts +1 -1
- package/src/arguments/generated/assets/texture_meta.ts +174 -28
- package/src/arguments/generated/data/advancement/predicate.ts +218 -58
- package/src/arguments/generated/data/advancement/trigger.ts +20 -0
- package/src/arguments/generated/data/advancement.ts +8 -4
- package/src/arguments/generated/data/chat_type.ts +8 -2
- package/src/arguments/generated/data/decorated_pot_pattern.ts +8 -0
- package/src/arguments/generated/data/dialog/input.ts +22 -0
- package/src/arguments/generated/data/dialog.ts +5 -5
- package/src/arguments/generated/data/enchantment/effect_component.ts +25 -25
- package/src/arguments/generated/data/gametest/test_environment.ts +24 -0
- package/src/arguments/generated/data/gametest.ts +1 -2
- package/src/arguments/generated/data/item_modifier.ts +3 -1
- package/src/arguments/generated/data/loot/condition.ts +129 -112
- package/src/arguments/generated/data/loot/function.ts +362 -280
- package/src/arguments/generated/data/loot.ts +14 -13
- package/src/arguments/generated/data/predicate.ts +3 -1
- package/src/arguments/generated/data/recipe.ts +66 -1
- package/src/arguments/generated/data/slot_source.ts +119 -0
- package/src/arguments/generated/data/structure.ts +63 -0
- package/src/arguments/generated/data/sulfur_cube_archetype.ts +92 -0
- package/src/arguments/generated/data/trim.ts +9 -1
- package/src/arguments/generated/data/util.ts +8 -0
- package/src/arguments/generated/data/variants/painting.ts +2 -2
- package/src/arguments/generated/data/villager_trade.ts +4 -4
- package/src/arguments/generated/data/worldgen/biome.ts +24 -0
- package/src/arguments/generated/data/worldgen/carver.ts +28 -0
- package/src/arguments/generated/data/worldgen/density_function.ts +29 -1
- package/src/arguments/generated/data/worldgen/dimension/biome_source.ts +5 -0
- package/src/arguments/generated/data/worldgen/dimension.ts +4 -2
- package/src/arguments/generated/data/worldgen/feature/block_predicate.ts +8 -0
- package/src/arguments/generated/data/worldgen/feature/tree.ts +58 -4
- package/src/arguments/generated/data/worldgen/feature.ts +320 -124
- package/src/arguments/generated/data/worldgen/material_condition.ts +119 -0
- package/src/arguments/generated/data/worldgen/material_rule.ts +52 -0
- package/src/arguments/generated/data/worldgen/noise_settings.ts +7 -2
- package/src/arguments/generated/data/worldgen/processor_list.ts +24 -1
- package/src/arguments/generated/data/worldgen/structure.ts +79 -2
- package/src/arguments/generated/data/worldgen/structure_set.ts +13 -4
- package/src/arguments/generated/dispatcher.ts +11 -4
- package/src/arguments/generated/pack.ts +8 -0
- package/src/arguments/generated/registry-sets.ts +18 -8
- package/src/arguments/generated/registry.ts +27 -4
- package/src/arguments/generated/resource-paths.ts +3 -0
- package/src/arguments/generated/resources.ts +6 -0
- package/src/arguments/generated/util/effect.ts +107 -3
- package/src/arguments/generated/util/particle.ts +80 -0
- package/src/arguments/generated/util/slot.ts +1 -103
- package/src/arguments/generated/util/text.ts +207 -0
- package/src/arguments/generated/util.ts +2 -0
- package/src/arguments/generated/world/block/decorated_pot.ts +3 -5
- package/src/arguments/generated/world/block/furnace.ts +4 -0
- package/src/arguments/generated/world/block/potent_sulfur.ts +11 -0
- package/src/arguments/generated/world/block/test_instance_block.ts +48 -1
- package/src/arguments/generated/world/block/vault.ts +62 -0
- package/src/arguments/generated/world/component/block.ts +7 -0
- package/src/arguments/generated/world/component/item.ts +28 -5
- package/src/arguments/generated/world/component/predicate.ts +6 -0
- package/src/arguments/generated/world/component.ts +4 -1
- package/src/arguments/generated/world/entity/boat.ts +18 -1
- package/src/arguments/generated/world/entity/display.ts +35 -0
- package/src/arguments/generated/world/entity/mob/breedable/chicken.ts +1 -1
- package/src/arguments/generated/world/entity/mob/breedable/cow.ts +1 -1
- package/src/arguments/generated/world/entity/mob/breedable/saddled.ts +1 -1
- package/src/arguments/generated/world/entity/mob/breedable/tamable.ts +1 -1
- package/src/arguments/generated/world/entity/mob/copper_golem.ts +3 -3
- package/src/arguments/generated/world/entity/mob/happy_ghast.ts +6 -0
- package/src/arguments/generated/world/entity/mob/player.ts +21 -0
- package/src/arguments/generated/world/entity/mob/shulker.ts +2 -2
- package/src/arguments/generated/world/entity/mob/slime.ts +22 -2
- package/src/arguments/generated/world/entity/mob.ts +53 -7
- package/src/arguments/generated/world/item/map.ts +14 -0
- package/src/arguments/generated/world/item/shield.ts +27 -0
- package/src/core/resources/datapack/decoratedPotPattern.ts +47 -0
- package/src/core/resources/datapack/index.ts +3 -0
- package/src/core/resources/datapack/slotSource.ts +47 -0
- package/src/core/resources/datapack/sulfurCubeArchetype.ts +47 -0
- package/src/pack/pack.ts +33 -0
- package/src/sandstone.ts +24 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ItemPredicate } from "../advancement/predicate.js";
|
|
2
|
-
import type { BlockEntityTarget, EntityTarget, ItemStackTarget,
|
|
2
|
+
import type { BlockEntityTarget, EntityTarget, ItemStackTarget, LootFunction, LootPoolEntry } from "./.js";
|
|
3
|
+
import type { LootConditionOf } from "./condition.js";
|
|
3
4
|
import type { IntRange, NbtProvider, NumberProvider } from "../util.js";
|
|
4
5
|
import type { SymbolDataComponent, SymbolMcdocBlockStateKeys } from "../../dispatcher.js";
|
|
5
6
|
import type { Registry } from "../../registry.js";
|
|
@@ -10,9 +11,9 @@ import type { EquipmentSlotGroup } from "../../util/slot.js";
|
|
|
10
11
|
import type { Text } from "../../util/text.js";
|
|
11
12
|
import type { CustomData, DataComponentPatch } from "../../world/component.js";
|
|
12
13
|
import type { FireworkShape } from "../../world/component/item.js";
|
|
13
|
-
import type { RootNBT } from "../../../nbt.js";
|
|
14
|
+
import type { NBTObject, RootNBT } from "../../../nbt.js";
|
|
14
15
|
import type { BannerPatternClass, DataPointClass, EnchantmentClass, InstrumentClass, ItemModifierClass, LootTableClass, NBTClass, NBTFloat, NBTInt, NBTLong, TagClass } from "../../../../../index.js";
|
|
15
|
-
export type ApplyBonus = NonNullable<({
|
|
16
|
+
export type ApplyBonus<F extends NBTObject, C extends NBTObject> = NonNullable<({
|
|
16
17
|
[S in Extract<ApplyBonusFormula, string>]?: ({
|
|
17
18
|
enchantment: (Registry['minecraft:enchantment'] | EnchantmentClass);
|
|
18
19
|
/**
|
|
@@ -23,7 +24,7 @@ export type ApplyBonus = NonNullable<({
|
|
|
23
24
|
* - BinomialWithBonusCount(`binomial_with_bonus_count`)
|
|
24
25
|
*/
|
|
25
26
|
formula: (S | `minecraft:${S}`);
|
|
26
|
-
} & (S extends keyof SymbolApplyBonusFormula ? SymbolApplyBonusFormula[S] : RootNBT) & Conditions);
|
|
27
|
+
} & (S extends keyof SymbolApplyBonusFormula ? SymbolApplyBonusFormula[S] : RootNBT) & Conditions<C>);
|
|
27
28
|
}[ApplyBonusFormula])>;
|
|
28
29
|
export type ApplyBonusFormula = ('ore_drops' | 'uniform_bonus_count' | 'binomial_with_bonus_count');
|
|
29
30
|
export type AttributeModifier = ({
|
|
@@ -105,11 +106,11 @@ export type BinomialWithBonusCountFormula = {
|
|
|
105
106
|
}>;
|
|
106
107
|
};
|
|
107
108
|
};
|
|
108
|
-
export type Conditions = {
|
|
109
|
-
conditions?: Array<
|
|
109
|
+
export type Conditions<C extends NBTObject> = {
|
|
110
|
+
conditions?: Array<LootConditionOf<C>>;
|
|
110
111
|
};
|
|
111
112
|
export type ContainerComponents = ('container' | 'bundle_contents' | 'charged_projectiles');
|
|
112
|
-
export type CopyComponents = ({
|
|
113
|
+
export type CopyComponents<F extends NBTObject, C extends NBTObject> = ({
|
|
113
114
|
/**
|
|
114
115
|
* Value:
|
|
115
116
|
* *either*
|
|
@@ -133,8 +134,8 @@ export type CopyComponents = ({
|
|
|
133
134
|
* Defaults to none.
|
|
134
135
|
*/
|
|
135
136
|
exclude?: Array<Registry['minecraft:data_component_type']>;
|
|
136
|
-
} & Conditions);
|
|
137
|
-
export type CopyName = ({
|
|
137
|
+
} & Conditions<C>);
|
|
138
|
+
export type CopyName<F extends NBTObject, C extends NBTObject> = ({
|
|
138
139
|
/**
|
|
139
140
|
* Value:
|
|
140
141
|
* *either*
|
|
@@ -146,9 +147,9 @@ export type CopyName = ({
|
|
|
146
147
|
* *item 1*
|
|
147
148
|
*/
|
|
148
149
|
source: (EntityTarget | BlockEntityTarget);
|
|
149
|
-
} & Conditions);
|
|
150
|
+
} & Conditions<C>);
|
|
150
151
|
export type CopyNameSource = ('this' | 'killer' | 'attacking_entity' | 'killer_player' | 'last_damage_player' | 'block_entity');
|
|
151
|
-
export type CopyNbt = ({
|
|
152
|
+
export type CopyNbt<C extends NBTObject> = ({
|
|
152
153
|
source: NbtProvider;
|
|
153
154
|
ops: Array<{
|
|
154
155
|
source: `${any}${string}` | DataPointClass;
|
|
@@ -162,14 +163,38 @@ export type CopyNbt = ({
|
|
|
162
163
|
*/
|
|
163
164
|
op: CopyNbtStrategy;
|
|
164
165
|
}>;
|
|
165
|
-
} & Conditions);
|
|
166
|
+
} & Conditions<C>);
|
|
167
|
+
export type CopyNbtOperation = {
|
|
168
|
+
source: `${any}${string}` | DataPointClass;
|
|
169
|
+
target: `${any}${string}` | DataPointClass;
|
|
170
|
+
/**
|
|
171
|
+
* Value:
|
|
172
|
+
*
|
|
173
|
+
* - Replace(`replace`): Replace any existing contents of the target.
|
|
174
|
+
* - Append(`append`): Append to a list.
|
|
175
|
+
* - Merge(`merge`): Merge into a compound tag.
|
|
176
|
+
*/
|
|
177
|
+
op: CopyNbtStrategy;
|
|
178
|
+
};
|
|
166
179
|
export type CopyNbtStrategy = ('replace' | 'append' | 'merge');
|
|
167
|
-
export type CopyState = NonNullable<({
|
|
180
|
+
export type CopyState<F extends NBTObject, C extends NBTObject> = NonNullable<({
|
|
168
181
|
[S in Extract<Registry['minecraft:block'], string>]?: ({
|
|
169
182
|
block: S;
|
|
170
183
|
properties: Array<(S extends undefined ? SymbolMcdocBlockStateKeys<'%none'> : (S extends keyof SymbolMcdocBlockStateKeys ? SymbolMcdocBlockStateKeys[S] : SymbolMcdocBlockStateKeys<'%unknown'>))>;
|
|
171
|
-
} & Conditions);
|
|
184
|
+
} & Conditions<C>);
|
|
172
185
|
}[Registry['minecraft:block']])>;
|
|
186
|
+
export type CustomModelDataColors = ({
|
|
187
|
+
values: Array<(NumberProvider | RGB)>;
|
|
188
|
+
} & ListOperation);
|
|
189
|
+
export type CustomModelDataFlags = ({
|
|
190
|
+
values: Array<boolean>;
|
|
191
|
+
} & ListOperation);
|
|
192
|
+
export type CustomModelDataFloats = ({
|
|
193
|
+
values: Array<NumberProvider>;
|
|
194
|
+
} & ListOperation);
|
|
195
|
+
export type CustomModelDataStrings = ({
|
|
196
|
+
values: Array<string>;
|
|
197
|
+
} & ListOperation);
|
|
173
198
|
export type EnchantedCountBase = {
|
|
174
199
|
/**
|
|
175
200
|
* If the number is fractional the result is rounded *after* the number was multiplied by the looting level.
|
|
@@ -180,13 +205,13 @@ export type EnchantedCountBase = {
|
|
|
180
205
|
*/
|
|
181
206
|
limit?: NBTInt;
|
|
182
207
|
};
|
|
183
|
-
export type EnchantedCountIncrease = (EnchantedCountBase & {
|
|
208
|
+
export type EnchantedCountIncrease<F extends NBTObject, C extends NBTObject> = (EnchantedCountBase & {
|
|
184
209
|
/**
|
|
185
210
|
* Enchantment that increases yields.
|
|
186
211
|
*/
|
|
187
212
|
enchantment: (Registry['minecraft:enchantment'] | EnchantmentClass);
|
|
188
|
-
} & Conditions);
|
|
189
|
-
export type EnchantRandomly = ({
|
|
213
|
+
} & Conditions<C>);
|
|
214
|
+
export type EnchantRandomly<F extends NBTObject, C extends NBTObject> = ({
|
|
190
215
|
/**
|
|
191
216
|
* The allowed enchantments. If omitted, all enchantments applicable to the item are possible.
|
|
192
217
|
*/
|
|
@@ -203,8 +228,8 @@ export type EnchantRandomly = ({
|
|
|
203
228
|
* Defaults to `false`.
|
|
204
229
|
*/
|
|
205
230
|
include_additional_cost_component?: boolean;
|
|
206
|
-
} & Conditions);
|
|
207
|
-
export type EnchantWithLevels = ({
|
|
231
|
+
} & Conditions<C>);
|
|
232
|
+
export type EnchantWithLevels<F extends NBTObject, C extends NBTObject> = ({
|
|
208
233
|
/**
|
|
209
234
|
* The levels to enchant this item with.
|
|
210
235
|
*/
|
|
@@ -219,8 +244,8 @@ export type EnchantWithLevels = ({
|
|
|
219
244
|
* Defaults to `false`.
|
|
220
245
|
*/
|
|
221
246
|
include_additional_cost_component?: boolean;
|
|
222
|
-
} & Conditions);
|
|
223
|
-
export type ExplorationMap = ({
|
|
247
|
+
} & Conditions<C>);
|
|
248
|
+
export type ExplorationMap<F extends NBTObject, C extends NBTObject> = ({
|
|
224
249
|
/**
|
|
225
250
|
* Generated structure to locate. Accepts any of the structure types used by the `/locate` command. Defaults to buried treasure.
|
|
226
251
|
*/
|
|
@@ -245,8 +270,8 @@ export type ExplorationMap = ({
|
|
|
245
270
|
* Whether to not search in chunks that have already been generated. Defaults to `true`.
|
|
246
271
|
*/
|
|
247
272
|
skip_existing_chunks?: boolean;
|
|
248
|
-
} & Conditions);
|
|
249
|
-
export type FillPlayerHead = ({
|
|
273
|
+
} & Conditions<C>);
|
|
274
|
+
export type FillPlayerHead<F extends NBTObject, C extends NBTObject> = ({
|
|
250
275
|
/**
|
|
251
276
|
* `this` to use the entity that died or the player that gained the advancement, opened the container, or broke the block.
|
|
252
277
|
*
|
|
@@ -263,8 +288,8 @@ export type FillPlayerHead = ({
|
|
|
263
288
|
* - InteractingEntity(`interacting_entity`)
|
|
264
289
|
*/
|
|
265
290
|
entity: EntityTarget;
|
|
266
|
-
} & Conditions);
|
|
267
|
-
export type Filtered = ({
|
|
291
|
+
} & Conditions<C>);
|
|
292
|
+
export type Filtered<F extends NBTObject, C extends NBTObject> = ({
|
|
268
293
|
/**
|
|
269
294
|
* Item predicate to select items to modify.
|
|
270
295
|
*/
|
|
@@ -272,12 +297,15 @@ export type Filtered = ({
|
|
|
272
297
|
/**
|
|
273
298
|
* Loot function to apply to the item when `item_filter` passes.
|
|
274
299
|
*/
|
|
275
|
-
on_pass?: (
|
|
300
|
+
on_pass?: (LootFunctionOf<F, C> | Array<LootFunctionOf<F, C>>);
|
|
276
301
|
/**
|
|
277
302
|
* Loot function to apply to the item when `item_filter` fails.
|
|
278
303
|
*/
|
|
279
|
-
on_fail?: (
|
|
280
|
-
} & Conditions);
|
|
304
|
+
on_fail?: (LootFunctionOf<F, C> | Array<LootFunctionOf<F, C>>);
|
|
305
|
+
} & Conditions<C>);
|
|
306
|
+
export type FireworkExplosions = ({
|
|
307
|
+
values: Array<SymbolDataComponent['firework_explosion']>;
|
|
308
|
+
} & ListOperation);
|
|
281
309
|
export type InsertListOperation = {
|
|
282
310
|
/**
|
|
283
311
|
* The offset in the list to insert into. Defaults to 0.
|
|
@@ -289,12 +317,12 @@ export type InsertListOperation = {
|
|
|
289
317
|
min: 0;
|
|
290
318
|
}>;
|
|
291
319
|
};
|
|
292
|
-
export type LimitCount = ({
|
|
320
|
+
export type LimitCount<F extends NBTObject, C extends NBTObject> = ({
|
|
293
321
|
/**
|
|
294
322
|
* Limits the count of the item to a range.
|
|
295
323
|
*/
|
|
296
324
|
limit: IntRange;
|
|
297
|
-
} & Conditions);
|
|
325
|
+
} & Conditions<C>);
|
|
298
326
|
export type ListOperation = NonNullable<({
|
|
299
327
|
[S in Extract<ListOperationMode, string>]?: ({
|
|
300
328
|
/**
|
|
@@ -311,9 +339,10 @@ export type ListOperation = NonNullable<({
|
|
|
311
339
|
} & (S extends keyof SymbolListOperation ? SymbolListOperation[S] : RootNBT));
|
|
312
340
|
}[ListOperationMode])>;
|
|
313
341
|
export type ListOperationMode = ('append' | 'insert' | 'replace_all' | 'replace_section');
|
|
314
|
-
export type
|
|
342
|
+
export type LootFunctionOf<F extends NBTObject, C extends NBTObject> = LootFunction[];
|
|
343
|
+
export type LootingEnchant<F extends NBTObject, C extends NBTObject> = (EnchantedCountBase & Conditions<C>);
|
|
315
344
|
export type MapDecoration = ('mansion' | 'monument' | 'player' | 'frame' | 'red_marker' | 'blue_marker' | 'target_x' | 'target_point' | 'player_off_map' | 'player_off_limits' | 'red_x' | 'banner_white' | 'banner_orange' | 'banner_magenta' | 'banner_light_blue' | 'banner_yellow' | 'banner_lime' | 'banner_pink' | 'banner_gray' | 'banner_light_gray' | 'banner_cyan' | 'banner_purple' | 'banner_blue' | 'banner_brown' | 'banner_green' | 'banner_red' | 'banner_black');
|
|
316
|
-
export type ModifyContents = ({
|
|
345
|
+
export type ModifyContents<F extends NBTObject, C extends NBTObject> = ({
|
|
317
346
|
/**
|
|
318
347
|
* Describes target component's items to modify.
|
|
319
348
|
*
|
|
@@ -327,14 +356,14 @@ export type ModifyContents = ({
|
|
|
327
356
|
/**
|
|
328
357
|
* Applied to every item inside container.
|
|
329
358
|
*/
|
|
330
|
-
modifier: (
|
|
331
|
-
} & Conditions);
|
|
332
|
-
export type Reference = ({
|
|
359
|
+
modifier: (LootFunctionOf<F, C> | Array<LootFunctionOf<F, C>>);
|
|
360
|
+
} & Conditions<C>);
|
|
361
|
+
export type Reference<F extends NBTObject, C extends NBTObject> = ({
|
|
333
362
|
/**
|
|
334
363
|
* Item modifier to reference.
|
|
335
364
|
*/
|
|
336
365
|
name: (`${string}:${string}` | ItemModifierClass);
|
|
337
|
-
} & Conditions);
|
|
366
|
+
} & Conditions<C>);
|
|
338
367
|
export type ReplaceSectionListOperation = {
|
|
339
368
|
/**
|
|
340
369
|
* The offset of the section to replace. Defaults to 0.
|
|
@@ -355,13 +384,13 @@ export type ReplaceSectionListOperation = {
|
|
|
355
384
|
min: 0;
|
|
356
385
|
}>;
|
|
357
386
|
};
|
|
358
|
-
export type Sequence = {
|
|
387
|
+
export type Sequence<F extends NBTObject, C extends NBTObject> = {
|
|
359
388
|
/**
|
|
360
389
|
* List of functions to apply to this item.
|
|
361
390
|
*/
|
|
362
|
-
functions: Array<
|
|
391
|
+
functions: Array<LootFunctionOf<F, C>>;
|
|
363
392
|
};
|
|
364
|
-
export type SetAttributes = ({
|
|
393
|
+
export type SetAttributes<F extends NBTObject, C extends NBTObject> = ({
|
|
365
394
|
/**
|
|
366
395
|
* List of attribute modifiers to apply to this item.
|
|
367
396
|
*/
|
|
@@ -370,8 +399,8 @@ export type SetAttributes = ({
|
|
|
370
399
|
* Whether to replace existing attributes (otherwise append to existing). Defaults to `true`.
|
|
371
400
|
*/
|
|
372
401
|
replace?: boolean;
|
|
373
|
-
} & Conditions);
|
|
374
|
-
export type SetBannerPattern = ({
|
|
402
|
+
} & Conditions<C>);
|
|
403
|
+
export type SetBannerPattern<F extends NBTObject, C extends NBTObject> = ({
|
|
375
404
|
/**
|
|
376
405
|
* List of banner pattern layers.
|
|
377
406
|
*/
|
|
@@ -380,8 +409,8 @@ export type SetBannerPattern = ({
|
|
|
380
409
|
* Whether to add to the banner pattern list.
|
|
381
410
|
*/
|
|
382
411
|
append: boolean;
|
|
383
|
-
} & Conditions);
|
|
384
|
-
export type SetBookCover = ({
|
|
412
|
+
} & Conditions<C>);
|
|
413
|
+
export type SetBookCover<F extends NBTObject, C extends NBTObject> = ({
|
|
385
414
|
/**
|
|
386
415
|
* If omitted, the original title is kept (or an empty string is used if there was no component)
|
|
387
416
|
*/
|
|
@@ -400,11 +429,11 @@ export type SetBookCover = ({
|
|
|
400
429
|
min: 0;
|
|
401
430
|
max: 3;
|
|
402
431
|
}>;
|
|
403
|
-
} & Conditions);
|
|
404
|
-
export type SetComponents = ({
|
|
432
|
+
} & Conditions<C>);
|
|
433
|
+
export type SetComponents<F extends NBTObject, C extends NBTObject> = ({
|
|
405
434
|
components: DataComponentPatch;
|
|
406
|
-
} & Conditions);
|
|
407
|
-
export type SetContents = ({
|
|
435
|
+
} & Conditions<C>);
|
|
436
|
+
export type SetContents<F extends NBTObject, C extends NBTObject> = ({
|
|
408
437
|
/**
|
|
409
438
|
* Describes target component to be filled with items.
|
|
410
439
|
*
|
|
@@ -416,18 +445,18 @@ export type SetContents = ({
|
|
|
416
445
|
*/
|
|
417
446
|
component: (ContainerComponents | `minecraft:${ContainerComponents}`);
|
|
418
447
|
entries: Array<LootPoolEntry>;
|
|
419
|
-
} & Conditions);
|
|
420
|
-
export type SetCount = ({
|
|
448
|
+
} & Conditions<C>);
|
|
449
|
+
export type SetCount<F extends NBTObject, C extends NBTObject> = ({
|
|
421
450
|
count: NumberProvider;
|
|
422
451
|
/**
|
|
423
452
|
* Whether to add to the existing count. Defaults to `false`.
|
|
424
453
|
*/
|
|
425
454
|
add?: boolean;
|
|
426
|
-
} & Conditions);
|
|
427
|
-
export type SetCustomData = ({
|
|
455
|
+
} & Conditions<C>);
|
|
456
|
+
export type SetCustomData<F extends NBTObject, C extends NBTObject> = ({
|
|
428
457
|
tag: CustomData;
|
|
429
|
-
} & Conditions);
|
|
430
|
-
export type SetCustomModelData = ({
|
|
458
|
+
} & Conditions<C>);
|
|
459
|
+
export type SetCustomModelData<F extends NBTObject, C extends NBTObject> = ({
|
|
431
460
|
floats?: ({
|
|
432
461
|
values: Array<NumberProvider>;
|
|
433
462
|
} & ListOperation);
|
|
@@ -440,8 +469,8 @@ export type SetCustomModelData = ({
|
|
|
440
469
|
colors?: ({
|
|
441
470
|
values: Array<(NumberProvider | RGB)>;
|
|
442
471
|
} & ListOperation);
|
|
443
|
-
} & Conditions);
|
|
444
|
-
export type SetDamage = ({
|
|
472
|
+
} & Conditions<C>);
|
|
473
|
+
export type SetDamage<F extends NBTObject, C extends NBTObject> = ({
|
|
445
474
|
/**
|
|
446
475
|
* Decimal percentage. Can be negative when used in combination with `add`. \
|
|
447
476
|
* Clamps to a float between `-1` & `1` (inclusive).
|
|
@@ -451,8 +480,8 @@ export type SetDamage = ({
|
|
|
451
480
|
* Whether to add to the existing damage of the item. Defaults to `false`.
|
|
452
481
|
*/
|
|
453
482
|
add?: boolean;
|
|
454
|
-
} & Conditions);
|
|
455
|
-
export type SetEnchantments = ({
|
|
483
|
+
} & Conditions<C>);
|
|
484
|
+
export type SetEnchantments<F extends NBTObject, C extends NBTObject> = ({
|
|
456
485
|
/**
|
|
457
486
|
* A map of enchantments to levels. Setting an enchantment to `0` removes it from the item. \
|
|
458
487
|
* Each level is clamped to a positive integer.
|
|
@@ -464,8 +493,8 @@ export type SetEnchantments = ({
|
|
|
464
493
|
* Whether to add to the level of each enchantment. Defaults to `false`.
|
|
465
494
|
*/
|
|
466
495
|
add?: boolean;
|
|
467
|
-
} & Conditions);
|
|
468
|
-
export type SetFireworkExplosion = ({
|
|
496
|
+
} & Conditions<C>);
|
|
497
|
+
export type SetFireworkExplosion<F extends NBTObject, C extends NBTObject> = ({
|
|
469
498
|
/**
|
|
470
499
|
* If omitted, the original shape is kept (or `small_ball` is used if there was no component).
|
|
471
500
|
*
|
|
@@ -496,8 +525,8 @@ export type SetFireworkExplosion = ({
|
|
|
496
525
|
* If omitted, the original `has_twinkle` value is kept (or `false` is used if there was no component).
|
|
497
526
|
*/
|
|
498
527
|
twinkle?: boolean;
|
|
499
|
-
} & Conditions);
|
|
500
|
-
export type SetFireworks = ({
|
|
528
|
+
} & Conditions<C>);
|
|
529
|
+
export type SetFireworks<F extends NBTObject, C extends NBTObject> = ({
|
|
501
530
|
/**
|
|
502
531
|
* If omitted, the flight duration of the item is left untouched - or set to 0 if the component did not exist before.
|
|
503
532
|
*
|
|
@@ -510,17 +539,17 @@ export type SetFireworks = ({
|
|
|
510
539
|
explosions?: ({
|
|
511
540
|
values: Array<SymbolDataComponent['firework_explosion']>;
|
|
512
541
|
} & ListOperation);
|
|
513
|
-
} & Conditions);
|
|
514
|
-
export type SetInstrument = ({
|
|
542
|
+
} & Conditions<C>);
|
|
543
|
+
export type SetInstrument<F extends NBTObject, C extends NBTObject> = ({
|
|
515
544
|
/**
|
|
516
545
|
* Sets the instrument tag for a goat horn.
|
|
517
546
|
*/
|
|
518
547
|
options: ((Registry['minecraft:instrument'] | `#${Registry['minecraft:tag/instrument']}` | TagClass<'instrument'> | InstrumentClass) | Array<(Registry['minecraft:instrument'] | InstrumentClass)>);
|
|
519
|
-
} & Conditions);
|
|
520
|
-
export type SetItem = ({
|
|
548
|
+
} & Conditions<C>);
|
|
549
|
+
export type SetItem<F extends NBTObject, C extends NBTObject> = ({
|
|
521
550
|
item: Registry['minecraft:item'];
|
|
522
|
-
} & Conditions);
|
|
523
|
-
export type SetLootTable = ({
|
|
551
|
+
} & Conditions<C>);
|
|
552
|
+
export type SetLootTable<F extends NBTObject, C extends NBTObject> = ({
|
|
524
553
|
/**
|
|
525
554
|
* The block entity type of the container.
|
|
526
555
|
*/
|
|
@@ -533,8 +562,8 @@ export type SetLootTable = ({
|
|
|
533
562
|
* The container seed to use. Defaults to a random seed.
|
|
534
563
|
*/
|
|
535
564
|
seed?: NBTLong;
|
|
536
|
-
} & Conditions);
|
|
537
|
-
export type SetLore = ({
|
|
565
|
+
} & Conditions<C>);
|
|
566
|
+
export type SetLore<F extends NBTObject, C extends NBTObject> = ({
|
|
538
567
|
/**
|
|
539
568
|
* The entity used to resolve the text components.
|
|
540
569
|
*
|
|
@@ -552,8 +581,8 @@ export type SetLore = ({
|
|
|
552
581
|
*/
|
|
553
582
|
entity?: EntityTarget;
|
|
554
583
|
lore: Array<Text>;
|
|
555
|
-
} & ListOperation & Conditions);
|
|
556
|
-
export type SetName = ({
|
|
584
|
+
} & ListOperation & Conditions<C>);
|
|
585
|
+
export type SetName<F extends NBTObject, C extends NBTObject> = ({
|
|
557
586
|
/**
|
|
558
587
|
* Specifies the entity to act as the target `@s` in the JSON text component.
|
|
559
588
|
*
|
|
@@ -580,53 +609,53 @@ export type SetName = ({
|
|
|
580
609
|
* - CustomName(`custom_name`)
|
|
581
610
|
*/
|
|
582
611
|
target?: SetNameTarget;
|
|
583
|
-
} & Conditions);
|
|
612
|
+
} & Conditions<C>);
|
|
584
613
|
export type SetNameTarget = ('item_name' | 'custom_name');
|
|
585
|
-
export type SetNbt = ({
|
|
614
|
+
export type SetNbt<F extends NBTObject, C extends NBTObject> = ({
|
|
586
615
|
tag: `${any}${string}` | NBTClass;
|
|
587
|
-
} & Conditions);
|
|
588
|
-
export type SetOminousBottleAmplifier = ({
|
|
616
|
+
} & Conditions<C>);
|
|
617
|
+
export type SetOminousBottleAmplifier<F extends NBTObject, C extends NBTObject> = ({
|
|
589
618
|
amplifier: NumberProvider;
|
|
590
|
-
} & Conditions);
|
|
591
|
-
export type SetPotion = ({
|
|
619
|
+
} & Conditions<C>);
|
|
620
|
+
export type SetPotion<F extends NBTObject, C extends NBTObject> = ({
|
|
592
621
|
/**
|
|
593
622
|
* The potion identifier.
|
|
594
623
|
*/
|
|
595
624
|
id: Registry['minecraft:potion'];
|
|
596
|
-
} & Conditions);
|
|
597
|
-
export type SetRandomDyes = ({
|
|
625
|
+
} & Conditions<C>);
|
|
626
|
+
export type SetRandomDyes<F extends NBTObject, C extends NBTObject> = ({
|
|
598
627
|
/**
|
|
599
628
|
* Applies specified number of random dyes to the item. \
|
|
600
629
|
* For example, one possible outcome of `"number_of_dyes": 2` is `#2C3065`, which is the combination of a blue dye and a black dye. \
|
|
601
630
|
* The same dye color can be selected multiple times.
|
|
602
631
|
*/
|
|
603
632
|
number_of_dyes: NumberProvider;
|
|
604
|
-
} & Conditions);
|
|
605
|
-
export type SetRandomPotion = ({
|
|
633
|
+
} & Conditions<C>);
|
|
634
|
+
export type SetRandomPotion<F extends NBTObject, C extends NBTObject> = ({
|
|
606
635
|
/**
|
|
607
636
|
* Possible potions to select from.
|
|
608
637
|
* Defaults to all potions.
|
|
609
638
|
*/
|
|
610
639
|
options?: ((Registry['minecraft:potion'] | `#${Registry['minecraft:tag/potion']}` | TagClass<'potion'>) | Registry['minecraft:potion']);
|
|
611
|
-
} & Conditions);
|
|
612
|
-
export type SetStewEffect = ({
|
|
640
|
+
} & Conditions<C>);
|
|
641
|
+
export type SetStewEffect<F extends NBTObject, C extends NBTObject> = ({
|
|
613
642
|
/**
|
|
614
643
|
* Sets the status effects for suspicious stew.
|
|
615
644
|
*/
|
|
616
645
|
effects?: Array<StewEffect>;
|
|
617
|
-
} & Conditions);
|
|
618
|
-
export type SetWriteableBookPages = ({
|
|
646
|
+
} & Conditions<C>);
|
|
647
|
+
export type SetWriteableBookPages<F extends NBTObject, C extends NBTObject> = ({
|
|
619
648
|
/**
|
|
620
649
|
* Sets the pages of a book and quill.
|
|
621
650
|
*/
|
|
622
651
|
pages: Array<Filterable<string>>;
|
|
623
|
-
} & ListOperation & Conditions);
|
|
624
|
-
export type SetWrittenBookPages = ({
|
|
652
|
+
} & ListOperation & Conditions<C>);
|
|
653
|
+
export type SetWrittenBookPages<F extends NBTObject, C extends NBTObject> = ({
|
|
625
654
|
/**
|
|
626
655
|
* Sets the pages of a written book.
|
|
627
656
|
*/
|
|
628
657
|
pages: Array<Filterable<Text>>;
|
|
629
|
-
} & ListOperation & Conditions);
|
|
658
|
+
} & ListOperation & Conditions<C>);
|
|
630
659
|
export type StewEffect = {
|
|
631
660
|
/**
|
|
632
661
|
* The status effect of this stew effect.
|
|
@@ -638,14 +667,14 @@ export type StewEffect = {
|
|
|
638
667
|
duration: NumberProvider;
|
|
639
668
|
};
|
|
640
669
|
export type ToggleableDataComponent = ('attribute_modifiers' | 'can_break' | 'can_place_on' | 'dyed_color' | 'enchantments' | 'jukebox_playable' | 'stored_enchantments' | 'trim' | 'unbreakable');
|
|
641
|
-
export type ToggleTooltips = ({
|
|
670
|
+
export type ToggleTooltips<F extends NBTObject, C extends NBTObject> = ({
|
|
642
671
|
/**
|
|
643
672
|
* Toggles which tooltips are shown.
|
|
644
673
|
*/
|
|
645
674
|
toggles: ({
|
|
646
675
|
[Key in Extract<Registry['minecraft:data_component_type'], string>]?: boolean;
|
|
647
676
|
});
|
|
648
|
-
} & Conditions);
|
|
677
|
+
} & Conditions<C>);
|
|
649
678
|
export type UniformBonusFormula = {
|
|
650
679
|
parameters: {
|
|
651
680
|
bonusMultiplier: NBTInt;
|
|
@@ -682,147 +711,147 @@ type ListOperationInsert = InsertListOperation;
|
|
|
682
711
|
type ListOperationReplaceAll = Record<string, never>;
|
|
683
712
|
type ListOperationReplaceSection = ReplaceSectionListOperation;
|
|
684
713
|
export type SymbolListOperation<CASE extends 'map' | 'keys' | '%fallback' | '%none' | '%unknown' = 'map'> = CASE extends 'map' ? ListOperationDispatcherMap : CASE extends 'keys' ? ListOperationKeys : CASE extends '%fallback' ? ListOperationFallback : never;
|
|
685
|
-
type LootFunctionDispatcherMap = {
|
|
686
|
-
'apply_bonus': LootFunctionApplyBonus
|
|
687
|
-
'minecraft:apply_bonus': LootFunctionApplyBonus
|
|
688
|
-
'copy_components': LootFunctionCopyComponents
|
|
689
|
-
'minecraft:copy_components': LootFunctionCopyComponents
|
|
690
|
-
'copy_custom_data': LootFunctionCopyCustomData
|
|
691
|
-
'minecraft:copy_custom_data': LootFunctionCopyCustomData
|
|
692
|
-
'copy_name': LootFunctionCopyName
|
|
693
|
-
'minecraft:copy_name': LootFunctionCopyName
|
|
694
|
-
'copy_nbt': LootFunctionCopyNbt
|
|
695
|
-
'minecraft:copy_nbt': LootFunctionCopyNbt
|
|
696
|
-
'copy_state': LootFunctionCopyState
|
|
697
|
-
'minecraft:copy_state': LootFunctionCopyState
|
|
698
|
-
'discard': LootFunctionDiscard
|
|
699
|
-
'minecraft:discard': LootFunctionDiscard
|
|
700
|
-
'enchant_randomly': LootFunctionEnchantRandomly
|
|
701
|
-
'minecraft:enchant_randomly': LootFunctionEnchantRandomly
|
|
702
|
-
'enchant_with_levels': LootFunctionEnchantWithLevels
|
|
703
|
-
'minecraft:enchant_with_levels': LootFunctionEnchantWithLevels
|
|
704
|
-
'enchanted_count_increase': LootFunctionEnchantedCountIncrease
|
|
705
|
-
'minecraft:enchanted_count_increase': LootFunctionEnchantedCountIncrease
|
|
706
|
-
'exploration_map': LootFunctionExplorationMap
|
|
707
|
-
'minecraft:exploration_map': LootFunctionExplorationMap
|
|
708
|
-
'explosion_decay': LootFunctionExplosionDecay
|
|
709
|
-
'minecraft:explosion_decay': LootFunctionExplosionDecay
|
|
710
|
-
'fill_player_head': LootFunctionFillPlayerHead
|
|
711
|
-
'minecraft:fill_player_head': LootFunctionFillPlayerHead
|
|
712
|
-
'filtered': LootFunctionFiltered
|
|
713
|
-
'minecraft:filtered': LootFunctionFiltered
|
|
714
|
-
'furnace_smelt': LootFunctionFurnaceSmelt
|
|
715
|
-
'minecraft:furnace_smelt': LootFunctionFurnaceSmelt
|
|
716
|
-
'limit_count': LootFunctionLimitCount
|
|
717
|
-
'minecraft:limit_count': LootFunctionLimitCount
|
|
718
|
-
'looting_enchant': LootFunctionLootingEnchant
|
|
719
|
-
'minecraft:looting_enchant': LootFunctionLootingEnchant
|
|
720
|
-
'modify_contents': LootFunctionModifyContents
|
|
721
|
-
'minecraft:modify_contents': LootFunctionModifyContents
|
|
722
|
-
'reference': LootFunctionReference
|
|
723
|
-
'minecraft:reference': LootFunctionReference
|
|
724
|
-
'sequence': LootFunctionSequence
|
|
725
|
-
'minecraft:sequence': LootFunctionSequence
|
|
726
|
-
'set_attributes': LootFunctionSetAttributes
|
|
727
|
-
'minecraft:set_attributes': LootFunctionSetAttributes
|
|
728
|
-
'set_banner_pattern': LootFunctionSetBannerPattern
|
|
729
|
-
'minecraft:set_banner_pattern': LootFunctionSetBannerPattern
|
|
730
|
-
'set_book_cover': LootFunctionSetBookCover
|
|
731
|
-
'minecraft:set_book_cover': LootFunctionSetBookCover
|
|
732
|
-
'set_components': LootFunctionSetComponents
|
|
733
|
-
'minecraft:set_components': LootFunctionSetComponents
|
|
734
|
-
'set_contents': LootFunctionSetContents
|
|
735
|
-
'minecraft:set_contents': LootFunctionSetContents
|
|
736
|
-
'set_count': LootFunctionSetCount
|
|
737
|
-
'minecraft:set_count': LootFunctionSetCount
|
|
738
|
-
'set_custom_data': LootFunctionSetCustomData
|
|
739
|
-
'minecraft:set_custom_data': LootFunctionSetCustomData
|
|
740
|
-
'set_custom_model_data': LootFunctionSetCustomModelData
|
|
741
|
-
'minecraft:set_custom_model_data': LootFunctionSetCustomModelData
|
|
742
|
-
'set_damage': LootFunctionSetDamage
|
|
743
|
-
'minecraft:set_damage': LootFunctionSetDamage
|
|
744
|
-
'set_enchantments': LootFunctionSetEnchantments
|
|
745
|
-
'minecraft:set_enchantments': LootFunctionSetEnchantments
|
|
746
|
-
'set_firework_explosion': LootFunctionSetFireworkExplosion
|
|
747
|
-
'minecraft:set_firework_explosion': LootFunctionSetFireworkExplosion
|
|
748
|
-
'set_fireworks': LootFunctionSetFireworks
|
|
749
|
-
'minecraft:set_fireworks': LootFunctionSetFireworks
|
|
750
|
-
'set_instrument': LootFunctionSetInstrument
|
|
751
|
-
'minecraft:set_instrument': LootFunctionSetInstrument
|
|
752
|
-
'set_item': LootFunctionSetItem
|
|
753
|
-
'minecraft:set_item': LootFunctionSetItem
|
|
754
|
-
'set_loot_table': LootFunctionSetLootTable
|
|
755
|
-
'minecraft:set_loot_table': LootFunctionSetLootTable
|
|
756
|
-
'set_lore': LootFunctionSetLore
|
|
757
|
-
'minecraft:set_lore': LootFunctionSetLore
|
|
758
|
-
'set_name': LootFunctionSetName
|
|
759
|
-
'minecraft:set_name': LootFunctionSetName
|
|
760
|
-
'set_nbt': LootFunctionSetNbt
|
|
761
|
-
'minecraft:set_nbt': LootFunctionSetNbt
|
|
762
|
-
'set_ominous_bottle_amplifier': LootFunctionSetOminousBottleAmplifier
|
|
763
|
-
'minecraft:set_ominous_bottle_amplifier': LootFunctionSetOminousBottleAmplifier
|
|
764
|
-
'set_potion': LootFunctionSetPotion
|
|
765
|
-
'minecraft:set_potion': LootFunctionSetPotion
|
|
766
|
-
'set_random_dyes': LootFunctionSetRandomDyes
|
|
767
|
-
'minecraft:set_random_dyes': LootFunctionSetRandomDyes
|
|
768
|
-
'set_random_potion': LootFunctionSetRandomPotion
|
|
769
|
-
'minecraft:set_random_potion': LootFunctionSetRandomPotion
|
|
770
|
-
'set_stew_effect': LootFunctionSetStewEffect
|
|
771
|
-
'minecraft:set_stew_effect': LootFunctionSetStewEffect
|
|
772
|
-
'set_writable_book_pages': LootFunctionSetWritableBookPages
|
|
773
|
-
'minecraft:set_writable_book_pages': LootFunctionSetWritableBookPages
|
|
774
|
-
'set_written_book_pages': LootFunctionSetWrittenBookPages
|
|
775
|
-
'minecraft:set_written_book_pages': LootFunctionSetWrittenBookPages
|
|
776
|
-
'toggle_tooltips': LootFunctionToggleTooltips
|
|
777
|
-
'minecraft:toggle_tooltips': LootFunctionToggleTooltips
|
|
714
|
+
type LootFunctionDispatcherMap<F extends NBTObject, C extends NBTObject> = {
|
|
715
|
+
'apply_bonus': LootFunctionApplyBonus<F, C>;
|
|
716
|
+
'minecraft:apply_bonus': LootFunctionApplyBonus<F, C>;
|
|
717
|
+
'copy_components': LootFunctionCopyComponents<F, C>;
|
|
718
|
+
'minecraft:copy_components': LootFunctionCopyComponents<F, C>;
|
|
719
|
+
'copy_custom_data': LootFunctionCopyCustomData<F, C>;
|
|
720
|
+
'minecraft:copy_custom_data': LootFunctionCopyCustomData<F, C>;
|
|
721
|
+
'copy_name': LootFunctionCopyName<F, C>;
|
|
722
|
+
'minecraft:copy_name': LootFunctionCopyName<F, C>;
|
|
723
|
+
'copy_nbt': LootFunctionCopyNbt<F, C>;
|
|
724
|
+
'minecraft:copy_nbt': LootFunctionCopyNbt<F, C>;
|
|
725
|
+
'copy_state': LootFunctionCopyState<F, C>;
|
|
726
|
+
'minecraft:copy_state': LootFunctionCopyState<F, C>;
|
|
727
|
+
'discard': LootFunctionDiscard<F, C>;
|
|
728
|
+
'minecraft:discard': LootFunctionDiscard<F, C>;
|
|
729
|
+
'enchant_randomly': LootFunctionEnchantRandomly<F, C>;
|
|
730
|
+
'minecraft:enchant_randomly': LootFunctionEnchantRandomly<F, C>;
|
|
731
|
+
'enchant_with_levels': LootFunctionEnchantWithLevels<F, C>;
|
|
732
|
+
'minecraft:enchant_with_levels': LootFunctionEnchantWithLevels<F, C>;
|
|
733
|
+
'enchanted_count_increase': LootFunctionEnchantedCountIncrease<F, C>;
|
|
734
|
+
'minecraft:enchanted_count_increase': LootFunctionEnchantedCountIncrease<F, C>;
|
|
735
|
+
'exploration_map': LootFunctionExplorationMap<F, C>;
|
|
736
|
+
'minecraft:exploration_map': LootFunctionExplorationMap<F, C>;
|
|
737
|
+
'explosion_decay': LootFunctionExplosionDecay<F, C>;
|
|
738
|
+
'minecraft:explosion_decay': LootFunctionExplosionDecay<F, C>;
|
|
739
|
+
'fill_player_head': LootFunctionFillPlayerHead<F, C>;
|
|
740
|
+
'minecraft:fill_player_head': LootFunctionFillPlayerHead<F, C>;
|
|
741
|
+
'filtered': LootFunctionFiltered<F, C>;
|
|
742
|
+
'minecraft:filtered': LootFunctionFiltered<F, C>;
|
|
743
|
+
'furnace_smelt': LootFunctionFurnaceSmelt<F, C>;
|
|
744
|
+
'minecraft:furnace_smelt': LootFunctionFurnaceSmelt<F, C>;
|
|
745
|
+
'limit_count': LootFunctionLimitCount<F, C>;
|
|
746
|
+
'minecraft:limit_count': LootFunctionLimitCount<F, C>;
|
|
747
|
+
'looting_enchant': LootFunctionLootingEnchant<F, C>;
|
|
748
|
+
'minecraft:looting_enchant': LootFunctionLootingEnchant<F, C>;
|
|
749
|
+
'modify_contents': LootFunctionModifyContents<F, C>;
|
|
750
|
+
'minecraft:modify_contents': LootFunctionModifyContents<F, C>;
|
|
751
|
+
'reference': LootFunctionReference<F, C>;
|
|
752
|
+
'minecraft:reference': LootFunctionReference<F, C>;
|
|
753
|
+
'sequence': LootFunctionSequence<F, C>;
|
|
754
|
+
'minecraft:sequence': LootFunctionSequence<F, C>;
|
|
755
|
+
'set_attributes': LootFunctionSetAttributes<F, C>;
|
|
756
|
+
'minecraft:set_attributes': LootFunctionSetAttributes<F, C>;
|
|
757
|
+
'set_banner_pattern': LootFunctionSetBannerPattern<F, C>;
|
|
758
|
+
'minecraft:set_banner_pattern': LootFunctionSetBannerPattern<F, C>;
|
|
759
|
+
'set_book_cover': LootFunctionSetBookCover<F, C>;
|
|
760
|
+
'minecraft:set_book_cover': LootFunctionSetBookCover<F, C>;
|
|
761
|
+
'set_components': LootFunctionSetComponents<F, C>;
|
|
762
|
+
'minecraft:set_components': LootFunctionSetComponents<F, C>;
|
|
763
|
+
'set_contents': LootFunctionSetContents<F, C>;
|
|
764
|
+
'minecraft:set_contents': LootFunctionSetContents<F, C>;
|
|
765
|
+
'set_count': LootFunctionSetCount<F, C>;
|
|
766
|
+
'minecraft:set_count': LootFunctionSetCount<F, C>;
|
|
767
|
+
'set_custom_data': LootFunctionSetCustomData<F, C>;
|
|
768
|
+
'minecraft:set_custom_data': LootFunctionSetCustomData<F, C>;
|
|
769
|
+
'set_custom_model_data': LootFunctionSetCustomModelData<F, C>;
|
|
770
|
+
'minecraft:set_custom_model_data': LootFunctionSetCustomModelData<F, C>;
|
|
771
|
+
'set_damage': LootFunctionSetDamage<F, C>;
|
|
772
|
+
'minecraft:set_damage': LootFunctionSetDamage<F, C>;
|
|
773
|
+
'set_enchantments': LootFunctionSetEnchantments<F, C>;
|
|
774
|
+
'minecraft:set_enchantments': LootFunctionSetEnchantments<F, C>;
|
|
775
|
+
'set_firework_explosion': LootFunctionSetFireworkExplosion<F, C>;
|
|
776
|
+
'minecraft:set_firework_explosion': LootFunctionSetFireworkExplosion<F, C>;
|
|
777
|
+
'set_fireworks': LootFunctionSetFireworks<F, C>;
|
|
778
|
+
'minecraft:set_fireworks': LootFunctionSetFireworks<F, C>;
|
|
779
|
+
'set_instrument': LootFunctionSetInstrument<F, C>;
|
|
780
|
+
'minecraft:set_instrument': LootFunctionSetInstrument<F, C>;
|
|
781
|
+
'set_item': LootFunctionSetItem<F, C>;
|
|
782
|
+
'minecraft:set_item': LootFunctionSetItem<F, C>;
|
|
783
|
+
'set_loot_table': LootFunctionSetLootTable<F, C>;
|
|
784
|
+
'minecraft:set_loot_table': LootFunctionSetLootTable<F, C>;
|
|
785
|
+
'set_lore': LootFunctionSetLore<F, C>;
|
|
786
|
+
'minecraft:set_lore': LootFunctionSetLore<F, C>;
|
|
787
|
+
'set_name': LootFunctionSetName<F, C>;
|
|
788
|
+
'minecraft:set_name': LootFunctionSetName<F, C>;
|
|
789
|
+
'set_nbt': LootFunctionSetNbt<F, C>;
|
|
790
|
+
'minecraft:set_nbt': LootFunctionSetNbt<F, C>;
|
|
791
|
+
'set_ominous_bottle_amplifier': LootFunctionSetOminousBottleAmplifier<F, C>;
|
|
792
|
+
'minecraft:set_ominous_bottle_amplifier': LootFunctionSetOminousBottleAmplifier<F, C>;
|
|
793
|
+
'set_potion': LootFunctionSetPotion<F, C>;
|
|
794
|
+
'minecraft:set_potion': LootFunctionSetPotion<F, C>;
|
|
795
|
+
'set_random_dyes': LootFunctionSetRandomDyes<F, C>;
|
|
796
|
+
'minecraft:set_random_dyes': LootFunctionSetRandomDyes<F, C>;
|
|
797
|
+
'set_random_potion': LootFunctionSetRandomPotion<F, C>;
|
|
798
|
+
'minecraft:set_random_potion': LootFunctionSetRandomPotion<F, C>;
|
|
799
|
+
'set_stew_effect': LootFunctionSetStewEffect<F, C>;
|
|
800
|
+
'minecraft:set_stew_effect': LootFunctionSetStewEffect<F, C>;
|
|
801
|
+
'set_writable_book_pages': LootFunctionSetWritableBookPages<F, C>;
|
|
802
|
+
'minecraft:set_writable_book_pages': LootFunctionSetWritableBookPages<F, C>;
|
|
803
|
+
'set_written_book_pages': LootFunctionSetWrittenBookPages<F, C>;
|
|
804
|
+
'minecraft:set_written_book_pages': LootFunctionSetWrittenBookPages<F, C>;
|
|
805
|
+
'toggle_tooltips': LootFunctionToggleTooltips<F, C>;
|
|
806
|
+
'minecraft:toggle_tooltips': LootFunctionToggleTooltips<F, C>;
|
|
778
807
|
};
|
|
779
|
-
type LootFunctionKeys = keyof LootFunctionDispatcherMap
|
|
780
|
-
type LootFunctionFallback = (LootFunctionApplyBonus | LootFunctionCopyComponents | LootFunctionCopyCustomData | LootFunctionCopyName | LootFunctionCopyNbt | LootFunctionCopyState | LootFunctionDiscard | LootFunctionEnchantRandomly | LootFunctionEnchantWithLevels | LootFunctionEnchantedCountIncrease | LootFunctionExplorationMap | LootFunctionExplosionDecay | LootFunctionFillPlayerHead | LootFunctionFiltered | LootFunctionFurnaceSmelt | LootFunctionLimitCount | LootFunctionLootingEnchant | LootFunctionModifyContents | LootFunctionReference | LootFunctionSequence | LootFunctionSetAttributes | LootFunctionSetBannerPattern | LootFunctionSetBookCover | LootFunctionSetComponents | LootFunctionSetContents | LootFunctionSetCount | LootFunctionSetCustomData | LootFunctionSetCustomModelData | LootFunctionSetDamage | LootFunctionSetEnchantments | LootFunctionSetFireworkExplosion | LootFunctionSetFireworks | LootFunctionSetInstrument | LootFunctionSetItem | LootFunctionSetLootTable | LootFunctionSetLore | LootFunctionSetName | LootFunctionSetNbt | LootFunctionSetOminousBottleAmplifier | LootFunctionSetPotion | LootFunctionSetRandomDyes | LootFunctionSetRandomPotion | LootFunctionSetStewEffect | LootFunctionSetWritableBookPages | LootFunctionSetWrittenBookPages | LootFunctionToggleTooltips);
|
|
781
|
-
type LootFunctionApplyBonus = ApplyBonus
|
|
782
|
-
type LootFunctionCopyComponents = CopyComponents
|
|
783
|
-
type LootFunctionCopyCustomData = CopyNbt
|
|
784
|
-
type LootFunctionCopyName = CopyName
|
|
785
|
-
type LootFunctionCopyNbt = CopyNbt
|
|
786
|
-
type LootFunctionCopyState = CopyState
|
|
787
|
-
type LootFunctionDiscard = Conditions
|
|
788
|
-
type LootFunctionEnchantRandomly = EnchantRandomly
|
|
789
|
-
type LootFunctionEnchantWithLevels = EnchantWithLevels
|
|
790
|
-
type LootFunctionEnchantedCountIncrease = EnchantedCountIncrease
|
|
791
|
-
type LootFunctionExplorationMap = ExplorationMap
|
|
792
|
-
type LootFunctionExplosionDecay = Conditions
|
|
793
|
-
type LootFunctionFillPlayerHead = FillPlayerHead
|
|
794
|
-
type LootFunctionFiltered = Filtered
|
|
795
|
-
type LootFunctionFurnaceSmelt = Conditions
|
|
796
|
-
type LootFunctionLimitCount = LimitCount
|
|
797
|
-
type LootFunctionLootingEnchant = LootingEnchant
|
|
798
|
-
type LootFunctionModifyContents = ModifyContents
|
|
799
|
-
type LootFunctionReference = Reference
|
|
800
|
-
type LootFunctionSequence = Sequence
|
|
801
|
-
type LootFunctionSetAttributes = SetAttributes
|
|
802
|
-
type LootFunctionSetBannerPattern = SetBannerPattern
|
|
803
|
-
type LootFunctionSetBookCover = SetBookCover
|
|
804
|
-
type LootFunctionSetComponents = SetComponents
|
|
805
|
-
type LootFunctionSetContents = SetContents
|
|
806
|
-
type LootFunctionSetCount = SetCount
|
|
807
|
-
type LootFunctionSetCustomData = SetCustomData
|
|
808
|
-
type LootFunctionSetCustomModelData = SetCustomModelData
|
|
809
|
-
type LootFunctionSetDamage = SetDamage
|
|
810
|
-
type LootFunctionSetEnchantments = SetEnchantments
|
|
811
|
-
type LootFunctionSetFireworkExplosion = SetFireworkExplosion
|
|
812
|
-
type LootFunctionSetFireworks = SetFireworks
|
|
813
|
-
type LootFunctionSetInstrument = SetInstrument
|
|
814
|
-
type LootFunctionSetItem = SetItem
|
|
815
|
-
type LootFunctionSetLootTable = SetLootTable
|
|
816
|
-
type LootFunctionSetLore = SetLore
|
|
817
|
-
type LootFunctionSetName = SetName
|
|
818
|
-
type LootFunctionSetNbt = SetNbt
|
|
819
|
-
type LootFunctionSetOminousBottleAmplifier = SetOminousBottleAmplifier
|
|
820
|
-
type LootFunctionSetPotion = SetPotion
|
|
821
|
-
type LootFunctionSetRandomDyes = SetRandomDyes
|
|
822
|
-
type LootFunctionSetRandomPotion = SetRandomPotion
|
|
823
|
-
type LootFunctionSetStewEffect = SetStewEffect
|
|
824
|
-
type LootFunctionSetWritableBookPages = SetWriteableBookPages
|
|
825
|
-
type LootFunctionSetWrittenBookPages = SetWrittenBookPages
|
|
826
|
-
type LootFunctionToggleTooltips = ToggleTooltips
|
|
827
|
-
export type SymbolLootFunction<CASE extends 'map' | 'keys' | '%fallback' | '%none' | '%unknown' = 'map'> = CASE extends 'map' ? LootFunctionDispatcherMap : CASE extends 'keys' ? LootFunctionKeys : CASE extends '%fallback' ? LootFunctionFallback : never;
|
|
808
|
+
type LootFunctionKeys = keyof LootFunctionDispatcherMap<NBTObject, NBTObject>;
|
|
809
|
+
type LootFunctionFallback<F extends NBTObject, C extends NBTObject> = (LootFunctionApplyBonus<F, C> | LootFunctionCopyComponents<F, C> | LootFunctionCopyCustomData<F, C> | LootFunctionCopyName<F, C> | LootFunctionCopyNbt<F, C> | LootFunctionCopyState<F, C> | LootFunctionDiscard<F, C> | LootFunctionEnchantRandomly<F, C> | LootFunctionEnchantWithLevels<F, C> | LootFunctionEnchantedCountIncrease<F, C> | LootFunctionExplorationMap<F, C> | LootFunctionExplosionDecay<F, C> | LootFunctionFillPlayerHead<F, C> | LootFunctionFiltered<F, C> | LootFunctionFurnaceSmelt<F, C> | LootFunctionLimitCount<F, C> | LootFunctionLootingEnchant<F, C> | LootFunctionModifyContents<F, C> | LootFunctionReference<F, C> | LootFunctionSequence<F, C> | LootFunctionSetAttributes<F, C> | LootFunctionSetBannerPattern<F, C> | LootFunctionSetBookCover<F, C> | LootFunctionSetComponents<F, C> | LootFunctionSetContents<F, C> | LootFunctionSetCount<F, C> | LootFunctionSetCustomData<F, C> | LootFunctionSetCustomModelData<F, C> | LootFunctionSetDamage<F, C> | LootFunctionSetEnchantments<F, C> | LootFunctionSetFireworkExplosion<F, C> | LootFunctionSetFireworks<F, C> | LootFunctionSetInstrument<F, C> | LootFunctionSetItem<F, C> | LootFunctionSetLootTable<F, C> | LootFunctionSetLore<F, C> | LootFunctionSetName<F, C> | LootFunctionSetNbt<F, C> | LootFunctionSetOminousBottleAmplifier<F, C> | LootFunctionSetPotion<F, C> | LootFunctionSetRandomDyes<F, C> | LootFunctionSetRandomPotion<F, C> | LootFunctionSetStewEffect<F, C> | LootFunctionSetWritableBookPages<F, C> | LootFunctionSetWrittenBookPages<F, C> | LootFunctionToggleTooltips<F, C>);
|
|
810
|
+
export type LootFunctionApplyBonus<F extends NBTObject, C extends NBTObject> = ApplyBonus<F, C>;
|
|
811
|
+
export type LootFunctionCopyComponents<F extends NBTObject, C extends NBTObject> = CopyComponents<F, C>;
|
|
812
|
+
export type LootFunctionCopyCustomData<F extends NBTObject, C extends NBTObject> = CopyNbt<C>;
|
|
813
|
+
export type LootFunctionCopyName<F extends NBTObject, C extends NBTObject> = CopyName<F, C>;
|
|
814
|
+
export type LootFunctionCopyNbt<F extends NBTObject, C extends NBTObject> = CopyNbt<C>;
|
|
815
|
+
export type LootFunctionCopyState<F extends NBTObject, C extends NBTObject> = CopyState<F, C>;
|
|
816
|
+
export type LootFunctionDiscard<F extends NBTObject, C extends NBTObject> = Conditions<C>;
|
|
817
|
+
export type LootFunctionEnchantRandomly<F extends NBTObject, C extends NBTObject> = EnchantRandomly<F, C>;
|
|
818
|
+
export type LootFunctionEnchantWithLevels<F extends NBTObject, C extends NBTObject> = EnchantWithLevels<F, C>;
|
|
819
|
+
export type LootFunctionEnchantedCountIncrease<F extends NBTObject, C extends NBTObject> = EnchantedCountIncrease<F, C>;
|
|
820
|
+
export type LootFunctionExplorationMap<F extends NBTObject, C extends NBTObject> = ExplorationMap<F, C>;
|
|
821
|
+
export type LootFunctionExplosionDecay<F extends NBTObject, C extends NBTObject> = Conditions<C>;
|
|
822
|
+
export type LootFunctionFillPlayerHead<F extends NBTObject, C extends NBTObject> = FillPlayerHead<F, C>;
|
|
823
|
+
export type LootFunctionFiltered<F extends NBTObject, C extends NBTObject> = Filtered<F, C>;
|
|
824
|
+
export type LootFunctionFurnaceSmelt<F extends NBTObject, C extends NBTObject> = Conditions<C>;
|
|
825
|
+
export type LootFunctionLimitCount<F extends NBTObject, C extends NBTObject> = LimitCount<F, C>;
|
|
826
|
+
export type LootFunctionLootingEnchant<F extends NBTObject, C extends NBTObject> = LootingEnchant<F, C>;
|
|
827
|
+
export type LootFunctionModifyContents<F extends NBTObject, C extends NBTObject> = ModifyContents<F, C>;
|
|
828
|
+
export type LootFunctionReference<F extends NBTObject, C extends NBTObject> = Reference<F, C>;
|
|
829
|
+
export type LootFunctionSequence<F extends NBTObject, C extends NBTObject> = Sequence<F, C>;
|
|
830
|
+
export type LootFunctionSetAttributes<F extends NBTObject, C extends NBTObject> = SetAttributes<F, C>;
|
|
831
|
+
export type LootFunctionSetBannerPattern<F extends NBTObject, C extends NBTObject> = SetBannerPattern<F, C>;
|
|
832
|
+
export type LootFunctionSetBookCover<F extends NBTObject, C extends NBTObject> = SetBookCover<F, C>;
|
|
833
|
+
export type LootFunctionSetComponents<F extends NBTObject, C extends NBTObject> = SetComponents<F, C>;
|
|
834
|
+
export type LootFunctionSetContents<F extends NBTObject, C extends NBTObject> = SetContents<F, C>;
|
|
835
|
+
export type LootFunctionSetCount<F extends NBTObject, C extends NBTObject> = SetCount<F, C>;
|
|
836
|
+
export type LootFunctionSetCustomData<F extends NBTObject, C extends NBTObject> = SetCustomData<F, C>;
|
|
837
|
+
export type LootFunctionSetCustomModelData<F extends NBTObject, C extends NBTObject> = SetCustomModelData<F, C>;
|
|
838
|
+
export type LootFunctionSetDamage<F extends NBTObject, C extends NBTObject> = SetDamage<F, C>;
|
|
839
|
+
export type LootFunctionSetEnchantments<F extends NBTObject, C extends NBTObject> = SetEnchantments<F, C>;
|
|
840
|
+
export type LootFunctionSetFireworkExplosion<F extends NBTObject, C extends NBTObject> = SetFireworkExplosion<F, C>;
|
|
841
|
+
export type LootFunctionSetFireworks<F extends NBTObject, C extends NBTObject> = SetFireworks<F, C>;
|
|
842
|
+
export type LootFunctionSetInstrument<F extends NBTObject, C extends NBTObject> = SetInstrument<F, C>;
|
|
843
|
+
export type LootFunctionSetItem<F extends NBTObject, C extends NBTObject> = SetItem<F, C>;
|
|
844
|
+
export type LootFunctionSetLootTable<F extends NBTObject, C extends NBTObject> = SetLootTable<F, C>;
|
|
845
|
+
export type LootFunctionSetLore<F extends NBTObject, C extends NBTObject> = SetLore<F, C>;
|
|
846
|
+
export type LootFunctionSetName<F extends NBTObject, C extends NBTObject> = SetName<F, C>;
|
|
847
|
+
export type LootFunctionSetNbt<F extends NBTObject, C extends NBTObject> = SetNbt<F, C>;
|
|
848
|
+
export type LootFunctionSetOminousBottleAmplifier<F extends NBTObject, C extends NBTObject> = SetOminousBottleAmplifier<F, C>;
|
|
849
|
+
export type LootFunctionSetPotion<F extends NBTObject, C extends NBTObject> = SetPotion<F, C>;
|
|
850
|
+
export type LootFunctionSetRandomDyes<F extends NBTObject, C extends NBTObject> = SetRandomDyes<F, C>;
|
|
851
|
+
export type LootFunctionSetRandomPotion<F extends NBTObject, C extends NBTObject> = SetRandomPotion<F, C>;
|
|
852
|
+
export type LootFunctionSetStewEffect<F extends NBTObject, C extends NBTObject> = SetStewEffect<F, C>;
|
|
853
|
+
export type LootFunctionSetWritableBookPages<F extends NBTObject, C extends NBTObject> = SetWriteableBookPages<F, C>;
|
|
854
|
+
export type LootFunctionSetWrittenBookPages<F extends NBTObject, C extends NBTObject> = SetWrittenBookPages<F, C>;
|
|
855
|
+
export type LootFunctionToggleTooltips<F extends NBTObject, C extends NBTObject> = ToggleTooltips<F, C>;
|
|
856
|
+
export type SymbolLootFunction<F extends NBTObject, C extends NBTObject, CASE extends 'map' | 'keys' | '%fallback' | '%none' | '%unknown' = 'map'> = CASE extends 'map' ? LootFunctionDispatcherMap<F, C> : CASE extends 'keys' ? LootFunctionKeys : CASE extends '%fallback' ? LootFunctionFallback<F, C> : never;
|
|
828
857
|
export {};
|