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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour