Entities (behavior side)
This page covers the behavior of custom and vanilla entities. The rendering side (materials, particles, long-distance rendering techniques) is covered by the rendering section, and this page holds only BP entities, the behavior wiring of client entities, player.json and player.entity.json. The evidence is 130 community research notes from 2025-10-22 to 2026-11-13 (Source: private research). The verification level marks at the end of sentences are those at the time of research and follow the legend on the wiki home page.
Entities change state with "component groups + events + client_sync properties", and complex logic is handed to the Script API.
Concept: components, component groups, events
A BP entity file (BP/entities/*.json) has four chunks under minecraft:entity: description, components, component_groups and events. Confusion here is the most common cause of errors, so the distinctions are made clear. (Source: bedrock-wiki, entity-intro-bp)
- A component is a feature unit made by Mojang. You cannot make your own, and the whole list is hardcoded. The form is
"minecraft:<name>": { settings }, and if placed incomponentsit is always on. - A component group is a "folder" that holds components. The name is free (vanilla adds a suffix like
minecraft:cat_persian, but it is not a component). Components inside a group do nothing until the group is added. You cannot borrow the groups of another entity. - An event is the syntax that adds/removes groups. Events also must be defined by each entity (to use
minecraft:ageable_grow_upin your own entity you must make the group and the event yourself). What an event can add/remove is only component groups, and you cannot add or remove a component directly. If the same component is in an already-on group, the group added later overrides it.
A minimal example where the size doubles when a player interacts.
{
"format_version": "1.26.40",
"minecraft:entity": {
"description": { "identifier": "wiki:example", "is_spawnable": true, "is_summonable": true },
"components": {
"minecraft:type_family": { "family": [ "wiki_mob" ] },
"minecraft:collision_box": { "width": 0.6, "height": 1.8 },
"minecraft:health": { "value": 20, "max": 20 },
"minecraft:interact": {
"interactions": [
{ "on_interact": { "filters": { "test": "is_family", "subject": "other", "value": "player" },
"target": "self", "event": "wiki:on_interact" } }
]
}
},
"component_groups": {
"wiki:interacted": { "minecraft:scale": { "value": 2 } }
},
"events": {
"wiki:on_interact": { "add": { "component_groups": [ "wiki:interacted" ] } }
}
}
}
The responses an event can give are as follows (Source: bedrock-wiki, entity-events).
"wiki:ranged_attacker": {
"add": { "component_groups": [ "attacker", "ranged" ] },
"remove": { "component_groups": [ "standby", "melee" ] }
},
"wiki:execute_event": {
"queue_command": { "target": "self", "command": [ "summon pig", "say A pig appears" ] }
},
"minecraft:entity_spawned": {
"randomize": [
{ "weight": 95, "add": { "component_groups": [ "minecraft:cow_adult" ] } },
{ "weight": 5, "add": { "component_groups": [ "minecraft:cow_baby" ] } }
]
}
randomize picks only one item by weight. queue_command runs at the end of the tick. sequence applies filters to change groups conditionally. Vanilla uses these tools to make behavior such as a zombie turning into a drowned in water, fox color variants (minecraft:fox_red) and Enderman anger. The vanilla chicken splits ageable, breedable, loot and experience_reward into the minecraft:chicken_baby/minecraft:chicken_adult groups and uses the climate_variant enum property (client_sync: true) (Source: bedrock-samples, behavior_pack/entities/chicken.json, format 1.26.50).
Key summary
- A
not present in the Schemawarning mostly comes from a lowformat_version. Raise it to the latest value (entity1.26.40as of 2026-08) and turn on the Content Log. After raising it, fix old forms such as"minecraft:fire_immune": trueto{}. run_commandin events becamequeue_command. What events can do is only register command queues, add/remove component groups and set properties. Hand heavy logic to scripts with/scriptevent.- Component groups override. Removing a group does not return to the base
componentsvalue. If the same component is in several groups only one works, andminecraft:timeris valid only once per entity. - A resource pack cannot read tags. Give a BP property
client_sync: trueand read it in the RP withq.property('ns:x'). Properties are at most 32 per entity. - The value form of
deals_damageindamage_sensordiffers by version and reports disagree. Reports also disagree on whether/killcan be blocked (there are reports ofminofminecraft:healthand damage_sensorcause: all, and also an answer that it cannot be blocked). - An attacking mob needs navigation, movement,
follow_range, a targeting goal, an attack behavior andminecraft:attack, all of them. Everybehavior.*needs apriority(lower is higher priority). - Climbing ledges is done with
minecraft:variable_max_auto_step.can_climbdoes not make it climb walls. - Custom entities are not rendered beyond about 64~70 blocks.
- Projectiles depend heavily on
runtime_identifier. When firing from scripts, useprojectile.owner = playerthenshoot(). Since the 2026-08 stable release projectile damage is proportional to speed. - To override
player.entity.json, always start from the latest vanilla file of the installed game. Theplayer.jsonof several packs does not merge and only one applies.
1. File basics, format_version, error resolution
format_version and schema errors
found in the input, but is not present in the Schemamostly means the entityformat_versionis low compared to the component. It was reported forminecraft:is_sheared,rotation_locked_to_vehicle,remove_in_peaceful,swingin interact anddeals_damageofdamage_sensor. Raise to 1.21.100 or higher.remove_in_peacefulis the exception: raising the format does not fix it (below). Putting an event or a listener such asminecraft:on_deathin the wrong place gives the same warning. Events must be inside"events".- The latest format is roughly the same as the latest game version (entity 1.26.40, game 26.44 as of 2026-08-20). bridge. does not support format 1.26.20 or higher, so VS Code is recommended.
- If an entity disappears after raising the format, the cause is an old form such as
"minecraft:fire_immune": true(content log:expected an object). The Blockception VSCode plugin flags old components. - As a counter case, there is a report that a mob that did not chase was fixed by adding the
attackcomponent and changing the format from 1.26 to 1.16.{single report} - Change
run_commandtoqueue_command. If a component exists only in format 1.16.0, replace it with the Script API. minecraft:remove_in_peacefulwas added in 1.21.90.20 and dropped from the example in 1.21.90.25 with no changelog entry and gives a schema error. On Windows 1.26.65.1 it was rejected in a format 1.21.90 entity withthis component was found in the input, but is not present in the Schema, and the name is not in the client code either{measured, code}. Whetheris_shearedreally exists is uncertain.{unverified}- Molang cannot be used in most component values. They accept only constants, strings are parsed as 0.0, and putting
query.scoreboardinminecraft:health.maxkills the entity. To change values, use component groups. Molang expressions cannot be used in filtervalueeither. minecraft:scaleis an object:{ "value": 0.5 }.- Wrongly writing a component that should be an object, such as
"minecraft:burns_in_daylight": true, can make the entity disappear with no content log error (no spawn egg and cannot be summoned). It was fixed by changing to{}.{single report} - In format 1.26.50,
interactionsofminecraft:interactmust be an array (several interaction triggers can be placed). This came to light while raising the format to useleap_at_target.
Common load errors
- JSON parse errors give a line number in the content log.
Missing ',' or '}'literally means a missing comma or a leftover bracket. Check with an IDE, bridge. or jsonlint. [Actor][error]-error parsing entity/x.json:with no details is resolved, if the JSON is fine, by restarting the game or reimporting the pack (clearing the cache).- Typo errors:
child 'intitial_state' not valid here,overlay_colour(the correct name isoverlay_color). - Namespaces cannot be used in geometry identifiers (
geometry.bm65:nameis an error). Use a namespace only in the entityidentifier. Adding a namespace to animation/material names inside a client entity makes even projectiles invisible. A colon cannot be used in animation names. - Folder names: the RP entity folder is
entity(notentities), geometry ismodels/entity/, and the geometry ID must match the client entity. - A
.mcaddonmust have the BP and RP folders at the top level and must not be nested insidebehavior_packs/resource_packs. - If spawn eggs disappear or baby horses/rabbits reset in an old pack, raise the manifest
min_engine_versionto the current value (for example[1,21,130]). - To diagnose an invisible mob, turn on Content Log GUI/File and test the render controller with
controller.render.default. Ananimation_controllerskey directly underdescriptionis not valid in 1.10.0 and above. An old format (1.8.0 style) render controller givesError parsing render Controllers. - The vanilla behavior files in
behavior_pack/entitiesof bedrock-samples are always the latest (zombie about 600 lines, wolf about 1200 lines). However, the sample client entities lack some things (controller and spear variable errors in zombie.entity.json, the missingcontroller.render.iron_golemin the iron golem RP). The boat entity can only change its texture (boat bones and animations are hardcoded). Of the samples'minecart.jsonandminecart_v1.0.json, v1.0 is only an old version. The event list in the entity docs lacks many vanilla events, and thedamage_sensordoc has no data types or version info. (Source: bedrock-samples) minecraft:lightning_bolthas only type_family in the resource template and no geometry or animation. Lightning with no fire or damage is made with a dummy entity that has its own model.- Third-party add-on maker apps (MAM) are not recommended. Use Blockbench and hand-written JSON.
- Structure errors: a component placed directly under
component_groupswithout a group name blocks entity loading, andeventsnested insidecomponent_groupsmade a vindicator clone float up and freeze. Avoid JSON that writes the same key twice (minecraft:physicstwice). - Do not use uppercase in entity identifiers. Of two behavior files with the same file name one did not apply, and a custom entity that reused a vanilla render controller ID (
controller.render.npc) broke.{single report} - A new animation controller or entity file is recognized only after fully reopening the game, not with
/reload all. "controller not recognized" may be an add-on load failure. Pack changes are downloaded again only when the manifest version changes. - Other causes of invisible mobs: slightly transparent texture pixels, a large pivot offset (it seems to appear at the map center), a location other than
models/entity/<name>.geo.json, and an unconverted old-format geometry.
runtime_identifier in general
- There is one
runtime_identifierper entity, and the hardcoded behaviors tied to it (panda eating, parrot dismounting a shoulder, zombie/skeleton undead handling, phantom ignoring spawn rules) cannot be mixed.minecraft:copper_golemwas suggested as a candidate with little hardcoded behavior.{unverified} - Even if you add
runtime_identifier, mobs already spawned keep old data, so kill them and spawn again. Experienced members recommend not using it if possible. - For immunity to slowing blocks such as cobwebs, one answer says the entity component
minecraft:block_movement_slowdown_immunity(26.50 schema, used by spider.json in bedrock-samples) replacesruntime_identifier; another says it does not work yet (MCPE-244598).{conflict} - A goat runtime ID clone did not spawn on snowy peaks, and removing the runtime ID loses ramming and horn drops. There is a report that the guardian's attack, eye animation and spawning are also hardcoded.
- Using the
armor_standruntime ID on a decorative entity removes the hit sound and the red hit effect.
Entity version upgrade system
- In format 1.26.20 and
use_beta_features: true, usedescription.entity_version.upgrades: [{"upgrade_to": 1, "name": "x"}]and the top-level"upgrades": {"x": {"add": {"component_groups": ["ww"]}}}. It applies automatically. As of 2026-04 no vanilla mob uses it.{single report} - The rules for the
upgradesarray reject the entity when broken:upgrade_to0 is reserved,namemust not be empty, the same version number cannot be used twice, and versions must start at 1 with no gap{code, measured}(section 17). The top-levelupgradesexists from v1_26_30 in the code's document struct{code}. - Without beta features, do as the vanilla wolf does: put a bool property
minecraft:was_upgraded_to_1_21_100(client_syncfalse), fire an event that adds a group with abool_property != truefilter, and then doset_propertytrue. - Atomic client entities appeared in Preview 1.26.70.21. Animations must be duplicated per piece and are not shared.
{unverified}
2. Component groups, events, timers, sensors
Meaning of component groups
- Adding overrides and removing removes completely. If you remove a group that has
behavior.random_stroll, that component disappears entirely and does not return to the basecomponentsvalue. In some cases a value such as the speed set in the group remains, so add the group that has the original value again and then remove it. - Put behaviors to turn on and off in groups, not in
components. Normalcomponentscannot be removed. Conversely, if you put a component that is always needed (physics that gives gravity and so on) in a group likeawake, it disappears together when that group is removed, so put it incomponents. - There is no
has_component_groupfilter. When adding a group, also set a bool property and filter withbool_property. - If an attack component exists but it does not attack, check whether a sensor event is repeatedly removing/adding the attack component.
- If the same component is in several groups they conflict and only one works. Like the moobloom with 9 variants, put one interact and filter by variant. Two components of the same kind in one group (two navigations,
movement.basic+movement.fly) are also not allowed. Puttingnearest_attackable_targetin bothcomponentsand a group conflicts. - Component groups are for behavior only. Geometry and textures are picked by render controllers with properties, variant,
mark_variantandskin_id. You cannot specify a render controller with/event. - Values such as collision size and gravity can be changed during play only with groups + events. There is no script API and NoAI cannot be set by scripts either.
- In a mob using
behavior.owner_hurt_by_target, a case where putting a behavior in a dynamic group broke deaggro was fixed by movingplayer_ride_tamed,ranged_attackandrandom_strollout of the group. - Even if you delete a component from a vanilla entity, hardcoded behavior remains (the wither keeps attacking). It is possible to reuse the vanilla identifier (
minecraft:zombie) in a BP, add groups and events, and fire them with/event entity @s name.
Events
- An event reference must be an object
{"event": "name"}. Pick at random withrandomize(weight) and branch withsequence+filters(has_property/enum_property). (Source: bedrock-wiki, entities/entity-events) - Filters in the same
sequenceright afterset_propertydo not see the new value. Split into separate events. - To do several things in
minecraft:entity_spawned, wrap them in asequencearray. You can giveweighttorandomizeitems and nest asequenceinside. Bool property filter example:{"test":"bool_property","domain":"ns:prop","operator":"==","value":true}. - Do not put
/onqueue_commandin an event, but commands in animation controlleron_entry/on_exitneed/. Commands in entity events already run at the entity position, so useexecute as @e[...] at @sonly in command blocks or functions. Distance range selectors such as@e[r=12,rm=4]are valid. - A custom event fires at spawn with
minecraft:entity_spawned, so set the default groups there. - Debugging: put
sayin an event withqueue_commandto see whether it fires. Hit in survival mode to checkhurt_by_target. The Content Log history is Settings > Creator > Content Log History. - The target
otherofqueue_commanddid not work in an entity_sensor event.{single report} - Calling scripts from events:
queue_commandrunsscriptevent ns:idorfunction name, and the script receives it withsystem.afterEvents.scriptEventReceive(sourceEntity,id). Entities cannot run/placeand op-only commands, so work around it by having the script that receives/scripteventcallplaceFeature. - Several
/event entitycommand blocks each fire their event. There is a report that theon_killentity event is broken.{single report} minecraft:entity_placerspawns a variant by firing an event with"entity": "your:mob<event_name>". The spawn event needs a namespace.
Timers
minecraft:timeris valid only once per entity. Even in another group, the later one overrides the earlier. Workarounds are to useminecraft:ageable(is_baby) as a second timer or to rebuild it with timeline commands of a BP animation/controller.- Repeating effect: the
time_down_eventof a repeatingminecraft:timer(time 0.2) runs aqueue_commandthat applies an effect to a radius. An idle such as random blinking is made with a repeating timer with a random time range. (Source: bedrock-wiki, entities/timers) - For per-entity proximity handling, do not loop over all entities in scripts. Have the timer in the entity JSON fire an event and check with
dimension.getPlayers({location, maxDistance}). - Despawning after N seconds is done with a timer and an
instant_despawngroup. - Other timer candidates:
minecraft:attack_cooldown(also used to reset the breeding cooldown),minecraft:ageable(acts as a baby), and a drying timer that resets in water. There are reports that a timer inside a group did not fire and that a timer does not run while dying.{single report} minecraft:scheduler(min_delay_secs,max_delay_secs,scheduled_events) is a periodic check lighter than environment_sensor. Block the same event from firing continuously with a bool property.
Sensors
minecraft:entity_sensordetects nearby entities. There is no filter that checks scoreboard values, so use tags or properties. Usinghas_componentonbehavior.look_at_playerdid not work as expected. "No player nearby" is made with thedistance_to_playerfilter.minecraft:environment_sensorfires an event with time-of-day or light filters. Repeated firing breaks things likeminecraft:breathable(bubble flicker), so add a filter so that it fires only once.- "Is holding something" is checked with the
any_slot_emptyfilter. The state of being hit only by rain isin_water_or_rainAND NOTin_water(wrong if you stand in 1-block water on a rainy day). - The
entity_sensorof the current format needs asubsensorsarray (event,event_filters,range). A cooldown of 1 second is actually about 1.05 seconds. Givingminimum_count: 0andmaximum_count: 0together makes a "none nearby" condition. - Only one sensor is active per component, so two environment_sensors cannot be placed at the same time. Active sensors are evaluated every tick.
- Filter notes: weather is
weather/weather_at_position(is_weatheris deprecated), altitude isis_altitude, effects arehas_mob_effect, the held item ishas_equipment, and the health threshold isactor_health. Empty-hand interaction cannot be detected.minecraft:is_blockworks only in components that give a block subject, and there is a report thatrider_countdid not work. minecraft:block_sensorreacts only to block breaking. Theon_exitofminecraft:inside_block_notifierdoes not fire while any part of the hitbox is inside the block, so for plant-type entitiesin_blockof environment_sensor is recommended.
3. Properties and variants
- Definition and use: define in BP
description.propertiesas follows.
{ "ns:x": { "type": "int", "range": [0, 2], "default": 0, "client_sync": true } }
Set it with the event set_property or entity.setProperty and read it in the RP with q.property('ns:x') (render controller Array.x[query.property('ns:x')], geometry arrays also work). Without client_sync: true the client cannot see it. If an enum property has no default and client_sync, every RP query fails. This was also the cause of a player.json property failing. {community confirmed} (Source: bedrock-wiki entities/entity-properties)
- The limit is 32 per entity (
player.jsonis also 32). Use only a few enum/int with many values, and for booleans use bit packing, put several values in the decimal places of one number, or split them across several entities. There is also a case that used a float range [0,200] as a 200-way variant switch. For bulk data such as pixel-level particle skins, Molang variables are faster than properties. - On Windows 1.26.65.1 a 33rd property is rejected with
Too many properties on the definition (Limit is 32)and 32 pass{measured}. A large pack has hit the player property limit. There is also a case that packed 20-bit flags into one int property (max 1,048,575). With aplay/stopcontroller per bit, each checking its own bit as inmath.mod(math.floor(q.property('ns:bits') / 8192), 2) != 0, bit 0 and bit 13 of a 0 to 16383 property turned on and off independently (values 1, 2, 8192, 8193, measurement record, 2026-11-19 Windows 1.26.65.1). - An enum value must start with a letter. Write Molang booleans as
q.property(...)/!q.property(...), and wrap an expression such as!query.variant == 8in parentheses like!(query.variant == 8). - Random variants: giving
math.random_integer(0, 100)to the int propertydefaultlets you pick geometry/textures at random without a spawn script. If you need weights, userandomizein the spawn event. A random variant made with only an RP disappears on unload and looks different per player. Packing baby/adult/variant into onerandomizecreates "dead" mobs with no group at all, so use a property set at spawn for texture variants. - Breeding inheritance
{conflict}: there is a report that client_sync enum properties are inherited whileskin_id/variant/mark_variantare not passed on in custom breeding, and a 2026-11 report that variant/mark_variant is used for mixing breeding variants. minecraft:mark_variantis a read-only component of the form{ "value": 0 }in scripts. Using a dummy component that does nothing as a state flag is a technique from before properties.- There is no way to change properties directly with commands. Use the script
setPropertyor put an event per value and fire it with/event. - Inside a particle the entity emits, you can read the emitting entity's property with
q.property. Putting an int property in a float field gives an "allowed type: float_range" error. - Float range error:
"range":[0.0,0.5]can give'range' array should contain only 'float' type elements. This is because JSON editors save0.0as0(bridge. v2 does too). Use a value that does not look like an integer, such as 0.01. - The bool default is JSON
true(not the string"true"). - A bool toggle is
"set_property": {"ns:p": "!q.property('ns:p')"}and cycling is"math.mod(query.property('x') + 1, 14)"(Molang has no%). In an animation controller compare withquery.property('ns:p') == value. - In pre_animation read it with
v.x = query.property('ns:prop'). Use:in the ID, not.. If an error occurs on an entity without the property, wrap it inq.has_property. - Tags cannot be read on the client (
has_tagandquery.any_tagare not client entity queries). The flow is BP (environment_sensor detects the tag), then set a property with an event, then use it in the RP. Dynamic properties are script-only and cannot affect appearance. minecraft:variantis synced automatically from server to client and read withq.variant(wolf pattern). There is no "set_variant" in events, so set a property or add a group that hasminecraft:variant.- Climate variant vanilla mobs (pig, chicken, cow; format 1.21.90) use the
minecraft:climate_variantproperty (enum temperate/warm/cold, client_sync) instead of the oldminecraft:variantand change it with aset_propertyevent.minecraft:lootcannot go insideset_property("unknown token"), so put a group with loot per variant. - For per-growth-stage models and textures, put a group with
minecraft:mark_variant+minecraft:skin_idper stage, switch groups with custom age events, and reference both in the RP render controller. - Eye color example: in RP
scripts.pre_animationturnquery.property('ns:eye_colour')into an index withmath.clamp(v.eye_index,0,9), and in the render controller"textures": ["Array.eyes[v.eye_index]"]. The cause of the bug was forgetting to put that render controller in the entity'srender_controllers. - For per-player appearance/display, read the script
setPropertyOverrideForEntity+ a bool property in the render controller orpart_visibility. - Properties update at most 20 times per second, so they are not smooth and have about 1 tick of delay.
- Properties used by scripts must also be defined in the BP (
type,default,client_sync).getProperty/setPropertywork, and there is a case that adjusted scale with a float property. Vanilla boat variants cannot be read. - A full example of a BP entity, client entity and render controller that pick a texture with a property is in Render controllers.
4. Health, damage, invulnerability
damage_sensor
- Put
deals_damageandcausebesideon_damage, not inside it. Wrong nesting givesunknown child schema option type. Allowed types: 'string'.any_ofis OR andall_ofis AND. Joining two different causes withhas_damageall_ofis never true. deals_damagevalue form{conflict}:- A reported working invulnerability example:
{"triggers": [{"filters": {}, "deals_damage": false}]}. The non-array"no"/"cause":"all"is unstable. - Reports split between "in format 1.21.50 and above it is the string
"yes" | "no" | "no_but_side_effects_apply"" and "in format 1.26.30"no"failed andfalseworked". - In the latest format try
falsefirst and then"no"if that does not work. - For letting projectiles pass, use
"no"and avoid"no_but_side_effects_apply"(the projectile may explode).
- A reported working invulnerability example:
- Suffocation immunity turns off
deals_damageforcause: suffocation. To block damage only while an effect is active, joinis_familyandhas_mob_effectwithall_of. In the latest schema, filter parse errors such as "failed to parse inputs -> has_damage" and "must be a preset string" appeared but the entity still worked. - Custom damage causes cannot be made. Even with damage multiplier 0, resistance 255 and script cancellation all applied to a boss, it can still die from
self_destructdamage. - To block only melee attacks and allow projectiles, put a separate projectile trigger first and then use the following trigger.
{ "on_damage": { "filters": { "test": "is_family", "subject": "other", "value": "player" } }, "deals_damage": "no" }
- Letting projectiles pass between factions:
cause: "projectile"+on_damage.filters(is_familyoris_owner, subjectother) +"deals_damage": "no". - Per-tag PvP blocking joins subject self/damager tags with
all_of. To block explosion damage, put deals_damage no oncause: entity_explosionandblock_explosion. - For magma blocks the
has_damagevaluecontactworked, but it also blocked sweet berry bush damage. knockback_filters/damage_filtersacceptnone_of/all_oflists and several can be given as an array.- Using several damage sensors at once interferes (the
hurtandhurt_2triggers of a group overwrite each other). If you need two outputs, detect with scripts. - The damage sensor is the most stable way to cancel damage. Canceling hurt with scripts does not cancel the mob's aggro or hit effect. Removing fall damage is also done with
minecraft:damage_sensor. - The list of damage causes is in the addonentitydamagesources reference of MS Learn (Source: ms-learn).
/kill, minimum health, explosions
/kill{conflict}: there is an answer that/killis not damage so damage_sensor cannot block it, and there is also a report that it was blocked with damage_sensorcause: all+deals_damage: false. There is a report that setting min equal to value/max inminecraft:health, as in"value":1,"max":1,"min":1, also blocks /kill but the "died" message still appears (Source: bedrock-wiki entities/invulnerable-entities).minis not in the official docs, and there is also a report that it did not work. The alternative is to spawn a clone on death.health.minkeeps it from dying but also does not despawn it, so a despawn component is needed. The alternative is resistance 255. There is a bug that oncehealth.minis reached it takes no damage at all afterwards (permanently invulnerable even after healing or re-adding; one report could not reproduce it). Script KO mechanic: cancel the fatal hit inworld.beforeEvents.entityHurtand dohealth.setCurrentValue(1)insidesystem.run, with the filter{entityFilter: {families: ['dynamic_npc']}}(families is an array,typeis a single string).- An entity immune to the script
entity.remove()cannot be made. - There is a case that worked around undead entities dying to TNT/explosions by moving them 1000 blocks above the ground.
{single report} minecraft:explodewith"breaks_blocks": falsegives only damage and does not break blocks. Withpower: 0it has no effect. To spread fire like a Molotov,breaks_blocks: trueis needed.- Items disappearing in lightning could be blocked neither with fire_immune nor with damage_sensor.
Max health, knockback, death presentation
- Max health is set only in entity JSON. There is a report that script setters do not update the UI. For players, set both
valueandmaxofminecraft:healthin aplayer.jsongroup (for example 22/22) and fire it withplayer.triggerEvent('evt'). This method is not compatible with other add-ons that modifyplayer.json. Spawning with very high health kills it immediately, so halve damage with damage_sensor or use resistance. - Knockback:
knockback_resistancevalue 1 means no knockback. A wind charge is also knockback so the same value blocks it, andis_pushable:falsedoes not block it. There is a report that it does not work on players. Sprint knockback applies separately (no resolution). There is no component that turns off attack knockback, so cancel theentityHurtbeforeEvent and useapplyDamage, or clear the velocity on the next tick. - For damage during invulnerability frames, setting health with scripts is the only workaround. In the beforeEvent cancel a non-fatal hurt and set health directly, but let fatal hits through so that the death message appears. Hit/death sounds are not exposed to scripts.
- Canceling the vanilla death animation: use damage_sensor
has_damage fatal,deals_damage:falseand an event, or cancel with scripts and thenentity.remove(). The tilting effect when a mob dies cannot be removed easily. - Experience drop:
"minecraft:experience_reward": {"on_death": "query.last_hit_by_player?5:0"}. Rather than spawning many xp_orbs, it is easier to spawn and kill an entity that reads the experience from a property. - Effect immunity is done with
minecraft:mob_effect_immunity{"mob_effects":["poison"]}(see nautilus). The amplifier of an effect applied by an attack cannot be set with JSON, so use scripts. - A mob that does not hurt players but is not passive still lands hits with damage 0, so use a strong Weakness or a reach multiplier of 0 like the creeper.
- Combat notes: a critical hit is 1.5 times and Bane of Arthropods applies to the
arthropodfamily.minecraft:cannot_be_attackedwas added in 1.21.50.25. Daytime burning is blocked by the fire resistance effect or a glass helmet. There is a report that the hearts of a mount with health above 80 are cut off at 4 rows in multiplayer and absorption hearts are capped at 8 cells.{single report}
5. AI, targeting, combat
Attack requirements
- An attacking mob needs navigation (
navigation.walk),movement/movement.basic,follow_range, a targeting goal (nearest_attackable_target,hurt_by_target), an attack behavior (melee_attack,melee_box_attack,ranged_attack,delayed_attack) andminecraft:attack, all of them. An attack behavior includes moving to the target. With onlybehavior.move_towards_targetit approaches and then loses interest. Even an attacker standing in place needs navigation and pathfinding.{community confirmed} - Every
minecraft:behavior.*needs apriority, and lower is higher priority (0 is the highest). A low-prioritylook_at_playercan stop an attack. If a sitting entity slides, raise the sit priority above follow/interact. Theprobability0.05 oflook_at_playeris evaluated every tick, so raise it to 0.5 to make it noticeable. - Common causes are the Peaceful difficulty and using
is_playerinstead ofis_familyin the target filter. - If
nearest_attackable_targethas noentity_types, it attacks everything its hitbox touches. To make it not attack players unless provoked, remove player from entity_types and keephurt_by_target. Include/exclude with the filteris_family,subject: otherandoperator!=. - For targeting through walls set
"must_see": falseand a largemax_dist, and to keep chasing also setmust_reach. The range is limited byminecraft:follow_range(default 16, and the vanilla zombie's random 16~48 is hardcoded).within_radiusmust follow the simulation distance, and amust_see_forget_durationthat is too large can break targeting. If it cannot see beyond 10~12 blocks, addfollow_rangeandmove_towards_target. - Speed is decided by
minecraft:movement(the value is multiplied) and thespeed_multiplierof melee_attack. The speed multiplier insidenearest_attackable_targethas no effect. - Filters for tag-based targeting accept only hardcoded tag values. You cannot exclude by changing properties, so use a
has_tagfilter, scripts orhurt_on_condition. There is no native team target support. - To prevent allies from attacking each other, use
is_family+notin thebehavior.hurt_by_targetfilter. Group aggro (zombified piglin style) isminecraft:angry(broadcast_anger). There is a report thatbroadcast_anger/broadcast_range/broadcast_targetsdid not work in format 1.26.20. - The
target_distancefilter is evaluated only when a target already exists, so it cannot be used to narrow the selection range ofnearest_attackable_target. The same kind is not excluded automatically, emptyfiltersaim at everything, and villagers that were only given an attack fight each other. To keep raiders from targeting allies, exclude them in the filter. - To ignore a player with a tag, put a
has_tag+"operator": "!="filter in targeting and the same filter inbehavior.stop_attacking_if_target_invalid(subject target) too.area_attackworks the same way. Even with a mask, mobs already aiming keep attacking, and a setup that used twoentity_typesentries to change aggro distance by armor gave unstable results. - To limit group anger to its own kind, use
"broadcast_targets": ["family"].minecraft:angryalso needs a priority and filters. owner_hurt_targetalso needs an attack component.hurt_by_targetis fixed to the first attacker. How much invisible/sneaking players are ignored is decided by the multiplier of the targeting component.- Forcing aggro with a command:
damage @s 0 entity_attack entity <target>(melee only). Giving the player family to a custom entity has a bug where it gets dragged by camels. To reduce player aggro (like invisibility), change the player family inplayer.jsonor use an armor render trick.
Attack modes and special attacks
- Switching between melee/ranged modes changes the
melee_mode/ranged_modegroups withminecraft:target_nearby_sensor(inside_range,outside_range, theon_inside_range/on_outside_rangeevents) (see blaze, breeze, drowned). Put a guard so that it does not switch in the middle of an attack. - No component keeps a distance from the target. Change the movement values with the same
minecraft:target_nearby_sensorand component group swaps. A mob that gets too close to the player and misses its attacks was fixed by a script that checks the target distance and line of sight and pushes the mob back with a small knockback orapplyImpulsewhen it is within range.{single report} - For several attacks, put one group per attack and remove the other groups when switching. Pick with
randomizeand do not repeatedly useentity_sensorfor patrol mode switching (it resets the other modes). - Do not use
delayed_attackandmelee_attacktogether on one mob. Theon_attackevent ofbehavior.delayed_attackdoes not fire (a bug), so use a timer component. - Shooting without line of sight (Breeze style) uses
behavior.fire_at_target(pre_shoot_delay,post_shoot_delay,attack_cooldown,attack_range,projectile_def,owner_anchor/owner_offset,target_anchor/target_offset,ranged_fov) instead ofbehavior.ranged_attack. There is noburst_shots, so fire in bursts withminecraft:timerand a group-adding event. The wither's shooting is hardcoded. behavior.ranged_attackhas burst and charge settings such asburst_shots,burst_intervalandcharge_charged_trigger/charge_shoot_trigger. Read the aiming state withquery.facing_target_to_range_attack. Bothranged_attackandfire_at_targetdid not shoot beyond about 16 blocks.attack_cooldownonly blocks choosing a new target. To change the projectile per target kind, add a different shooter group with environment_sensor.- A cannon is
minecraft:shooter(def,power) +behavior.ranged_attack. Usingmove_around_targettogether makes it shake, so remove thetarget_distancefilter. - Leaping uses
behavior.jump_around_target(jump_angles,prepare_jump_duration,jump_cooldown_duration,filtershas_target, animation queryquery.is_jump_goal_jumping) andbehavior.leap_at_target.stalk_and_pounce_on_targetis limited.applyImpulsefor script leaps is rough, so teleport-based is smoother.applyImpulse/applyKnockbackalso apply to creative players, so filter by game mode. behavior.sonic_boomkeeps firing on non-warden mobs, so adjust priority and cooldown or put it in a group. Spear use isbehavior.use_kinetic_weapon(zombie). No vanilla mob uses a shield, so make it with scripts and components.- In the 27.0.20 preview, the summon step
shapeofbehavior.summon_entityacceptssphere, which spreads the entities over the surface of a sphere (changelog). - For lasers, to avoid projectile lag, small invisible damage entities are placed in a row with
summon <entity> ^^^N. - For sound hunting (warden style), the warden runtime ID gives sniffing but
vibration_listenerdid not react (no resolution). - The turret view cone compares the angle
acos(dot/(|a||b|))between the view vector and the vector from the head to the target against half the FOV (79/2). The vectors are normalized. Attack range is measured to the hitbox, not the target center.
Avoidance, gaze, other goals
behavior.avoid_mob_type: thetarget_distancefilter works only when the mob has a target, and avoidance seems to happen only within about 3 blocks. There is a report thatmax_fleedoes not work.filtersofbehavior.look_at_entityis ignored (it looks at the nearest entity). The workaround is nearest_attackable_target with a family filter + look_at_target.- Known behavior bugs (2026-08):
move_to_landignores custom entities,random_look_around_and_sitignores look time, swim navigation ignoresavoid_waterwhen on, and on_start/on_end ofbehavior.temptdo not fire.behavior.lay_eggcrashes if the egg block is replaced with an item.circle_around_anchorworks only on flying mobs.stomp_turtle_eggis hardcoded to turtle eggs. - Behaviors that are mob-specific or conditional:
run_around_like_crazyis horse only,swellis creeper only,dash_actionmust be on the ground, andbreak_blocksneeds mobGriefing.move_towards_targetignores the speed value, andplay_deadhasforce_below_health. Following isfollow_mob/follow_parent/follow_caravan, and finding a mount isfind_mount. The direction a mob looks follows its movement direction. - The
spawn_categorycomponent is not used (the iron golem targets by the familymonster). (speculative) - Raider patrols are spawn rules (the captain and then followers). A custom patrol is made with a
minecraft:patrol_followergroup,behavior.follow_target_captain(priority 5, speed_multiplier 0.6, within_radius 64, follow_distance 5) andminecraft:is_illager_captainin components. Spawning issummon custom:mob ~~~ minecraft:promote_to_illager_captainandminecraft:spawn_as_patrol_follower. Raids have theminecraft:can_join_raidcomponent and the spawn rule hasmobevent_filter. Raid waves cannot be edited and spawn groups are not data driven, so adding raiders uses a workaround that spawns extra mobs withminecraft:spawn_entity{single report}. - Sharing the target of summoned mobs: the old
vex_copy_targetis dropped. Digging (sniffer style) isbehavior.random_search_and_dig(target_blocks,item_table,on_*events). - Villager professions
{conflict}: there is a report that professions are hardcoded so new ones cannot be added, and a 2026-11 answer that workstation assignment is in the villager BP. Villager breeding food is hardcoded, and a custombehavior.sleepignores vanilla beds. For trade randomness see the wandering trader file. - There is no native way to make a custom villager profession block. Use
move_to_block+ a profession group event and store block positions with scripts. To refresh the trade table you must despawn and respawn.minecraft:dwellermakes villagers claim beds and workstations. Even one missing comma in a trade table breaks the whole file (Failed to load trade table). Map trades usedestinationof theexploration_mapfunction (for examplevillage_taiga). - If mob griefing is off, mobs do not pick up items (behavior change in 1.21.44).
- Bat-like resting on ceilings without a runtime identifier: reuse the frog's
minecraft:behavior.croakwith filters (for exampleduration4.5 seconds,interval10 to 20 seconds, andfilterswithall_ofonin_waterfalse andis_undergroundtrue). A BP animation or animation controller watchesquery.is_croakingand runs commands (for example levitation) that hold the mob in place while it plays the resting animation. It works on ceilings; resting in the middle of a wall needs a script raycast.{single report}
6. Movement, navigation, pathfinding, physics
Climbing ledges and jumping
minecraft:variable_max_auto_stepcorresponds to stepHeight in Java. Write it as below, where 0.5625 is half a block and 1.0 is one block. At about 1.2 mounts also climb blocks.minecraft:is_stackableblocks climbing. It is a component since 1.20, and to climb while ridden all three values must be set. Above 1.6 it crosses fences, and the camel uses 1.5625.{community confirmed}
"minecraft:variable_max_auto_step": { "base_value": 1.5625, "controlled_value": 1.5625, "jump_prevented_value": 0.5625 }
can_climbused alone gives neither auto jump nor wall climbing. Wall climbing needsnavigation.climb+can_climb, and the spider runtime ID also changes the collision box.jump.static{conflict}: there is a report that a mob withnavigation.walkcan_jump: truethat does not climb a 1-block ledge needsminecraft:jump.static, and also a 2026-04 report that an entity usingjump.staticstopped climbing and was fixed with"minecraft:variable_max_auto_step": {}.minecraft:jump.dynamicdid not work. There is also a report that jitter of a fast pathfinding mob stopped whenjump.staticwas put back.{single report}- For a mount to climb a half block, copying horse.json needs
minecraft:horse.jump_strength(andinput_ground_controlled+ rideable). If a follow_owner entity jumps in place in front of a 1-block ledge, use afollow_mobwith an owner filter orvariable_max_auto_step. For a greatly enlarged quadruped, if the base pivot is too high, melee attacks miss and it cannot climb blocks well.
Pathfinding
- Vanilla pathfinding range is about 16 blocks. For far routes, put a target or checkpoints that move step by step.
follow_rangedoes not extend it. - To make it walk to a destination, spawn an invisible target entity at the destination and make the mob aim at it. Scripts have no pathfinding API. Instead, check obstacles with
if block ^ ^ ^0.25 airand steer with facing teleports, or giveapplyKnockback/applyImpulsealong the route. behavior.move_to_blockis the recommended route/waypoint tool. Place blocks as waypoints, change groups inon_reachto aim at the next block kind, and give it top priority to avoid jitter. The limits are as follows.- It detects only within about 20 blocks (64 is too large). It is very slow if the list is large or there are many blocks around (30~60 seconds in caves). A list of 21 failed.
- If the collision box is larger than
goal_radius, it stops right in front. Shrink the collision box and usecustom_hit_test, or remove the component on arrival. - flower_pot, cauldron, hopper, brewing_stand and cake were not targeted. A custom block with no block item can also fail.
- A block that shares the ID with an item is caught with the
tile.prefix (tile.ns:block), but entities ignore blocks that usereplace_block_item(alsobehavior.avoid_block). - The tag form
"tags": "q.any_tag('x')"is undocumented in move_to_block (initemsofbehavior.temptit works in the latest version). - Aquatic entities barely move along the y axis even with a larger y distance (land mobs and fish with
minecraft:flockingwork). The stopgap is a largergoal_radius. Breaching in the navigation component was suspected and turned off (turning it off was reported to break dolphins), and drowned have a similar problem pathing upward underwater.{single report} - Opening doors uses
move_to_block+on_reach, and to make it get pulled like a bee usemove_to_block+minecraft:homeset at spawn.
minecraft:preferred_path:default_block_cost,jump_cost(higher is chosen less and 1 is most preferred),preferred_path_blocks:[{blocks,cost}],max_fall_blocks. The iron golem uses it. There are two reports that a mob with this component did not leave low-cost blocks even while attacking.- Pathfinding bugs and limits: in 1.21.114 pathfinding through custom doors failed, and the problem of pathfinding on dirt paths is MCPE-160960. The problem of large-hitbox mobs moving along walls is unresolved. To make it avoid fire, use
avoid_damage_blocksof navigation. navigation.walk.blocks_to_avoidavoids by tag with[{"tags": "query.any_tag('trapdoors')"}]. Making it pass through blocks is impossible.behavior.mount_pathingalso finds paths while ridden, but only when the player is not controlling.
Water, flight, swimming
- To make it sink and drown, remove
behavior.floator givecan_sink: truetonavigation.*. An underwater mob that digs through blocks needsunderwater_movement+breathes_water/breathes_airandminecraft:physicshas_gravity: true(see squid/fish). - A flying entity trapped in water is solved with
minecraft:underwater_movement(value 0.5, max 0.5),minecraft:floats_in_liquidandminecraft:water_movement(drag_factor 0.8). - Flying + swimming (parrot-based) switches between a flight group and an underwater movement group with
minecraft:environment_sensor. For walking + flying, copying the parrot is the template. A custom flying mob copies the phantom behavior or moves withentity.tryTeleportevery tick. There is no flight speed API, the speed effect does not work, and repeatedapplyImpulse/applyKnockbackworks. - A floating horse:
behavior.float(priority 0),navigation.walk(can_path_over_water,avoid_water,avoid_damage_blocks),minecraft:physics.minecraft:buoyantis for floating on liquid like a boat. - Swimming state queries: land is
!query.is_in_water && query.is_on_ground, and swimming isquery.is_in_water && !query.is_on_ground. Swimming and aligning direction like a dolphin is animation math, not a component (dolphin.animation.json in bedrock-samples). - Flight methods copy vanilla combinations: parrot (flying), ghast (floating), bee/allay (hovering), phantom (gliding). Other movement notes: leaping above the surface is the dolphin's
behavior.random_breach, walking on lava is a strider-style setup, swimming copies the drowned, and floating is a levitation effect trick. Themove_to_waterof an adult mob needed a fix. - There is a bug report that
query.is_on_groundcomes out true on mobs with no gravity.{single report} - After the Happy Ghast update, if a floating mob does not look in its direction of travel, try
minecraft:body_rotation_always_follows_head. There is no component equivalent to the dolphin's grace.
Pushing, physics
- An entity standing on a block pushed by a piston moves even without a pushable component.
minecraft:pushablehas not been parsed since 1.26.10. Workaround:world.afterEvents.pistonActivate,piston.getAttachedBlocksLocations(), and a teleport back to a position stored in dynamic properties. - Water flow is not blocked by pushable false, and with
has_gravity falseit drifts away. Teleporting every tick is the only fix. - Drift is due to vertical inertia. There are
minecraft:friction_modifieranduses_uniform_air_dragbut no liquid drag component and no XZ deceleration component. - Ball physics (1.26.30):
minecraft:bounciness,friction_modifier,air_drag_modifier,buoyant(movement_type "bobbing"), thepushable_by_entitypreset (push_mode: "ball", kick speed field). The docs are late. - Stopping movement is movement value 0 (at 0 the mob twitches). In scripts it is
Entity.clearVelocity(). - Behaving like a block (rotation/placement) uses
minecraft:body_rotation_blockedandminecraft:rotation_axis_aligned.rotation_axis_alignedlocks to 90-degree steps and breaks movement on moving mobs, so in that case lock only visually with a-q.body_y_rotationanimation. A facing teleport can rotate it instantly, but frog rotation was not fixed by tp (north yaw 180), andmax_turnhad no effect. Teleport interpolation cannot be turned off and can only be corrected with animations. rail_movemententities are lifted above rails, so fit them withtryTeleportwith the keep-velocity option.minecraft:dimension_boundfor portal blocking affects both dimensions.- To let a custom entity walk on brittle ice without breaking it, one answer gives it
minecraft:can_stand_on_brittle_ice. The bedrock-samples entity files do not use it yet.{single report}
7. Riding (rideable) and seats
- Ground control is
minecraft:input_ground_controlled, and it usesseat_countandseats[].position(0,0,0 is the floor). Add seats in JSON, not in Blockbench. Decide what can ride withmin_rider_count/max_rider_countandfamily_types(if not removed, zombies ride horses). The order ofgetRidersis the same as the seat order. - To put a mob on a horse, it needs a family that matches the horse's
family_types, otherwise "riders that did not meet ride conditions" appears. A reference hoglin seat position is[0, 1.35, -0.2]. - You cannot dismount with an event, so use
/ride ... stop_riding. Grabbing is done with/ride ... start_riding ... teleport_rider. To keep entities out of boats, detect riding with a controller and teleport. There is no filter for minecart pulling, so block wide mobs withpassenger_max_width. on_rider_enter_event/on_rider_exit_eventgo on theminecraft:rideablecomponent itself, not inside aseatsentry (needs about 1.21.100).- A seat's
third_person_camera_radius(1 to 64, the third-person camera distance) andcamera_relax_distance_smoothingwere confirmed to work on Windows 1.26.65.1. An out-of-range value rejects the entity in format 1.26.60 and is silently ignored in 1.26.50 (section 17){measured}. - If a multi-seat mount does not move, set
controlling_seatinminecraft:rideable(whoever sits first becomes the driver). - To make a rider control the mount, copy the Chicken Jockey code and lock the rider rotation. With
body_rotation_always_follows_headthe mount turns with the rider's gaze. Controlling by a non-player rider is unresolved. - A custom mount's rotation jumps when it passes a certain angle (
lock_rider_rotation/minecraft:rotation_locked_to_vehiclealso jump or are slow). No fix was found. rider_can_select_entitylets you hit the mount, so cancel it with a damage sensor. For tall riding entities userider_can_interactandcustom_hit_test. In survival mode, hits above about 6 blocks of height are not registered.- The problem of dismounting when entering water needed the seat to be raised. Reloading the world can dismount, so detect it with a sensor, respawn the dummy and ride again.
- If a seat is more than about 5.8 blocks from the origin, the entity inventory closes immediately (a distance check, no fix). The problem of a rider's
is_collidablepushing the mount could not be turned off withminecraft:physicseither. - For several fixed seats, use a body that has the seats and pre-spawned riding entities. A rotating turret puts a child entity as a rider of the body and puts the player on the turret.
- To put an entity on a player, use
/rideand a parrot-line family (parrot_tame) or modifyplayer.jsonrideable. Position and rotation are decided byplayer.jsonrideable. Fish mobs cannot ride other entities (hardcoded). A ridden entity is vulnerable to attacks, tripwires, pistons, pressure plates and flowing water. Riders are not pushed and are not rendered in first person. On 2026-11-15 a parrot-style seat entity was still not visible in first person even after editingplayer.entity.jsonand the render controller, and the suggested alternative was an attachable (needs an item). - To hold a mob in one place, seat it on an invisible seat entity and move the seat back to its spot periodically (every second). Husks, foxes, NPCs, villagers and allays seated this way did not wander.
{measured}(2026-11-17, Source: repo-guide) - Zombie riders:
/ride ... start_riding ... teleport_riderfails on adult zombies and works only on baby zombies. Only baby piglins ride hoglins. The Camel husk (1.21.130) is summoned with/summon minecraft:camel_husk ~ ~ ~ ~ ~ minecraft:spawn_with_rider. - Hiding the horse health bar is
/hud @s hide horse_health(restore with/hud @s reset horse_health) or health value=max=min=1. The seat positions of vanilla horses/camels/pigs change only in the behavior file. For the leash position, add aleadlocator to the model. - To keep boats/minecarts from carrying entities, use the warden runtime ID or make the width larger than 1.375.
- A minecart-style mount is
runtime_identifier: minecraft:minecart+minecraft:rail_movement. On curves, rotate the root bone with an animation to matchq.body_y_rotation(+90/180/270 offset). For big trains, a script + Bezier spline is recommended. - WASD control of flying mounts is
minecraft:free_camera_controlled+ animation queries (unresolved), and turning visually to follow the rider's gaze usesq.rider_head_x_rotation(0)(the argument is the seat index). Climbing for a controllable spider mount is impossible. A flying mount pattern shared in 2026-11 keeps it in ground movement mode while ridden and gives a levitation or slow falling effect depending on gaze pitch. can_power_jump{conflict}: there is a report that it caused dismounting on jump and a report that a tank made with it worked.- The display of a custom saddle item disappears on rejoin and only
minecraft:saddleis kept. If the saddle is not visible, checkminecraft:is_saddledin the BP. - For an owner-only tamed mount there is no "rider is the owner" JSON filter, so use scripts. The Happy ghast/ghastling is a moving platform you can ride standing, and you can stand on top with
"minecraft:is_collidable": {}.
8. Projectiles
Components and runtime_identifier
- Basic damage:
"minecraft:projectile": {
"on_hit": { "impact_damage": { "damage": 6, "knockback": true, "destroy_on_hit": true }, "stick_in_ground": {} },
"power": 6.7
}
For an arrow that cannot be picked up, use remove_on_hit/stick-in-ground.
- The
damageof the vanilla arrow.json is 0 and the real damage comes from multiplying bypower_multiplier. A projectile is also an entity so the model needs only geometry, but mesh (flat texture) models are not supported on entities. - The vanilla fireball has
is_summonablefalse so it cannot be/summoned. The projectileshoot_soundseems not to work andhit_sound/hit_ground_soundwork. For a projectile fired by an item, create it in only one of the item definition and the script (creating it in both spawns two). - A projectile with no collision box also deals damage. It is treated as a box of size 0 and the hit margin grows by 0.05 per tick up to 0.3 blocks.
on_hitalso fires without a collision box. Conversely, enlargingcollision_boxbeyond 1 block does not enlarge the hit range. - Effect of runtime_identifier:
minecraft:arrowis the only case where gravity 0 works properly. The owner is respected and the direction is right.minecraft:snowballfixes block placement interference and parabola problems but breaks other components. It ignores the owner in scripts (damagingEntity becomes the projectile). There is also a report that snowball was needed so that a mob has aggro only toward the shooter.{conflict}- Copying a vanilla fireball copies fireball.json including
"runtime_identifier":"arrow"and the client entity. A custom dragon fireball that exploded the moment it spawned was fixed with"runtime_identifier": "minecraft:dragon_fireball". - Projectile
isolated_physicshas no effect with a vanilla projectile runtime ID (Preview content error).
- Some components need a runtime ID, but the list is not known. Avoid runtime_identifier if possible.
- Straight flight is gravity 0 +
inertia, and slowdown in water isliquid_inertia. The homing flag did not work. ignored_entities{conflict}: it works for vanilla IDs but was unstable for custom IDs (experimental). The reliable workaround is to give the shield entity a vanillaruntime_identifierand put that vanilla ID in. Another user said custom IDs also worked in format 1.21.40/1.26.0.- For the problem of exploding early when passing through a shield, start with a non-exploding projectile group (a 0.1~0.3 second timer in
minecraft:entity_spawned) and then switch to the exploding group. - Explosion on hit is done with
minecraft:explodeinside a group, but breaking obsidian and bedrock could not be blocked.minecraft:shooterpower0.2 gave an "instantly removed" bug.impact_damage.catch_firemakes fire-immune mobs take no damage. - Reflection:
minecraft:reflect_projectiles(azimuth_angle,reflection_scale) did not reflect custom projectiles. There is also the projectilereflect_on_hurt. - The
definition_eventon_hit may not fire on an entity hit, so use the script projectile hit event. Projectile collision cannot be detected in the RP, so set a property from scripts. - Since the stable patch around 2026-08 projectile damage is proportional to speed (projectiles with power above 50 jumped from about 6 to 100 or more). Give fixed damage with scripts. Automatic guns lose hits because of damage immunity ticks, so use override damage that ignores immunity.
- Arrow knockback is given by a custom projectile or by scripts on hit. To let a tagged player pass through, use a
has_tagfilter in theplayer.jsondamage_sensor. To fireskin_idvariant projectiles, make separate entity files. Projectiles are not perfectly synced visually and can "hit" and vanish on a target that looks out of reach. - There is a report that the behavior of
offset/anchorofminecraft:projectilechanged after an update. Anoffsetinside a group was the cause of ranged mobs dropping out of the air and losing collision. Custom sounds ofminecraft:shooterare buggy.
Direction
- To make it face its direction of travel, you need an animation like the arrow. Bone
bodyrotation["variable.shake_power - query.target_x_rotation","-query.target_y_rotation",0]or["query.target_x_rotation","query.target_y_rotation",0], and putanim.arrow.target_rotationin the client entityanimations. Copy arrow.animation.json. Usetarget_x/y_rotation, notbody_x_rotation. There is a report thattarget_y_rotationdid not work for vertical shots. There is a report that the problem of the x rotation sign flipping when shooting downward was solved with the isolated projectile physics approach described by MS Learn. Fixing a 2D sprite flat on the screen is possible only with particles. - For a projectile spawned by script, do
projectile.setRotation({x: player.getRotation().x, y: player.getRotation().y})beforeshoot(). It needs a runtime ID and resets after landing.
Script firing
const proj = entity.getComponent('projectile');
proj.owner = player;
proj.shoot({ x: v.x * 1.5, y: v.y * 1.5, z: v.z * 1.5 });
- Compute the direction from
player.getHeadLocation()/getViewDirection(). If the owner is set, the shooter is not hit and mobs have aggro toward the owner. Useshootrather thanapplyImpulse. If a transformed projectile loses momentum, store the velocity andprojectile.shoot(). - A custom projectile created with
dimension.spawnEntityand fired withshoot(vector)flew upward or dropped even withgravity: 0.0andhas_gravity: false, and setting the entity'sruntime_identifierto snowball made it fly straight. Spawning it atgetHeadLocation()without a view-direction offset was enough{single report}. - The
iconcrackhit particle of a custom projectile shows the wrong atlas texture (not resolved). - For spear-like projectiles (javelins), the snowball runtime ID does not persist like a trident and the trident runtime ID breaks other behavior. Work around it with a timer that kills and respawns it about every 30 seconds while it is stuck in the ground.
9. Breeding, taming, age
- The taming pattern is
minecraft:tameable,minecraft:is_tamedandbehavior.follow_owner(priority 1, speed 1.5, start_distance 16, stop_distance 10). A custom taming entity needs bothis_tamedandtameable. Vanilla mobs losetameable/tame_mountafter taming (intended). tame_event.eventis a string, not an array ("event": ["x"]silently does not fire):"tame_event": {"event": "my_ns:enable_doors", "target": "self"}. To open doors only after taming, addcan_pass_doors/can_open_doorsofnavigation.*andbehavior.open_dooras a group and remove the default group in the same event.- For a pet that does not teleport to its owner, switch to allay's follow-owner component or use
follow_ownercan_teleport:false. - The taming/owner system targets only players. There is no "is following the owner" query, so use a property set by group swapping or the
owner_distancefilter of a sensor. - Script taming uses
entity.getComponent("minecraft:tameable").tame(player)after spawning and firesminecraft:on_tameif needed. The entity needs follow_owner, tameable and sittable (owner_hurt* to fight). Setting the owner with scripts skips the food taming logic and eating particles but hearts appear. A saddled horse is made withspawnEntity("minecraft:horse", loc, {spawnEvent:"minecraft:spawn_tame_adult"})followed byreplaceitem slot.saddle. - The taming hearts and eating particles are hardcoded. The tamed entity death message
Unknown was slain byis the known bug MCPE-38136 and is worked around with a name tag. It occurs only on custom-namespace taming mobs (the death message is built before the event), there is a workaround of settingnameTagat spawn, and with the pig runtime ID it shows as "Pig". minecraft:trustingis a mob stopping its fleeing (ocelot, fox) andminecraft:tameableis a player becoming the owner (horse, wolf).sittableseems to block inventory interaction of tamed entities (no answer).- Going through a transformation (
minecraft:transformation) loses the taming state and properties and the new entity gets full health. Health is kept only when transforming by group/event, and equipment is kept. The workaround is to fire an event, read the properties indataDrivenEntityTriggerEvent(afterEvent), remove it yourself, spawn it and apply the properties again. An event can be attached withinto: "ns:bull<minecraft:entity_born>". - Check for a baby with
entity.hasComponent("minecraft:is_baby"). If a baby grew up but does not enter the breeding state, put adult group adding and baby group removal inside everyrandomizeitem of the grow event and put the offspring component in the adult group too. - Breeding items can also be the string
"breed_items": ["storm:item"].breeds_withis either an object keyed by mob ID as in the vanilla wolf ("minecraft:wolf": {}) or an array withmate_type/baby_type/breed_event. A higher-priority avoid goal can block breeding, so set the breed priority to 0. - Several offspring are decided with
spawn_entityand the breeding event, and when spawning a baby with scripts usedimension.spawnEntity(typeId, loc, { spawnEvent: "minecraft:entity_born" }). To use a spawn egg on a parent mob, useminecraft:spawn_egg_interaction+offspring(bedrock-samples cow.json), and love mode needsbreeds_with. - Laying eggs: an item egg (chicken) is
minecraft:spawn_entity, and a block egg (turtle/frog) isminecraft:behavior.lay_egg. There is a bug wheretarget_materials_above_blockdoes not recognize water so eggs cannot be laid in water. - For loot of baby variants, if
minecraft:ageableis present the baby loot table may not apply, so put the loot component inside the group. For a custom wolf armor style item, an implementation that decreased an int property on each damage and broke it at 0 worked. - A mob that spits out an item when fed uses
on_interact.filters(is_familyplayer,has_equipmenthand),use_item,swing,play_sounds,interact_textandspawn_items.table(loot table path) inminecraft:interact. TheplayerInteractWithEntityafter event fires on custom entities only ifminecraft:interactexists. The sneaking filter isis_sneaking. - Leash:
on_leash/on_unleashofminecraft:leashable. Foron_unleashto fire when the leash breaks,on_unleash_interact_only: falseis needed. The default of this value is true (related bugs MCPE-228197, MCPE-166369). A leash that does not drag cannot be made, and a leash cannot be attached during a trade. The trick of detecting movement with a leash knot no longer works. - Vanilla breeding produces only one baby. A second color like tropical fish is not supported on custom mobs. An inventory entity that only the owner can open stores the owner ID in dynamic properties and cancels other players' interaction with scripts.
10. Spawn rules, despawn, persistence
Spawn rules
- Natural spawning needs a
spawn_rulesfile (without it, only by egg). The spawn rule format is 1.8.0 or 1.13.0, thebrightness_filterlight is 0~15, and when testing use a weight of about 200 (1 is rare). (Source: bedrock-wiki entities/spawn-rules) minecraft:spawns_on_block_filtertakes a single block name string ("minecraft:grass_block"inpig.json), an array of strings (bat.json), or an array of{ "name": ... }objects (wolf.json){vanilla}.- The client code that reads spawn rules has two formats: the condition component style (
minecraft:weight,minecraft:herd,minecraft:permute_typeand 25 kinds in all) and the simple format of the official sample schema 1.21.60 (placement, andherds[]andpermute_types[]insideconditions[]). The guaranteed count member ofpermute_typeisguaranteed_countin the old parser andmin_guaranteedin the simple format schema, and they differ{code}. Files withguaranteed_countandmin_guaranteed(format 1.8.0) and a simple format file (format 1.21.60) loaded without log lines, but the actual spawn behavior was not measured{measured}. The reference has noplacement. - Without a biome filter it does not spawn. Join several biomes with
any_of+has_biome_tag, and theoverworldtag is not needed separately. The higher the weight, the more common. - What spawn rules cannot do: fire by events or scoreboards, X/Z coordinate filters, elapsed day conditions, variants by placed block, and spawning in the air. If one mob has several rule files, the later one seems to override.
- Spawning inside villages: use
player_in_village_filteranddensity_limitor put a temporary sensor that despawns if there are no villagers. A filter based on a bell block failed, and a village is judged by a collection of villagers. - Mob caps cannot be changed. Spawners, spawn eggs, reinforcements and event summons ignore the cap.
- Vanilla spawn rules are overridden at the same path. The 40~50 Enderman herd comes from the
herdsetting. Modifying the vanilla zombie spawn rule did not stop vanilla spawning. Turn it off with/gamerule domobspawning falseand spawn custom mobs with commands/scripts or despawn vanilla mobs. Deleting the vanilla spawn rule file of a specific mob caused bugs (not resolved). delay_filter/world_age_filterare in seconds, not ticks.delay_filterguarantees spawning only according tospawn_chanceafter the min/max time.- Daytime spawning is blocked by
population_control: monster(and themonsterfamily). There is a trick of filteringis_daytimein theminecraft:entity_spawnedsequence of a spawner entity and doing aqueue_commandsummon. There is an answer that usingpopulation_control: monsteron herd animals that appear in the day is wrong andanimalshould be used, but there is also a case fixed by changing animal to monster (conditional). - To spawn only once, use scripts + dynamic properties (better than scoreboards).
- Spawning on custom blocks
{conflict}: there is a report that mobs cannot spawn on custom blocks, and also a report that if the custom block is defined inblocks.json(with geometry and material_instances removed) or isminecraft:geometry.full_block, spawn rules treat it as "solid". Spawning not working on custom blocks in a custom biome was reported as a bug (2026-03-17). In 2026-08 there was also an answer that vanilla full-block geometry and a matching render method are needed, and a case that failed even with opaque. - Underwater mobs in a custom water biome spawn only on the floor without an underwater runtime ID (worked around with a proxy entity). Spawning above the water surface is not possible. Leaving them in a sitting state in water prevents drowning.
- Other: lava spawning is
"minecraft:spawns_lava": {}(a report that it breaks when used with spawns_on_surface), and on ground/underground isminecraft:spawns_on_surface/spawns_underground. Whether the sky is visible is checked with scripts (the top block y). In a void Nether pack with no ceiling, Nether mobs do not spawn (seems hardcoded). There is a report thatminecraft:spawn_eventin spawn rules does not fire. Behind the monsterbrightness_filterthere is an engine light limit, so even removing it does not make mobs spawn in bright places.{unverified} - Herd spawning is where the spawn rule spawns only the leader and the leader spawns the members.
entity_spawnedinside a rule does not work, so useentity_type: "NS:NAME<NS:EVENT>"inminecraft:permute_type. - Custom mobs for nether fortresses: a
spawns_on_block_filterwith nether bricks does spawn them, but blazes and wither skeletons fill the mob cap so they appear rarely, and they also spawn on nether bricks outside fortresses. Spawn them by script to keep them inside fortresses.{single report} - Structure mobs: only mobs saved in a jigsaw structure spawn with it (domobspawning true). Spawning after generation is not possible, so use a block or command block that spawns entities.
- In Peaceful,
monstertype mobs despawn. A spawn rate slider is impossible. - Split spawning (slime style, without a runtime ID) was added in Preview 26.20. Particles of the slime runtime ID cannot be removed, so copy the file, drop the runtime ID and use your own particles.
/summonneedsis_summonabletrue (if false, the scriptspawnEntityis also blocked), and thespawnEntityidentifier must match exactly. There is no way to hide it only from the summon command list. Withis_spawnabletrue a spawn egg is made automatically. For variant spawning, define a group + event and usespawnEntity(id, loc, {spawnEvent}).
Despawn and persistence
minecraft:persistentblocks despawning (even outside the simulation distance). Summoned mobs do not despawn. Conversely, a naturally spawned mob can vanish in front of you unless you add a despawn with a distance filter.minecraft:tick_world{conflict}: there is a report that to keep it in a loaded state so that@ecatches it, useminecraft:persistent+minecraft:tick_world(never_despawn). Remarks that the radius is 1 and that it is 2~6 disagree, and on 2026-10-26 there was a remark that entities cannot keep chunks loaded (no answer)./tickingareais limited to 10.minecraft:despawnonly makes random despawning possible. Instant removal isminecraft:instant_despawn. There is a report thatdespawnthrough a group stopped working in some version and a report that it does not despawn with/kill.- An entity that disappears when the player leaves is
minecraft:transient(removed when loaded again and it conflicts with persistent). An entity for wide areas disappears at about 70 blocks and there is no fix.
11. Inventory, equipment, names, boss bar, loot
Inventory
- Size
{conflict}: there is a report of a max of 256 slots, but withinventory_size: 54incontainer_type: containeronly 27 cells showed. The entity inventory UI shows at most 27 cells, and a chest UI needs a custom screen. To exceed 27, raiseinventory_sizeand add cells to the JSON UI. The player inventory size cannot be changed. container_typeis required.behavior.pickup_itemsworks only with a type other than "none" (for exampleinventory) and otherwise fails silently.behavior.equip_itemandminecraft:shareablesalso needinventory. Flying-pattern mobs such as bees/bats/ghasts cannot pick up items well.private: truemakes the inventory not viewable.- For picking up items, configure the options of
behavior.pickup_items, inventory andbehavior.equip_itemtogether, and decide items to exclude withexcluded_items(query filters possible). - Using inventory and equippable slots together broke the display and duplicated items. To lock a slot, put a placeholder item with an item lock.
"*"inaccepted_itemsis invalid. - For backpack/chest UIs the common pattern is to use a transparent container entity.
- Opening/closing the inventory cannot be detected (no event). The interact component overrides opening the inventory. The container of a custom entity cannot be opened by scripts and opens only through player interaction. Make a fake chest with a modal form.
- Inventory drops on death cannot be blocked with scripts (the container cannot be used in the die beforeEvent).
- If the entity inventory title is "Unknown", an entity name lang entry is needed (
tile.x.namedid not work). There are reports thatnameableis needed, that the title follows the name tag, and that even the lang key did not fix it.{conflict}
Equipment
- Equipment is given with
minecraft:equipment(see piglin). Enchanted/trimmed armor is given with/loot replace entity @s slot.armor.chest 0 loot "equipment/trial_chamber_diamond"orreplaceitem entity @s slot.armor.feet 1 idinqueue_command. - The equipment loot table is specified with
tableofminecraft:equipment. Thehasitemselector also works on entities. There was no lag difference between random equipment of one kind and several variant mobs. - Equipment of non-player entities cannot be read or written by scripts. The
equippablecomponent supports only the player type. Use/replaceitemas a substitute. Enchantments of other entities (such as piercing on a pillager's crossbow) cannot be read either, and scripts cannot add components to vanilla spawned entities. - To make an entity hold an item, poll the player equipment with scripts and apply it with replaceitem, and put
enable_attachables: truein the client entity. A fox-style mouth item follows the wiki's entity-holds-item doc. Left-hand item rendering problems come from the model bone name or thecapepivot. - Horse armor and saddle slots use
accepted_items/on_equip/on_unequipevents in theminecraft:equippableslots, where slot 0 is the saddle and slot 1 is horse armor.
Names and lang
- The lang keys are
entity.<ns:id>.name=...anditem.spawn_egg.entity.<ns:id>.name=...(no spaces around=, no%prefix, files aretexts/*.lang). If the name is Unknown, the game language may be en_GB with only en_US.lang present, so create all the lang files. - There is no component that sets a default name tag. Use a script at spawn or a summon command. Show it with
minecraft:nameablealways_show: true. Name tags are not rendered on BP-only entities with no client file. A name tag visible to only some players is impossible. - For an always-visible NPC name, override
minecraft:npc(format 1.19.30) and put"minecraft:nameable": {"always_show": true, "allow_name_tag_renaming": true}, physics with no gravity/collision,collision_box0,damage_sensordeals_damage false,persistentandfire_immune.
Boss bar and loot
- If "Unknown" shows in
minecraft:boss, add the"name"field. Changing or removing the boss bar after changing phases needs a rejoin.hud_rangedisappears at a similar distance regardless of the value and does not reappear (it gets better if you raise the simulation/render distance). A dynamic boss bar links the health of a hidden dummy entity to the boss withhealthChanged. Removingminecraft:bosswith a group does not update the boss bar. The boss bar color can be changed only with a custom UI, and phase transitions are done with health queries or scripts. - Loot tables cannot be appended and only replaced. To add items to a vanilla chest, modify the vanilla table. To keep boss loot from being exploited, add the condition that the player made the last hit.
- An entity loot table needs
rollsandentriesin every pool. Minimal form:
{ "pools": [ { "rolls": 1, "entries": [ { "type": "item", "name": "ns:item", "weight": 1,
"functions": [ { "function": "set_count", "count": { "min": 1, "max": 1 } } ] } ] } ] }
- The count of a dropped item cannot be changed, so despawn it and spawn it again with the new count. Canceling cactus damage on an item entity hides it on the client but it can still be picked up, a bug.
12. Client entity animation and controllers (behavior view)
Wiring
animationsis an object (keys are short names, values are IDs), andscripts.animateis an array of those short names ("animate": ["controller"]).{"controller": {}}or" controller "(with spaces) givesunknown child schema option type. Allowed types: 'molang'. If the form is wrong, it becomes a transparent mob with only a shadow and collision, and the spawn egg is transparent too. If you fixed it by hand, export again from Blockbench.- Children of
animation_controllersare valid only in format 1.8.0. In 1.10.0 and above put the controller ID as a short name inanimationsand reference it inanimate. The controller name prefix iscontroller.animation.<name>. - To always play, put the short name in
scripts.animate. The default playinglook_at_targetneeds no controller. If it works with/playanimationbut does not play in game, the controller is missing fromanimate. To play once on taming, put it in the client entityscriptsinstead of a controller. - Put initialization of variables in
initializeand updates inpre_animation. Using a variable made inpre_animationbeforeinitializegivesunknown variable. Thevariable.melee_spear_equippederror of entities such as zombies is fixed with"scripts": {"initialize": ["variable.melee_spear_equipped = 0.0;"]}. - Controller file rules: the ID must keep the
controller.animation.prefix (otherwise it is not recognized), there is nodescriptionblock, and theanimationsof a state is an array. Animation names in a controller must be the short names of the client entity, and if they differ it fails silently or all of them play. Entities with the same short names can share a controller. scripts.initialize/pre_animationare string arrays. In format 1.8.0initializedid not work.scripts.scalechanges the model size and can use a ternary. Missing&&in a transition expression or a wrong comma/symbol in the animation file breaks silently with no error.- If an animation is not found, check the folder name, short name mismatch and renaming. Blockbench animations may contain
NaN, so change it to0.State moving not foundhappened becauseblend_transitionwas not a number.
Attack and state animations
- The attack trigger is
v.attack_time > 0(custom entities only, not attachables) and the exit is!v.attack_time. To let a long animation finish, also useq.all_animations_finished.v.attack_timelasts only about 0.2 seconds, so to hit a fixed moment of a long attack animation usequery.is_delayed_attackingofbehavior.delayed_attack(true throughout the windup). For an entity with no swing behavior,attack_timeis 0 andquery.is_swingingdoes not exist. There is a report that a delayed attack animation was off from the real hit by about 80%. - Random attack animation: controller
pre_animation: ["variable.attack_rand = math.die_roll_integer(1, 0, 2);"], anattack_selectorstate, aquery.is_delayed_attacking && variable.attack_rand == Ntransition, and it returns to idle if!query.is_delayed_attacking. For walk variants, put an intermediate state that sets a variable withmath.randomon entry. - There is no native hit animation (the warden runtime ID +
query.hurt_time > 0trick, which works only on some entities). Ranged charging isquery.is_charged/q.is_charging, and in scriptsentity.hasComponent(EntityComponentTypes.IsCharged). Sneaking isquery.is_sneaking. - There is no "running" query.
query.ground_speedis speed, not direction, and is hard to trust. Tell forward/backward apart withquery.movement_directionor a combination of tags/properties/scripts. To turn off the movement animation during knockback,query.is_movingis better. - To make a walk animation stop at the last pose, update anim_time with
query.modified_distance_moved / <n>and wrap it in aquery.modified_move_speed > 0.01state. Stretch and shrink with the speed usinganim_time_update(for exampleq.modified_distance_moved * 0.08). - A crawling motion changes the collision box with scripts, or uses an RP-only controller that detects the block one cell above and a 1-block-high collision box. For landing detection, have an animation controller fire fall/landing script events.
Gaze, rotation
- To make the head look at the target, put head rotation
["Math.clamp(query.target_x_rotation,-30,45)","Math.clamp(query.target_y_rotation,-45,45)",0]andrelative_to.rotation: "entity"in a"loop": trueanimation (without clamp the head spins). To look instantly with no server delay, use"rotation": [0, "query.rotation_to_camera(1) - this", 0]+relative_to: {rotation: entity}. A head rotation animation needs the bone name to be exactlyhead. - A billboard is
["query.camera_rotation(0)", "-query.body_y_rotation + query.camera_rotation(1)", 0]or["query.camera_rotation(0)","query.camera_rotation(1)",0](see the vanilla snowball client entity). - Airplane bank smoothing: pre_animation
v.bank = math.clamp(math.lerp(v.bank, query.yaw_speed*-1, 0.12), -30, 30). - Blending between 0 and 360 jumps backward, so keep a continuous value beyond 360 in chained animations and normalize interpolation differences to +-180.
q.bone_orientation_trs().r.yis limited to -90..90. Euler order is X, Y, Z. - Locking the visual rotation of a mount is calculated with a
-q.body_y_rotationanimation and thenquery.movement_direction,q.positionand trigonometry. To make the body face like a boat, usequery.ride_body_y_rotationandride_body_x_rotation, and for truck wheelsquery.rider_head_y_rotation(0)(sign inverted). - Fixing the player body while riding is the root bone animation
"-q.body_y_rotation+math.min(math.max(math.mod(q.body_y_rotation - q.ride_body_y_rotation + 540, 360) - 180, -60), 57)"+override_previous_animation. To ride standing, changequery.is_ridingtoquery.is_riding&&!query.is_riding_any_entity_of_type('<your:entity>')in the player animation controller.
Other animation rules
- Random values inside keyframes are re-evaluated every frame, so store them in a variable and use it. For a random idle, set the transition probability very small. Play death animations/particles on a
query.healthor!q.is_alivecondition.look_at_targetworks only if there is an attack or target behavior, and for several heads reuse the wither animation. - The problem of snapping to the default pose was fixed with blend 0.6 and linear keyframes. Give
loop: trueto walk/idle, and use step interpolation and a return animation if needed. Split controllers for attack and movement. When stacking over other animations, use- this,override_previous_animationand cancel-out animations. - Molang animation:
math.lerprotate, lerp/sin/cos and accumulated tail rotation are used. If speed differs per device, correct it withq.delta_time(affected by FPS limits). - Flicker at animation borders: the first and last keyframes must be the same, and the last one should be linear, not smooth.
loop: "hold_on_last_frame"keeps the last pose. If the timeline events of a repeating short attack animation do not fire, fix it withloop: true. For smooth transitions use"blend_transition": 0.2andblend_via_shortest_path. - In a controller that picks an attack animation with
math.random_integerinon_entryand returns onq.all_animations_finished, a brief clip of another pose after the attack came from the animation's last keyframes not sitting at its real end; aligning the end frames removed it.{single report} - Two controllers that touch the same bone fight (both play). Merge them into one or add conditions. Two animations that use the same variable, the last one wins. Per-axis keyframe interpolation cannot be separated, so nest bones (outer Y, inner X).
- Molang keyframe interpolation (without frame definitions):
v.time = (v.time ?? 0) + q.delta_time;,v.smooth_time = math.hermite_blend(v.time),v.ypos = math.lerp(v.start, v.end, v.smooth_time). The segment formula isv.segment = math.min(math.floor(v.t),2); v.local_t = v.t - v.segment;.q.life_timecan have bugs in easing, so use your own time variable. - To adjust animation speed with a property, let a variable decide the speed as in
"animations": [{"dance": "v.dance"}](there is a report that usingq.propertydirectly scaled the keyframe values). - BP (server) animations/controllers run only commands and Molang and do not run client animations.
/event entity @s ..., timeline timestamp commands,/effectand/replaceitemare possible. An RP controller cannot run/scripteventor commands. A BP animation controller runs every time the entity loads, so it can be used as an "on load" event.query.scoreboardworks only in a BP. - Playing an animation at spawn is impossible with an RP alone, so use
playanimationin a BP event. Client variables cannot be sent to the BP (only from BP to client, properties) and scripts cannot read client Molang variables. /playanimation @p <anim> <next_state> <blend_out_time> "<stop_expression>" <controller>. A variable can be set with the stop expression (for exampleplayanimation @s animation.first_person.attack_rotation_item x 900 "v.attack_time=1;"). If sound events are defined in the entity resource file, animation sounds also play. Scripts cannot cancel a playing animation, so use aq.property()condition in the controller or a reset animation with override true. The controller name is the name used at runtime, and to keep a pose give a long value likea 999999in the blend out slot. Any RP animation can be played, butloop: trueis ignored. There is also a report that the stop expression accepts only queries, which disagrees with the variable-setting example above.{conflict}- Entity sounds are played by animations (
sound_effects). Entity events (ambient,hurt,death,step) insounds.jsonmust be valid LevelSoundEvent names. A custom entity sound must be in both sound_definitions.json andsound_effectsof the client file. Put repeating sounds in aloop: trueanimation. The location insounds.jsonisentity_sounds.entities.<id>.eventsand the usual sound event name isambient(notambient.name). To turn off the hurt sound, setevents.hurtto"". Even when giving a second group tominecraft:ambient_sound_interval, the defaultambientkept playing (not resolved). A sound put in a controller state plays every time that state is entered, and animation sounds have no distance attenuation. - Deprecated queries: use
query.is_item_name_anyinstead ofquery.get_equipped_item_name.q.get_nameis also deprecated, so for name-based behavior set a property or variant withname_actionsofminecraft:nameableand read that. There is no query that returns the ridden entity, so check withquery.is_riding_any_entity_of_type. RP Molang has no selected hotbar slot query and cannot log from Molang either. Wheel rotation switches withquery.modified_move_speed > 0.01orquery.is_moving. There is a report that theq.cardinal_facing_2dfamily does not work.{unverified} - Animation key query notes:
query.equipped_item_all_tags('slot.weapon.mainhand','tag')(plural; the singularequipped_item_all_tagis not registered{code}),query.is_item_name_any('slot.weapon.mainhand', 0, 'ns:item'),query.entity_biome_has_any_tags,query.is_riding_any_entity_of_type('id'),query.is_in_water_or_rain.query.foois only a placeholder and not a real query. For early termination of a controller, useq.state_timeandq.all_animations_finished. A;or a leftover quote at the end of a transition expression givesunrecognized token. - Armor stand poses are hardcoded in runtime ID variables (12~13). To add poses, put a
pose_indexproperty and amath.mod(...)event on your own entity or copy the armor stand geo. - If bone names match the player (
rightItem,leftItem, head and so on), vanilla humanoid/player animations can be reused. Items held in a special way such as bows, crossbows, spears and shields need"enable_attachables": truein the client entity. scripts.should_update_bones_and_effects_offscreen: truerenders the model even when the hitbox is off screen (still limited to about 64m). There is also ashould_update_effects_offscreenflag that updates only effects, and culling is based on the bounding box.
13. Render distance, dithering, shadows, hitboxes
- Render distance: custom entities are not rendered beyond about 64~70 blocks and this cannot be extended. Rendering is tied to whether the hitbox is in view. For a large model that disappears when behind you, enlarge
visible_bounds_width/height/offsetin the geometry description. A ticking area andshould_update_bones_and_effects_offscreendo not help. The same answer appeared again in 2026-11. A very large entity disappears even with a biggervisible_bounds.{community confirmed} - Far decoration technique: one entity follows the player and holds many models, and an animation places each model at world coordinates, corrected by the player position. Because the entity always stays near the player, large decorations render beyond entity distance culling (about 4 chunks). It was described as the method a 15th anniversary map used.
{single report} - Ender dragon runtime ID
{conflict}: only the ender dragon is rendered from far away. Some say it works with theminecraft:ender_dragonruntime ID and some say it does not, and it has side effects. Alternatives are to replace the vanilla ender dragon client entity and swap models with a float property and render controller, to put a proxy entity near the player, or to switch LOD with particles for distant planets (particles are visible from far). A trick of placing a transparent ender dragon alongside was also shared. A trick of rendering far with another runtime ID broke the entity. The ender dragon runtime ID keeps rendering, but the hardcoded dragon AI cannot be removed. - Distant text entities
{conflict}: one report says they disappeared even with a largerminecraft:tick_worldradius, and another says it always worked. A common workaround is to keep the real entity near the player and move only the model far away with animation (bone or root offset). Z-fighting of flat text faces seen from far is avoided with a gap of about 0.1 px, not 0.01 px (the farther, the larger the gap). - An enchant-glint-like effect on only some entity variants worked by swapping in a repainted texture through a render controller texture array; the warden runtime ID method did not work. The shared template removed the first-person punch animation.
{single report} - Dithering (fading near the camera) comes from the player accessibility setting "mob dithering" and cannot be turned off by a pack. There is a report that it turns off with hitbox 0, but other things may break.
- Shadow size follows the hitbox/scale component. To remove the shadow when invisible, use
minecraft:renders_when_invisible+ infinite invisiblespell_effects. - A collision box has only width/height and x/z cannot be given separately, and there are no multiple boxes. Workarounds are a transparent block or a box sticking into a block. There is
custom_hit_test, which changes only the damage hitbox, but it is fixed, does not rotate and cannot be detected by scripts. For a head hitbox, have a separate head entity riding the body pass the damage along (two entities, a performance cost). - A record says a display-only entity with size 0 has no shadow and cannot be clicked, and a report says an entity can still be hit with hitbox size 0
{conflict}. - Collision boxes do not rotate, and
custom_hit_testcannot be used withis_collidable. There was also a phenomenon where block placement became fast because of the collision of a hugely scaled entity. - Whether
minecraft:scaleenlarges the hitbox is conflicting{conflict}(reports that it does and that it does not). It is recommended to match collision_box as well. - For solid entities (can be stood on), put
"minecraft:is_collidable": {}on the entity in the latest format. For an entity that does not push other entities like an armor stand, there is no known method, and the NPC runtime ID has side effects. - There is an inefficiency report that bones hidden with part visibility still submit draw calls (only the rasterizer culls).
- Not supported: making an entity appear as a player list entry (use a GameTest simulated player), display entities (use the block entity trick MBE armor stand scale, FMBE), and reading the player skin in an add-on (on BDS an external API adds the skin as a variant on the next restart). To use a skin as a texture the pack must have the png.
- Model error: if there are several geometries (adult + baby) and a
headbone,model already has a locator armor_offset.default_neck / lead ... doesn't exactly matchappears. Rename the boneheadtoskull, remove theleadlocator from the baby model, or make pivots integers (MCPE-218065). There is a report that the same error occurred even with no locator. The 2026-01 game update added baby mob models and broke packs that override vanilla mobs, and custom armor works around it by coming after the baby armor model. The bug where the item position changes on mobs with model variants is MCPE-184865. For odd shadows of large meshes, flip the normals. Convert Java models in Blockbench. - Mob armor attachment bones: mobs use a different armor attachable file from players. The chestplate is
body, leggings areleftLeg/rightLeg/body, and the helmet ishead(root if absent).context.item_slotcorresponds to the equippable slot (q.item_slot_to_bone_name). A small custom mob can wear the small armor model from the "tiny takeover" drop by using the same geometry as the baby zombie/small humanoid in its render controller{single report}(2026-11-22).
14. Player entity
player.json (BP)
- If several add-ons each include a
player.json, only one wins depending on pack order and they do not merge. Merge them by hand or make a combined pack. damage_sensor modifications conflict between add-ons. - A
queue_commandevent inplayer.jsonfires on every hit and cannot tell the kind of attacker. Distinguish with the scriptentityHurt/entityHitEntity. - Player size
{conflict}: there is an answer thatminecraft:scalein aplayer.jsongroup changes the player size, and a report that animation scale changes only the visible size while thescalecomponent also changes collision but small scales have bugs. The hitbox cannot be changed withoutplayer.json. Use a group that changes the collision box by tag or property together with animation scale, and to make the player sit low use a mount with a low seat. - A bug was reported that with
player.jsonthe hitbox becomes 1 block after respawn with about 50% probability, and a workaround was shared. There is a report that the fire resistance component cannot be removed.{single report} - Players have no target so
has_target/is_targetare useless, so use the scriptentityHurtinstead. To block the death of a tagged player, putfatal+has_tagin theplayer.jsondamage_sensor. There are also patterns that changeplayer.jsoncomponents by held item or use an offhandhasitemcommand. - Movement restriction is
/inputpermission set <player> movement disabled(or scripts). A simple forced animation is/playanimationorEntity.playAnimation. - A case where a custom
player.jsonbroke rotation (getRotation()jittered within about 30 degrees) was fixed by reverting to the sample pack version. - Right click detection: attach a BP animation controller to
minecraft:playerinplayer.json(description.scripts.animate+animations), and useon_entry: "/function ..."on a state and the transition queryquery.is_item_name_any('slot.weapon.mainhand','ns:item') && query.is_using_item. Without&&it fires as soon as you hold it. Defining the controller twice gives a content log error. - There was advice to change the event
run_commandleft in theplayer.jsonof an old pack toqueue_command(the asker's problem was not resolved). - Vanilla hardcoding limits: vanilla armor has no JSON so toughness cannot be given and vanilla damage reduction cannot be removed. Values such as the number of bookshelves for the enchanting table are also hardcoded. Preview features mostly cannot be reproduced. The sun and moon cannot be removed for only one dimension, so work around it with the biome sky and fog.
- Adding to the player's look is possible only with attachables or
player.jsonproperties. There are no custom equipment slots. The Totem of Undying effect cannot be shown without the pop presentation, and the totem pop animation is hardcoded.
player.entity.json (RP)
- Broken by the 1.21.130 spear update. Mojang added
variable.melee_spear_equipped, two spear controllers and a changed first-person controller, so packs that override with an old copy break spear animations, swing/attack, swimming and first person, andUnknown variableappears. The fix is to start from the latest vanilla file of the installed game (...\Content\data\resource_packs\vanilla_1.21.130\entity\player.entity.json) and add your own animations, scripts and controllers again. Also bring the animation controllers and first-person animation files.{community confirmed} - There was a period when bedrock-samples lagged behind. The 1.21.130.3 player client entity lacked
first_person_item_rotation_factorand pre_animation/initialize and gave spear errors. The community vanilla resource pack repository also lackedvariable.melee_spear_equipped. Use the files in the game install folder.v.first_person_item_rotation_factoris the new name ofv.first_person_rotation_factor. As of 2026-11-14, bedrock-samples lacks this name and the spear variables (v.melee_spear_equipped(bool),v.fp_melee_spear_attack_item_rotation_z/_y,v.fp_melee_spear_attack_item_position_x/_y/_z,v.tp_melee_spear_base_arm_rotation_xand more), so a custom player client entity missing them errors when holding a spear. Take the current vanilla player entity from the Preview version files. - Variables needed for spear animations:
variable.melee_spear_equipped,variable.first_person_item_rotation_factor = 0.625and so on in the playerinitialize. Spears have a separate animation controller file. After editing, restart the whole game. The spear attachable errorq.item_slot_to_bone_name(c.item_slot) returned a bone name that doesn't existmeans thespearbone is missing and is related to a min_engine_version mismatch. can't find animation first_person_breathing_bobis fixed by adding"first_person_breathing_bob": "animation.player.first_person.breathing_bob"to animations. To remove the vanilla sway, override that animation.- Persona/character creator skins (conditional): overriding
player.entity.jsonturns off persona skins and everyone becomes Steve. Definingmin_engine_versionin the player client entity inserts the persona render controller. If the empty template in bedrock-samples containsplayer.entity.json, all default skins become Steve, so delete it. The default skin textures are hardcoded. - To add a render controller to the player you must override
player.entity.json(the alternative is a BP entity riding the player). Put an extra controller incontroller.render.player.third_personand hide limbs withpart_visibility(rightArm,rightSleeve,leftArm,leftSleeve,head,hat). To hide the vanilla player, put a copy ofcontroller.render.defaultthat hides all bones in front (scaling the root to 0 also makes custom arms and items disappear). - The paper doll (pause screen) error
query.property/has_property does not have an actoris blocked with!variable.is_paperdoll/!query.is_in_ui. While the paper doll is visible, using/playanimationand particles creates copies. An example first-person extra render controller condition:!variable.is_paperdoll && !variable.map_face_icon && !query.is_spectator && query.property('addon:extra') != 'x'. - An invisible player is caused by an invalid render controller reference.
friendly name 'geometry.default' not foundoccurs when the geometry short name and the render controller reference do not match or have a typo. The default model cannot be replaced, so add one and hide the default. - For a custom player model, add the model to
geometriesinplayer.entity.jsonand override both first and third person with a custom render controller. Imported custom skin packs that usegeometry.humanoid.customwork with this, and there is a report that Marketplace skin packs with their own models break.{single report} - For custom player models and item position, keep the
leftItem/rightItempivots the same as the default player geo (leftItem pivot [6,15,1] parent leftArm, rightItem pivot [-6,15,1] locatorlead_hold). Do not move bones, and move the position with animations. Adding bones breaks item placement. The player geometry for Blockbench ishumanoid.custom:geometry.humanoidin bedrock-samplesresource_pack/models/mobs.json. - Player animations: walking is
animation.player.move.arms+animation.player.move.legs(NPCs use the mergedanimation.humanoid.move). The vanilla swing is hardcoded, driven byv.attack_speed/v.attack, and read-only in Molang. The first-person attack isanimation.player.first_person.attack_rotation. Mining speed is changed with haste/mining_fatigue and the arm does not swing. - If it flickers when playing/stopping an RP animation in first person, put the overriding animation at the very end of player.animation.json and reduce the gap. For first/third person the animation states are separate but Molang variables are shared. A custom player controller that reads blocked/private Molang variables breaks hit animations and the third-person bow.
- There is a mention that the player model registration limit is about 1.14MB.
{single report}The offhand map position/size is decided by entity/player files, not JSON UI. After the 26.x "tiny takeover" update, baby animals look gigantic when used with old health display packs. - To play player animations without overriding
player.entity.json, use/playanimationor the scriptplayAnimation. In 2026-10 there was again a report that adding animations toplayer.entity.jsoncan break skins and first person. The offhand display cannot be changed with an RP alone. An animation that disables the default player attack animation also works when played with/playanimation.{single report} - For Actions & Stuff compatibility, merge your content into that pack's
player.jsonby hand or use a subpack. - To hide a player on maps, scale the player model to 0.01 with an animation instead of using invisibility.
{single report} - The first-person hit red effect is turned off with
is_hurt_color. View bobbing cannot be changed by a resource pack and the attack raycast origin is fixed too. - Skins: 3D creator skins cannot be detected and they break custom models. Only 2D 64x/128x skins work, and classic skins do not use custom geometry. Tell slim/classic apart with
v.short_arm_offset_left == 0.5(the value is set only after going through first person once). There is a report that they cannot be told apart when the model is forced. - Unresolved: Elytra forward-lean correction, ride position/camera movement (the camera cannot be changed in the RP), making a camel-style seat follow the back, and syncing mount/rider rotation. The camel seat moving as the camel sits and stands appears to be hardcoded, and no component group for it was found.
{single report}
15. Scripts and entity integration
- A hybrid approach is recommended. Rather than rewriting AI in scripts, control groups with entity file properties and let scripts drive the JSON AI by firing events and setting properties/tags.
- Script custom components can be registered only on blocks and items. There is no
entity.target, and estimating the target with raycasts is inaccurate.entityBeforeHurtwas beta until 2026-03-07. - Interaction
{conflict}: events ofminecraft:interactmust be defined inevents. There is a 2026-11-12 report thatplayerInteractWithEntityAfterEventdid not fire on a custom entity, which disagrees with the explanation in section 9. If one entity has several interaction points, split them with a ray-box intersection check. - Script-driven combat animations use
hold_on_last_frame, animations longer than the cooldown and combo frames, and go out of sync depending on ping. CachegetPlayers()results in a Map. - To show an animation to only some players, play a 0-scale or outline animation with
entity.playAnimation(name, { players: [...] }). - Scripts cannot drive animation controllers directly. Use the
stopExpression/controller option ofplayAnimationor the way (FMBE style) where a variable set by a script is read in pre-animation Molang. A method that worked wasplayer.inputInfo.getMovementVector()+stopExpression: "v.movement_x=...; return 0;"+ a random controller name per call to push variables into the attachable (the property method has about 1 tick of delay). The serverplayer.playAnimationmoves only third person. Vanilla first-person animations cannot be changed or triggered by scripts. - Passing data from the BP to attachables/RP is
player.setProperty(...)or the Molang attachablescripts.parent_setup: "t.bp_x = v.bp_x ?? 1;"andpre_animation: ["v.rp_x = t.bp_x ?? 1;"]. The property method breaks compatibility with other player animation packs. - Grabbing mechanics teleport the grabbed player to the hand position every tick with
system.runIntervalor put them on a dummy and animate. Telekinesis usesapplyImpulsefor entities, and for blocks puts them inside an entity and scales it with animation. - The hit position/direction is detected with a hitbox entity (expensive), the relative position of
projectileHitEntity, or entityHurt + position comparison. The gaze direction method fails with touch players, and the vector between the attacker and victim positions works. - For floating text, use the Script API TextPrimitive (entities have collision/push problems). Click detection is
world.afterEvents.playerAttack, hotbar slot change isworld.afterEvents.playerHotbarSelectedSlotChange, and explosion detection isexplosionAfterEvent. - The duration of
Entity.addEffect(effect, duration, {amplifier})is in ticks, while JSON components (cooldown and so on) are in seconds. - Breaking vanilla armor stands/paintings/boats/minecarts is forced by the runtime ID and cannot be blocked even by canceling EntityBeforeHurt. Use custom entities or adventure mode.
- For custom skins by player name or property, use entity properties or
q.variant. Target-locked markers or glow cannot be done with scripts alone, and a glow material controlled by properties is used on the client.
16. Block helper entities, dummy entities, holograms
- Entities that behave like blocks (inventory, item display, animation, interactive furniture, drawers) are made by spawning a transparent entity in
playerPlaceBlock(system.run+dimension.spawnEntity(id, block.center())) and killing it on destruction. One entity per block lags when there are many and is wiped together by/kill @e. A falling-block style custom block needs a custom entity with the same texture. Multi-block summons like iron golem/wither are hardcoded, so reproduce them with scripts. - Without experiments a block has no inventory component, so a block with an inventory puts a transparent entity at the block position (for the
minecraft:block_entitycontainerbehind the "Upcoming Creator Features" experiment, see Blocks). Give itminecraft:inventory(inventory_size,container_type"inventory"to avoid hopper interaction, nocan_be_siphoned_from),minecraft:physics{has_gravity:false, has_collision:false, push_towards_closest_space:false}, andminecraft:breathableto prevent suffocation (breathes_solids:true,suffocate_time:0,breathes_air/water/lava:true,generates_bubbles:false). Find it withdimension.getEntitiesAtBlockLocationand drop the inventory in the block'sonBreak. The UI needs JSON UI. - A dummy entity is good for keeping tags or states even after other entities are removed (few components and no RP needed). A transparent hologram entity uses an empty model (better) or a transparent texture. A fake dropped item gives a textureless entity a mainHand item and a rotation animation. Giving an entity with an invisible body
enable_attachablesandheld_item_scaleshows only the held item in the air at that scale (any vanilla item, blocks in 3D), andhide_held_itemshides it.{measured}(2026-11-17, Source: repo-guide; details in Attachables and item rendering) - Per-player screen filter: put a hidden entity above each player's head, tag it with the player ID, and find it with
dim.getEntities({location, maxDistance: 12, families: ['xfiltersdemo:filter'], tags: [...]}), so each player has their own filter (applies only to the gameplay screen). - Auction house pattern: put item stacks in a chest entity and save it as a structure (
structureManager.createFromWorld(id, dim, loc, loc, {saveMode: StructureSaveMode.World, includeBlocks:false, includeEntities:true})), and keep display info for the UI separately. - A weeping angel entity can use the
lookcomponent of the creaking instead of a script FOV check. Dynamic lighting made with light blocks is unstable and there is no component for it. To make a sulfur cube accept a custom block, use the block/item tagminecraft:sulfur_cube_archetype_bouncy.
17. Component members and validation rules (Windows 1.26.65.1 code and measurements)
This is the result of reading the Windows 1.26.65.1 client code (member names and validation sentences of the component structs) and loading format_version 1.26.60 and 1.26.50 entities in a world on the same build and reading the Content Log (2026-11-23). Function addresses are in native-notes/. The component reference and the AI goal reference keep the MS Learn text as it is, so corrections are collected in this section. Log sentences are written only after <entity> | minecraft:entity |. Where measurement and code disagree, the measured behavior is written and the code reading is labeled as such.
- A format 1.26.60 entity rejects an unknown member with
this member was found in the input, but is not present in the Schemaand an unknown component withthis component was found in the input, but is not present in the Schema, and the entity does not load. It is an error, not an ignore{measured}. - The old parser of format 1.26.50 behaves differently. A bogus key in a rideable seat gave the error
child 're8_bogus' not valid here., while in panic and dweller of the same format a bogus key was silently ignored. So a key accepted by the old parser cannot be taken as a real member{measured}.
New members
- A rideable seat (
seats[]entry) withthird_person_camera_radius(20) andcamera_relax_distance_smoothing(2) was accepted without a log line in both format 1.26.60 and 1.26.50. Riding with/ride @s start_ridingand looking in third person (F5), the camera moved far away from the player, and after dismounting it returned to the default distance{measured}. - A
third_person_camera_radiusof 0, -5 or 100 rejects the entity in format 1.26.60 withcomponents -> minecraft:rideable -> seats[0] -> third_person_camera_radius: the input is outside of the accepted range [1, 64]. The code reading found no range sentence, but the measured range is 1 to 64. In format 1.26.50 a value of 100 gave no log and the camera stayed at the default distance (neither rejected nor clamped to 64, the value just has no effect){measured}. camera_relax_distance_smoothinggave no range error at -1, 0 and 100{measured}.pulls_in_entitiesof rideable is rejected. The real key ispull_in_entities{measured, code}.panic_soundofminecraft:behavior.panicis accepted.sound_intervalwas accepted as an object{"min": 1, "max": 2}; the number2gaveexpected an object, and{"range_min", "range_max"}and{"value": 2}gave errors that the member is not in the schema. Panic in format 1.26.50 accepted the same values and even a bogus key without a log line{measured}.replaceable_blocks,radiusandforce_replace_matched_blocksofminecraft:trail(format 1.26.60) were accepted without a log line together withspawn_offsetandblock_type. Their format and defaults could not be read from the code. The block placement looked like this: when an entity withspawn_offset: [0, -1, 0], a replaceable pool of grass and air,radius: 1andforce_replace_matched_blocks: truewas teleported one block at a time by a script, 42 stones were laid under it (on the grass block positions) in 3 rows x 14 positions, soradius: 1looked like a width of 3. With the same method an entity withoutspawn_offsetadded only 3 stones, and an entity walking by its own AI placed no blocks. Whether the cause isspawn_offsetor the way of moving could not be separated{measured}.result_itemandeffectsof the food entry ofminecraft:healablewere confirmed by name in the code only{code}.
Names in the reference that were rejected
In format 1.26.60 every name below was rejected with a not-in-the-schema error and the entity did not load {measured}. The code reading in parentheses agrees.
| Name in the reference | Correction |
|---|---|
extent, shape, placement_checks, place_only_on_block_position_change of minecraft:trail | All 4 rejected. The trail members in the code are only the 6 spawn_filter, block_type, spawn_offset, replaceable_blocks, radius, force_replace_matched_blocks, and the reference's offset, placement_conditions and placement_filter too (7 in all) are not in the code {code} |
can_teleport_into_liquid, on_teleport_sound, target_teleport_distance, target_teleport_offset of minecraft:teleport | All 4 rejected. The code has 10 teleport members, and its 6 numeric and 2 boolean defaults equal the reference {code} |
speed_when_turning, start_speed of minecraft:movement.fly | Rejected. These two are members of movement.glide, and the only member of fly is max_turn {code} |
broadcast_anger, broadcast_anger_on_attack, calm_event, duration_delta of minecraft:anger_level | Rejected. The code members are the 9 anger_decrement_interval, angry_boost, angry_threshold, default_annoyingness, default_projectile_annoyingness, max_anger, nuisance_filter, on_increase_sounds, remove_targets_below_angry_threshold {code} |
owner_launch_immunity_ticks of minecraft:projectile | Rejected |
minecraft:dash | Rejected. The real name is minecraft:dash_action, which is accepted |
minecraft:movement.sound_distance_offset | Rejected. The real name is minecraft:movement_sound_distance_offset (underscore), which is accepted |
minecraft:body_rotation_locked_to_vehicle | Rejected. The real name is minecraft:rotation_locked_to_vehicle |
minecraft:remove_in_peaceful (format 1.21.90) | Rejected. The name is not in the client code either {code} |
hurt_by_target_event of minecraft:behavior.hold_ground, float_offset of minecraft:behavior.float_wander | Rejected. They are not members of those two goals, and the goal they belong to is unknown |
dwelling_role of minecraft:dweller could not be decided. In the tested format a bogus key was silently ignored too, so existence cannot be told apart this way. The name string is not in the code {code}.
Brain components that exist only in the code
The client code registers 25 names minecraft:memory_behavior.* and minecraft:memory_sensor.*. The official samples have only 5 (in_range_of_entity, follow_target, flee_threat, move_to_position, game_event) and the reference has none {code}. In format 1.26.30, 1.26.50 and 1.26.60 entities, the code-only names (memory_behavior.wait and .wait.test, memory_sensor.random_land_position and .test, memory_behavior.look_at_entity.test, memory_sensor.find_nearest_block.test) were all rejected with this component was found in the input, but is not present in the Schema. memory_behavior.move_to_position.test, which is in the samples, was accepted. A name in the code is not usable from a pack in normal settings. Whether an experiment toggle or a beta format accepts them was not measured {measured}.
Property and description validation
The validation sentences for description.properties and entity_version all appeared in the log as they are when the world loaded {code, measured}.
- An enum has 2 to 16 values (17 and 1 gave
string enum must have more than 1 and no more than 16 elements, 16 passed). A value name is at most 32 characters (33 gavehas too long of a name (maximum is 32), 32 passed), starts with a letter (1ais rejected) and otherwise uses letters, digits or underscores, and a duplicate value is rejected withduplicate value. - The
rangeof an int or float needs a maximum greater than the minimum.[5, 4],[5, 5]and a float[1.0, 1.0]were all rejected withrange max is less than range min. Equal values are rejected too. - A
defaultoutside the range (99 with[0, 10]) logsdefault 99 is not between 0 and 10, clamping to nearest valueat error level and the entity loads. - A
rangeon a bool gives'bool' type was specified but a range field was still provided, and a name without a namespace givesmust have valid characters and include a namespace. - An entity has at most 32 properties. 33 were rejected with
Too many properties on the definition (Limit is 32)and 32 passed. - An int
defaultgiven as the string"1+1"gave no log line (accepted). Whether the value was computed as 2 was not confirmed. The code has a path that interpretsdefaultandrangeelement strings as Molang{code, inferred}. description.aliasesgave only the warningDeprecated field: Aliases.both as an object{"re8:q": "re8:p"}and with an empty value{"re8:q": ""}. TheCannot map aliassentence found in the code did not appear.entity_version.upgradesrejects the entity forupgrade_to0 (reserved for versionless entities), an emptyname, the same version twice (multiple upgrade entries for version 1), starting from 2 (does not start at 1), and only 1 and 3 (non-contiguous version between 1 and 3). 1 and 2 passed.- The code has a check that gives
Two versions of the same component foundwhen the old key and the new key of the same component are both in onecomponentsobject. Which pairs it covers was not read{code}.
Defaults and ranges (code only)
- The default of
can_be_stoleninminecraft:leashableis true in both the code and the official sample documentation, and the reference says false. It was not measured in the game (the test entity putsoft_distanceand others outside the preset and got the errorchild 'soft_distance' not valid here.; these values go inside the preset){code}. - The code has sentences that clamp
base_buoyancyandbig_wave_probabilityofminecraft:buoyantto 0 to 1 anddrag_down_on_buoyancy_removedto 0 or more. Spawned in the air withbase_buoyancy: 2and others, there was no log line. It was not put in water, so this is not confirmed{code}. - The numeric and boolean defaults read from the code for teleport, buoyant,
dash_action, strength, timer and others equal the reference tables{code}.
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
private-research | Private research (-) | - | 2026-11-13 | |
bedrock-wiki | Bedrock Wiki | CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) | 0930b39 | 2026-11-13 |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |
bedrock-samples | Mojang bedrock-samples | Minecraft EULA applies, (c) Mojang AB. All rights reserved | 15701fa9 (guide baseline 46ba6ea) | 2026-11-13 |
repo-guide | JSON UI comprehensive guide (this repository) (guide/) | This project's material | 2026-11-13 |