Entity Documentation - minecraft:entity_spawned
minecraft:entity_spawned
triggers an event calls on an entity when the entity is spawned in the world.
Note
minecraft:entity_spawned
is used to trigger events when the entity is spawned in the world. For events to trigger when the entity is born via breeding, see minecraft:entity_born
Example
"minecraft:entity_spawned":{
}
Vanilla entities examples
goat
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"add": {
"component_groups": [
"goat_adult"
]
}
},
{
"weight": 5,
"add": {
"component_groups": [
"goat_baby"
]
}
}
]
}
command_block_minecart
"minecraft:entity_spawned": {
"add": {
"component_groups": [
"minecraft:command_block_inactive"
]
}
}
Vanilla entities using minecraft:entity_spawned
- axolotl
- bee
- blaze
- cat
- cave_spider
- chicken
- command_block_minecart
- cow
- dolphin
- donkey
- drowned
- ender_dragon
- ender_pearl
- enderman
- fishing_hook
- fox
- glow_squid
- goat
- hoglin
- hopper_minecart
- horse
- husk
- llama
- magma_cube
- minecart
- mooshroom
- mule
- ocelot
- panda
- parrot
- phantom
- pig
- piglin_brute
- piglin
- pillager
- polar_bear
- pufferfish
- rabbit
- ravager
- salmon
- sheep
- shulker
- silverfish
- skeleton_horse
- skeleton
- slime
- spider
- squid
- stray
- strider
- tnt_minecart
- tropicalfish
- turtle
- villager_v2
- villager
- vindicator
- wither_skeleton
- wither
- wolf
- zoglin
- zombie_horse
- zombie_pigman
- zombie_villager_v2
- zombie_villager
- zombie
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for