AND(AND) ANDlist of MultiPartCondition
Helpers for objects that are not chosen by a type field. Each builds the object it is named after. Click a type to see what it accepts.
AboveRootPlacement(above_root_provider, above_root_placement_chance) above_root_providerBlockStateProviderRef above_root_placement_chancenumber 0..1 Advancement(criteria, parent?, display?, requirements?, rewards?, sends_telemetry_event?) criteriamap of string to AdvancementCriterion If requirements is not defined, all defined criteria will be required.
parentoptionaladvancement id If this field is absent, this advancement is a root advancement. Circular references cause a loading failure.
displayoptionalany (depends on parent) If present, advancement will be visible in the advancement tabs.
requirementsoptionallist of (list of string (at least 1)) (at least 1) If all criteria are required at once, this may be omitted.
Contains all of the criteria keys.
If all of the lists each have at least one criteria met, the advancement is complete (basically AND grouping of OR groups).
rewardsoptionalAdvancementRewards Provided to the player when this advancement is obtained.
sends_telemetry_eventoptionalbool Defaults to false. The vanilla game client only reads this for advancements from the minecraft namespace.
AdvancementRewards(experience?, loot?, recipes?, function?) experienceoptionalint XP to add.
lootoptionalLootTableListRef Loot tables to give.
recipesoptionallist of recipe ids Recipes to unlock.
functionoptionalfunction id Function to run as and at the player. Function tags are not allowed.
Aquifer(barrier, fluid_level_floodedness, fluid_level_spread, lava, exclusion, surface_level) barrierDensityFunctionRef fluid_level_floodednessDensityFunctionRef fluid_level_spreadDensityFunctionRef lavaDensityFunctionRef exclusionDensityFunctionRef surface_levelDensityFunctionRef Atlas(sources) sourceslist of SpriteSource List of sprite sources which can add or remove sprite textures to this atlas.
AttributeEntry(attribute, id, amount, operation) attributeattribute id Attribute type to modify.
idattribute_modifier id The unique identifier of this attribute modifier.
amountnumber Change in the attribute.
operationAttributeOperation The operation used for this modifier.
AttributeModifier(attribute, id, amount, operation, slot) attributeattribute id Attribute type to modify.
idattribute_modifier id The unique identifier of this attribute modifier.
amountFloatNumberProviderRef operationAttributeOperation The operation used for this modifier.
slotEquipmentSlotGroup | list of EquipmentSlotGroup If a list, one of the listed slots will be chosen randomly.
AxisAngle(axis, angle) axislist of number (exactly 3) Local position of the axis in [x, y, z].
anglenumber Angle to rotate around the axis in radians.
BannerPattern(asset_id, translation_key) asset_idtexture id Also resolves to assets/<namespace>/textures/entity/shield/<name>.png.
translation_keystring Translation key prefix per dye color (e.g. block.minecraft.banner.custom.pattern resolves to block.minecraft.banner.custom.pattern.<dye color>).
Biome(temperature, downfall, has_precipitation, effects, carvers, features, attributes?, temperature_modifier?) temperaturenumber downfallnumber has_precipitationbool effectsBiomeEffects carversCarverListRef featureslist of (#placed_feature tag | list of PlacedFeatureRef) (at most 11) attributesoptionalPositionalEnvironmentAttributeMap temperature_modifieroptionalTemperatureModifier BiomeEffects(water_color, grass_color?, foliage_color?, dry_foliage_color?, grass_color_modifier?) water_colorStringRGB grass_coloroptionalStringRGB foliage_coloroptionalStringRGB dry_foliage_coloroptionalStringRGB grass_color_modifieroptionalGrassColorModifier BlockColumnLayer(height, provider) heightIntProvider of int 0.. providerBlockStateProviderRef BlockPredicate(blocks?, state?, nbt?, components?, predicates?) blocksoptionalblock id | #block tag | list of block ids stateoptionalBlockPredicateState nbtoptionalstring | any (depends on blocks) componentsoptionalDataComponentExactPredicate Match exact data component values on the block entity.
predicatesoptionalDataComponentPredicate Test data component values on the block entity.
BlockPredicateState() BlockTransformData(block_state_provider, sound?, particle?, disallowed_faces?, loot?, drop_strategy?, transform_type?, update_from_neighbors?, consume_on_use?, item_damage_per_use?) block_state_providerBlockStateProviderRef If the provider returns no result, the next transformer will be attempted.
soundoptionalSoundEventRef Defaults to not playing sound.
particleoptionalBlockTransformParticle Defaults to none.
disallowed_facesoptionallist of Direction If a disallowed face is interacted with, the next transformer will be attempted. Defaults to empty (allowing all faces).
lootoptionalloot_table id The loot to drop on a successful transformation. Defaults to drop nothing.
drop_strategyoptionalBlockTransformDropStrategy Where the loot should drop.
Defaults to from_middle.
transform_typeoptionalBlockTransformType How nearby blocks are affected by the transformation.
Defaults to single_block.
update_from_neighborsoptionalbool Whether the transformed block should update based on neighboring blocks.
Defaults to true.
consume_on_useoptionalbool Only has effect on stackable items.
Defaults to true.
item_damage_per_useoptionalint 0.. Only has effect on unstackable items. Defauls to 1.
Button(label, tooltip?, width?, action?) labelText tooltipoptionalText widthoptionalint 1..1024 Width of the button. Defaults to 150.
actionoptionalClickAction If not present, clicking button will simply close dialog without any action.
CanyonShape(distance_factor, thickness, width_smoothness, horizontal_radius_factor, vertical_radius_default_factor, vertical_radius_center_factor, y_scale) distance_factorFloatProvider of number thicknessFloatProvider of number width_smoothnessint 0.. horizontal_radius_factorFloatProvider of number vertical_radius_default_factornumber vertical_radius_center_factornumber y_scaleFloatProvider of number CatSounds(ambient_sound, stray_ambient_sound, hiss_sound, hurt_sound, death_sound, eat_sound, beg_for_food_sound, purr_sound, purreow_sound) ambient_soundSoundEventRef stray_ambient_soundSoundEventRef hiss_soundSoundEventRef hurt_soundSoundEventRef death_soundSoundEventRef eat_soundSoundEventRef beg_for_food_soundSoundEventRef purr_soundSoundEventRef purreow_soundSoundEventRef CatVariant(asset_id, baby_asset_id, spawn_conditions) asset_idtexture id The cat texture to use for this variant.
baby_asset_idtexture id The baby cat texture to use for this variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
ChatDecoration(translation_key, parameters, style?) translation_keystring parameterslist of ChatDecorationParameter styleoptionalTextStyle ChickenVariant(asset_id, baby_asset_id, spawn_conditions, model?) asset_idtexture id The chicken texture to use for this variant.
baby_asset_idtexture id The baby chicken texture to use for this variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
modeloptionalChickenModelType CollectionPredicate(contains?, count?, size?) containsoptionallist of EntityEffectsPredicate A list of tests. For each test, there must be at least one entry whose contents match exactly.
countoptionallist of { test: EntityEffectsPredicate, count: MinMaxBounds of int } sizeoptionalMinMaxBounds of int When set, total number of entries in the this collection.
ColorWhenUndyed(color_when_undyed?) color_when_undyedoptionalRGB If the item is not dyed, this color is used instead. If not specified and the item is not dyed, this layer will be hidden.
ContactDamage(damage_type, amount, attribute_to_source) damage_typedamage_type id amountFloatProvider of number 0.. attribute_to_sourcebool Whether the damage is attributed to the sulfur cube.
CowSounds(ambient_sound, hurt_sound, death_sound, step_sound) ambient_soundSoundEventRef hurt_soundSoundEventRef death_soundSoundEventRef step_soundSoundEventRef CowVariant(asset_id, baby_asset_id, spawn_conditions, model?) asset_idtexture id The cow texture to use for this variant.
baby_asset_idtexture id The baby cow texture to use for this variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
modeloptionalCowModelType CustomDataMap() DamagePredicate(dealt?, taken?, blocked?, source_entity?, type?) dealtoptionalMinMaxBounds of number Amount of incoming damage before damage reduction.
takenoptionalMinMaxBounds of number Amount of incoming damage after damage reduction.
blockedoptionalbool Whether the damage was successfully blocked.
source_entityoptionalEntityPredicate Source of the damage (eg: a skeleton shooting an arrow or player igniting tnt).
typeoptionalDamageSourcePredicate DamageSourcePredicate(tags?, source_entity?, direct_entity?, is_direct?) tagsoptionallist of DamageTagPredicate Damage type tags that the damage type is in.
source_entityoptionalEntityPredicate Source of the damage (eg: a skeleton shooting an arrow or player igniting tnt).
direct_entityoptionalEntityPredicate Direct entity responsible for the damage (eg: the arrow or tnt).
is_directoptionalbool Damage is direct when its direct and source entities are the same.
DamageTagPredicate(id, expected) iddamage_type id | #damage_type tag | list of damage_type ids expectedbool Whether the damage is expected to have or not have the tag.
DamageType(message_id, exhaustion, scaling, effects?, death_message_type?) message_idstring The message id used for deaths caused by this damage type.
Is combined with the result of death_message_type to form a translation key.
exhaustionnumber 0.. Amount of hunger exhaustion to cause.
scalingDamageScaling Whether to scale damage with difficulty levels.
effectsoptionalDamageEffects Controls how damage manifests when inflicted on players. Defaults to hurt.
death_message_typeoptionalDeathMessageType Controls if special death message variants are used. Defaults to default.
For more info see: https://minecraft.wiki/w/Damage_type#Death_messages
DataComponentExactPredicate() DataComponentPatch() DataComponentPredicate() DimensionType(has_skylight, has_ceiling, has_ender_dragon_fight, coordinate_scale, ambient_light, logical_height, infiniburn, min_y, height, monster_spawn_light_level, monster_spawn_block_light_limit, attributes?, default_clock?, timelines?, has_fixed_time?, skybox?, cardinal_light?) has_skylightbool Affects the weather, lighting engine and respawning rules.
has_ceilingbool Affects the weather, map items and respawning rules.
has_ender_dragon_fightbool coordinate_scalenumber 1e-05..3e+07 ambient_lightnumber 0..1 logical_heightint 0..4064 Portals can't spawn and chorus fruit can't teleport players above this height.
infiniburnblock id | #block tag | list of block ids Defining what blocks keep fire infinitely burning.
min_yint -2032..2031 The minimum height in which blocks can exist.
heightint 16..4064 The total height in which blocks can exist. Max Y = Min Y + Height.
monster_spawn_light_levelIntProvider of int 0..15 monster_spawn_block_light_limitint 0..15 attributesoptionalGlobalEnvironmentAttributeMap default_clockoptionalworld_clock id timelinesoptionaltimeline id | #timeline tag | list of timeline ids has_fixed_timeoptionalbool Defaults to false.
skyboxoptionalSkyboxType Skybox type.
Defaults to overworld.
cardinal_lightoptionalCardinalLightType The direction of cardinal lighting that affects blocks.
DistancePredicate(x?, y?, z?, absolute?, horizontal?) xoptionalMinMaxBounds of number yoptionalMinMaxBounds of number zoptionalMinMaxBounds of number absoluteoptionalMinMaxBounds of number horizontaloptionalMinMaxBounds of number Dyeable(color_when_undyed?) color_when_undyedoptionalRGB If the item is not dyed, this color is used instead. If not specified and the item is not dyed, this layer will be hidden.
Enchantment(description, supported_items, weight, max_level, min_cost, max_cost, anvil_cost, slots, exclusive_set?, primary_items?, effects?) descriptionText supported_itemsitem id | #item tag | list of item ids weightint 1..1024 How commonly the Enchantment appears, compared to the total combined weight of all available Enchantments.
max_levelint 1..255 Maximum level of the enchantment.
min_costEnchantmentCost Minimum experience cost.
max_costEnchantmentCost Maximum experience cost.
anvil_costint 0.. Halved when an Enchantment is added to a book. The effective fee is multiplied by the level of the Enchantment.
slotslist of EquipmentSlotGroup exclusive_setoptionalenchantment id | #enchantment tag | list of enchantment ids primary_itemsoptionalitem id | #item tag | list of item ids Item types for which this Enchantment shows up in Enchanting Tables and on traded equipment.
Must be a subset of supported_items.
effectsoptionalEnchantmentEffectComponentMap EnchantmentCost(base, per_level_above_first) baseint Base cost at level 1.
per_level_above_firstint Cost increase per level above 1.
EnchantmentEffectComponentMap() EndSpike(centerX, centerZ, radius, height, guarded?) centerXint centerZint radiusint heightint guardedoptionalbool EntityEffectsPredicate() EntitySubPredicateMap() EnvironmentAttributeMap() EnvironmentAttributeTrackMap() Equipment(layers, trim_overrides?) layersLayers List of layers for each model layer type.
trim_overridesoptionallist of TrimOverride Replaces trim texture based on armor trim. Only the first entry that matches is applied.
Explosion(shape, colors?, fade_colors?, has_trail?, has_twinkle?) shapeFireworkShape The shape of the explosion.
colorsoptionallist of int Colors of the initial particles of the explosion, randomly selected from.
Calculated as RED << 16 | GREEN << 8 | BLUE. Each of these fields must be between 0 and 255, inclusive.
fade_colorsoptionallist of int Colors of the fading particles of the explosion
has_trailoptionalbool Added to a firework star via Diamond.
has_twinkleoptionalbool Added to a firework star via Glowstone Dust.
ExplosionData(fuse, power, causes_fire) fuseint 1.. The fuse time in ticks when ignited.
When ignited by an explosion, the fuse will be a random value between explosion_fuse / 8 and 3 * explosion_fuse / 8.
powerint 0.. The explosion power.
causes_firebool Whether the explosion causes fire.
FlatGeneratorPreset(display, settings) displayitem id settingsFlatGeneratorSettings FlatGeneratorSettings(layers, biome?, lakes?, features?, structure_overrides?) layerslist of FlatGeneratorLayer biomeoptionalbiome id lakesoptionalbool featuresoptionalbool structure_overridesoptionalstructure_set id | #structure_set tag | list of structure_set ids FlatWeightedEntry(weight, type, count) weightint 0.. typeentity_type id countIntProvider of int FluidPredicate(fluids?, state?) fluidsoptionalfluid id | #fluid tag | list of fluid ids stateoptionalmap of string to MinMaxBounds of int | bool | string FrogVariant(asset_id, spawn_conditions) asset_idtexture id The frog texture to use for this variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
GeodeBlockSettings(filling_provider, inner_layer_provider, alternate_inner_layer_provider, middle_layer_provider, outer_layer_provider, inner_placements, cannot_replace, invalid_blocks) filling_providerBlockStateProviderRef inner_layer_providerBlockStateProviderRef alternate_inner_layer_providerBlockStateProviderRef middle_layer_providerBlockStateProviderRef outer_layer_providerBlockStateProviderRef inner_placementslist of BlockState (at least 1) cannot_replaceblock id | #block tag | list of block ids Blocks that will not be replaced by the geode.
invalid_blocksblock id | #block tag | list of block ids When encountering an invalid block, feature placement is cancelled.
GeodeCrackSettings(generate_crack_chance?, base_crack_size?, crack_point_offset?) generate_crack_chanceoptionalnumber 0..1 base_crack_sizeoptionalnumber 0..5 crack_point_offsetoptionalint 0..10 GeodeLayerSettings(filling?, inner_layer?, middle_layer?, outer_layer?) fillingoptionalnumber 0.01..50 inner_layeroptionalnumber 0.01..50 middle_layeroptionalnumber 0.01..50 outer_layeroptionalnumber 0.01..50 Instrument(sound_event, range, use_duration, description, durability_damage?) sound_eventSoundEventRef rangenumber 0..< Maximum range in blocks that the sound can be heard
use_durationnumber 0.. Duration of use in seconds, used as item cooldown
descriptionText durability_damageoptionalint 0.. InternalTarget(width?, height?, persistent?, clear_color?) widthoptionalint heightoptionalint persistentoptionalbool If true, target will be persistent across frames. Defaults to false.
The contents of the target will be cleared when the screen is resized.
clear_coloroptionalRGBA Target will be filled with this color when created or cleared. Defaults to 0.
ItemDefinition(model, hand_animation_on_swap?, oversized_in_gui?, swap_animation_scale?) modelItemModel hand_animation_on_swapoptionalbool Whether the down-and-up animation should be played in first-person view when the item stack is changed.
Defaults to true.
oversized_in_guioptionalbool Whether the item model is allowed to be bigger than its item slot.
Defaults to false, which clips the item model in GUI to the item slot size.
The behavior of true is **not** officially supported.
swap_animation_scaleoptionalnumber How fast the item moves up and down when swapping items in hotbar. Defaults to 1.0
ItemStackOfComponent(id, components?, count?) iditem id ID of the item.
componentsoptionalDataComponentPatch countoptionalint 1..99 Number of items in the stack.
Defaults to 1.
ItemUesdOnLocationConditions(player?, location?) playeroptionalAdvancementEntityPredicate Predicate context: Advancement Entity.
locationoptionalAdvancementLocationPredicate Predicate context: Advancement Location.
JukeboxSong(description, comparator_output, length_in_seconds, sound_event) descriptionText Displayed in the HUD actionbar & item tooltip.
comparator_outputint 0..15 length_in_secondsnumber 0..< sound_eventSoundEventRef KnockbackModifiers(horizontal_power, vertical_power) horizontal_powernumber The horizontal power of the knockback.
vertical_powernumber The vertical power of the knockback.
Lang() Layer(texture, dyeable?) texturetexture id Texture location for this layer, inside entity/equipment/<layer>/.
dyeableoptionalDyeable If specified, this layer will be tinted by the color contained in the dyed_color component.
Layers(humanoid?, humanoid_leggings?, humanoid_baby?, wings?, wolf_body?, horse_body?, llama_body?, happy_ghast_body?, nautilus_saddle?, nautilus_body?, pig_saddle?, strider_saddle?, camel_husk_saddle?, camel_saddle?, horse_saddle?, donkey_saddle?, mule_saddle?, zombie_horse_saddle?, skeleton_horse_saddle?) humanoidoptionallist of Layer of texture id humanoid_leggingsoptionallist of Layer of texture id humanoid_babyoptionallist of Layer of texture id wingsoptionallist of WingsLayer of texture id wolf_bodyoptionallist of Layer of texture id horse_bodyoptionallist of Layer of texture id llama_bodyoptionallist of Layer of texture id happy_ghast_bodyoptionallist of Layer of texture id nautilus_saddleoptionallist of Layer of texture id nautilus_bodyoptionallist of Layer of texture id pig_saddleoptionallist of Layer of texture id strider_saddleoptionallist of Layer of texture id camel_husk_saddleoptionallist of Layer of texture id camel_saddleoptionallist of Layer of texture id horse_saddleoptionallist of Layer of texture id donkey_saddleoptionallist of Layer of texture id mule_saddleoptionallist of Layer of texture id zombie_horse_saddleoptionallist of Layer of texture id skeleton_horse_saddleoptionallist of Layer of texture id LocationPredicate(position?, biomes?, structures?, dimension?, light?, block?, fluid?, smokey?, can_see_sky?) positionoptional{ x?: MinMaxBounds of number, y?: MinMaxBounds of number, z?: MinMaxBounds of number } biomesoptionalbiome id | #biome tag | list of biome ids structuresoptionalstructure id | #structure tag | list of structure ids dimensionoptionaldimension id lightoptionalLight(…) Calculated using: max(sky-darkening, block).
blockoptionalBlockPredicate fluidoptionalFluidPredicate smokeyoptionalbool Whether the block is above (5 blocks or less) a campfire or soul campfire.
can_see_skyoptionalbool Whether the location has the maximum possible level of sky light
LootTable(type?, pools?, modifier?, random_sequence?) typeoptionalLootContextParamSets poolsoptionallist of LootPool modifieroptionalItemModifier random_sequenceoptionalrandom_sequence id MangroveRootPlacement(max_root_width, max_root_length, random_skew_chance, can_grow_through, muddy_roots_in, muddy_roots_provider) max_root_widthint 1..12 max_root_lengthint 1..64 random_skew_chancenumber 0..1 can_grow_throughblock id | #block tag | list of block ids muddy_roots_inblock id | #block tag | list of block ids muddy_roots_providerBlockStateProviderRef MobEffectPredicate(amplifier?, duration?, ambient?, visible?) amplifieroptionalMinMaxBounds of int durationoptionalMinMaxBounds of int ambientoptionalbool visibleoptionalbool Model(parent?, ambientocclusion?, gui_light?, textures?, elements?, display?) parentoptionalmodel id ambientocclusionoptionalbool gui_lightoptional"front" | "side" texturesoptionalmap of string to texture id | TextureMaterial elementsoptionallist of ModelElement displayoptionalmap of CustomizableItemDisplayContext to { rotation?: list of number (exactly 3), translation?: list of number -80..80 (exactly 3), scale?: list of number -4..4 (exactly 3) } ModelElement(from, to, faces, rotation?, shade_direction_override?, light_emission?) fromlist of number -16..32 (exactly 3) tolist of number -16..32 (exactly 3) facesmap of Direction to object rotationoptionalModelElementRotation shade_direction_overrideoptionalDirection light_emissionoptionalint 0..15 ModelVariantBase(model, x?, y?, z?, uvlock?) modelModelRef xoptional0 | 90 | 180 | 270 yoptional0 | 90 | 180 | 270 zoptional0 | 90 | 180 | 270 uvlockoptionalbool If set to true, the textures are not rotated with the block.
MultiNoiseBiomeSourceParameterList(preset) presetMultiNoisePreset NoiseGeneratorSettings(default_block, default_fluid, sea_level, disable_mob_generation, legacy_random_source, noise, noise_router, spawn_target, material_rule, aquifers?, debug_functions?) default_blockBlockState default_fluidBlockState sea_levelint disable_mob_generationbool If true, mobs will not spawn during generation.
legacy_random_sourcebool noiseNoiseSettings noise_routerNoiseRouter spawn_targetlist of SpawnTargetPoint material_ruleMaterialRuleRef aquifersoptionalAquifer debug_functionsoptionallist of DebugFunctionEntry NoiseParameters(base_octave, base_amplitude?, octave_count?, normalize?, amplitude_modifiers?) base_octaveint -32..32 base_amplitudeoptionalnumber 0..1e+06 Defaults to 1.0.
octave_countoptionalint 1..32 Defaults to 1.
normalizeoptionalbool | "legacy" Defaults to true.
amplitude_modifiersoptionallist of number 0..1e+06 (at most 32) When empty or not present, defaults to all 1.0.
Otherwise, the size must match octave_count.
NoiseRouter(temperature, vegetation, continents, erosion, depth, ridges, chunk_surface_level, final_density) temperatureDensityFunctionRef vegetationDensityFunctionRef continentsDensityFunctionRef erosionDensityFunctionRef depthDensityFunctionRef ridgesDensityFunctionRef chunk_surface_levelDensityFunctionRef final_densityDensityFunctionRef NoiseSettings(min_y, height) min_yint -2048..2047 Minimum height where blocks start generating.
heightint 0..4096 The total height where blocks can generate. Max Y = Min Y + Height.
Option(id, display?, initial?) idstring String to send on submit.
displayoptionalText Label displayed on the button.
When not present, id will be used instead.
initialoptionalbool Whether this option is the initial value.
Only one option can have this field set to true.
PaintingVariant(asset_id, width, height, title?, author?) PigVariant(asset_id, baby_asset_id, spawn_conditions, model?) asset_idtexture id The pig texture to use for this variant.
baby_asset_idtexture id The baby pig texture to use for this variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
modeloptionalPigModelType PlacedFeature(feature, placement) featureConfiguredFeatureRef placementlist of PlacementModifier PlainMessage(contents, width?) contentsText A multiline label.
Click events in the text trigger after_action like any other action.
widthoptionalint 1..1024 Maximum width of message. Defaults to 200.
Player(player?) playeroptionalAdvancementEntityPredicate Predicate context: Advancement Entity.
PlayerConditions(player?) playeroptionalAdvancementEntityPredicate Predicate context: Advancement Entity.
PotionIngredient(item, potion_contents?) itemIngredient potion_contentsoptionalPotionsPredicate PotionsPredicate(potions?, effects?) potionsoptionalPotionTypeMatch effectsoptionalCollectionPredicate of EntityEffectsPredicate ProcessorRule(location_predicate, input_predicate, output_state, position_predicate?, block_entity_modifier?) location_predicateRuleTest input_predicateRuleTest output_stateBlockState position_predicateoptionalPosRuleTest block_entity_modifieroptionalBlockEntityModifier ProfileProperty(name, value, signature?) namestring (0 to 64) Usually textures.
valuestring (0 to 32767) Base64 encoded JSON value of the texture index.
signatureoptionalstring (0 to 1024) Verifies the hash of the resulting texture.
ProfilePropertyMap() RuinedPortalSetup(placement, air_pocket_probability, mossiness, overgrown, vines, can_be_cold, replace_with_blackstone, weight) placementRuinedPortalPlacement air_pocket_probabilitynumber 0..1 mossinessnumber 0..1 overgrownbool vinesbool can_be_coldbool replace_with_blackstonebool weightnumber 0.. SoundSettings(hit_sound, push_sound, push_sound_impulse_threshold, push_sound_cooldown) hit_soundSoundEventRef push_soundSoundEventRef push_sound_impulse_thresholdnumber Minimum impact speed required to trigger the sound.
push_sound_cooldownnumber Cooldown in seconds for the sound effect.
Sources(sources) sourceslist of SpriteSource List of sprite sources which can add or remove sprite textures to this atlas.
SpawnOverride(bounding_box, spawns) bounding_boxBoundingBox spawnsFlatWeightedList of SpawnerData SpawnPrioritySelector(priority, condition?) priorityint The spawn priority to use.
conditionoptionalSpawnCondition The spawn condition to check. If not present, the condition always matches.
SpawnTargetPoint() SplinePoint(location, derivative, value) locationnumber derivativenumber valueCubicSpline StewEffect(type, duration) typemob_effect id The status effect of this stew effect.
durationIntNumberProviderRef The duration of this stew effect, in seconds.
StructureSet(structures, placement) structureslist of StructureSetElement placementStructurePlacement SulfurCubeArchetype(items, knockback_modifiers, attribute_modifiers, sound_settings, buoyant?, explosion?, contact_damage?) itemsitem id | #item tag | list of item ids knockback_modifiersKnockbackModifiers attribute_modifierslist of AttributeEntry sound_settingsSoundSettings buoyantoptionalbool Defaults to false.
explosionoptionalExplosionData When present, sulfur cube with this archetype will explode when ignited.
contact_damageoptionalContactDamage TargetInput(target, sampler_name, use_depth_buffer?, bilinear?) targetshader_target id sampler_namestring use_depth_bufferoptionalbool bilinearoptionalbool Targets() TemplatePool(fallback, elements, name?) fallbacktemplate_pool id elementslist of WeightedElement nameoptionalstring TextStyle(color?, shadow_color?, font?, bold?, italic?, underlined?, strikethrough?, obfuscated?, insertion?, click_event?, hover_event?) coloroptionalstring | TextColor shadow_coloroptionalRGBA Overrides the shadow properties of the text. If specified as 0, the shadow will never be displayed.
fontoptionalfont id boldoptionalbool italicoptionalbool underlinedoptionalbool strikethroughoptionalbool obfuscatedoptionalbool insertionoptionalstring click_eventoptionalClickEvent hover_eventoptionalHoverEvent TextureInput(location, sampler_name, width, height, bilinear?) locationtexture id sampler_namestring widthint 1.. heightint 1.. bilinearoptionalbool TextureMaterial(sprite, force_translucent?) spritetexture id force_translucentoptionalbool Whether the texture should be forced into the translucent render pass.
Textures without any translucent pixels are not assigned to the translucent pass by default.
Defaults to false.
TimeMarker(ticks, show_in_commands?) ticksint 0.. show_in_commandsoptionalbool Whether the time marker shows up in command suggestions.
The time marker is still available in commands even if it is not suggested.
Defaults to false.
TimeMarkerMap() Timeline(clock, period_ticks?, time_markers?, tracks?) clockworld_clock id The world clock this timeline is tied to.
period_ticksoptionalint 1.. When not present, the timeline will not repeat.
time_markersoptionalTimeMarkerMap tracksoptionalEnvironmentAttributeTrackMap TradeCost(id, components?, count?) iditem id ID of the item.
componentsoptionalDataComponentExactPredicate countoptionalIntNumberProvider Defaults to 1.
TradeSet(trades, amount, allow_duplicates?, random_sequence?) tradesvillager_trade id | #villager_trade tag | list of villager_trade ids Possible trade generators.
amountIntNumberProvider Amount of trades to be generated.
allow_duplicatesoptionalbool Whether the trade set can use the same generator multiple times and generate duplicate trades.
Defaults to false.
random_sequenceoptionalrandom_sequence id TransmuteResult(id?, count?, components?) idoptionalitem id Defaults to the input item.
countoptionalint 1..99 Defaults to 1.
componentsoptionalDataComponentPatch TrialSpawnerConfig(spawn_range?, total_mobs?, total_mobs_added_per_player?, simultaneous_mobs?, simultaneous_mobs_added_per_player?, ticks_between_spawn?, spawn_potentials?, loot_tables_to_eject?, items_to_drop_when_ominous?) spawn_rangeoptionalint 1..128 Maximum distance from the spawner that en entity can spawn
total_mobsoptionalnumber Total amount of entities that are spawned during one activation, when 1 player is nearby
total_mobs_added_per_playeroptionalnumber Number added to total_mobs for each additional player
simultaneous_mobsoptionalnumber Number of entities that that can be present at once, when 1 player is nearby
simultaneous_mobs_added_per_playeroptionalnumber Number added to simultaneous_mobs for each additional player
ticks_between_spawnoptionalint Ticks until the next spawn.
spawn_potentialsoptionallist of SpawnPotential Entities that can be placed.
loot_tables_to_ejectoptionalWeightedList of loot_table id Loot tables to use when ejecting loot. Chooses one loot table based on weight and then uses it as often as there are players nearby.
items_to_drop_when_ominousoptionalloot_table id Loot table to use when summoning ominous item spawners. One roll seeded based on rough location to determine all items used during the battle.
TrimMaterial(palette_id, description) palette_idPaletteRef Palette ID which will be used in the resource pack.
descriptionText Text displayed in the item tooltip.
TrimOverride(when, texture?, palette?) when{ pattern?: trim_pattern id, material?: trim_material id } textureoptionalid When present, overrides the base texture provided by trim pattern.
The texture is located under trims/entity/<layer>/.
paletteoptionalPaletteRef When present, overrides the palette texture provided by trim material.
TrimPattern(asset_id, description, decal?) asset_idid ID of the pattern that will be used in the resource pack as an overlay on the armor.
The texture is located under trims/entity/<layer>/.
descriptionText Text displayed in the item tooltip.
decaloptionalbool Whether the pattern texture will be masked based on the underlying armor. Defaults to false.
UniformBlocks() UniformIntProvider(min_inclusive, max_inclusive) min_inclusiveint -16..0 max_inclusiveint -16..0 UniformValue(type, value, name?) typeUniformValueType valueany (depends on type) nameoptionalstring Unused by the game, but good to set in practice.
UnihexOverrideRange(from, to, left, right) fromstring Minimum in codepoint range (inclusive).
tostring Maximum in codepoint range (inclusive).
leftint 0..255 Position of left-most column of the glyph.
rightint 0..255 Position of right-most column of the glyph.
UnstitchRegion(sprite, x, y, width, height) spritetexture id xnumber ynumber widthnumber heightnumber VillagerTrade(wants, gives, additional_wants?, given_item_modifier?, max_uses?, reputation_discount?, xp?, merchant_predicate?, double_trade_price_enchantments?) wantsTradeCost Price item required by the merchant. The count is affected by various factors, including offered item, demand and player reputation.
givesItemStackTemplate Item being offered by the merchant.
additional_wantsoptionalTradeCost Second item required by the merchant. The count is not affected by any factors.
given_item_modifieroptionalItemModifierWithoutRootRef Modifiers applied to the gives item.
Does **not** support reference item modifier.
Some modifiers can affect the price through the additional_trade_cost transient component.
The additional_trade_cost component is not saved on the offered item.
ID reference is not allowed here.
max_usesoptionalIntNumberProvider Maximum number of uses of this trade before the villager has to restock. Defaults to 4.
reputation_discountoptionalFloatNumberProvider How much demand & reputation each affect the price, is serialized as priceMultiplier. Defaults to 0.0.
xpoptionalIntNumberProvider Amount to increase the merchant's XP score by that determines their trade tier. Defaults to 1.
merchant_predicateoptionalPredicate Check whether the trade should be offered by the merchant.
Does **not** support the reference predicate.
double_trade_price_enchantmentsoptionalenchantment id | #enchantment tag | list of enchantment ids If the offered enchanted book has the specified enchantments, the price will be affected by doubling the additional_trade_cost transient component.
WaypointStyle(sprites, near_distance?, far_distance?) spriteslist of texture ids (at least 1) near_distanceoptionalint 0..6e+07 Defaults to 128.
far_distanceoptionalint 0..6e+07 Defaults to 322.
WingsLayer(texture, dyeable?, use_player_texture?) texturetexture id Texture location for this layer, inside entity/equipment/<layer>/.
dyeableoptionalDyeable If specified, this layer will be tinted by the color contained in the dyed_color component.
use_player_textureoptionalbool Whether this layer texture should be overridden by the player's custom elytra texture.
Defaults to false.
WolfVariant(assets, baby_assets, spawn_conditions) assetsWolfVariantAssetInfo The texture set to use for this wolf variant.
baby_assetsWolfVariantAssetInfo The baby texture set to use for this wolf variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
WolfVariantAssetInfo(wild, tame, angry) wildtexture id tametexture id angrytexture id ZombieNautilusVariant(asset_id, spawn_conditions, model?) asset_idtexture id The zombie nautilus texture to use for this variant.
spawn_conditionslist of SpawnPrioritySelector The spawn conditions for this variant. Selection process: - Conditions for all variants for the given entity type are evaluated for the spawn position - Entries with a priority lower than the maximum priority of the remaining entries are removed - A random entry is picked out of the remaining ones - If no conditions are remaining, the variant remains unchanged from the default
modeloptionalZombieNautilusModelType