Piglin
minecraft:piglinPiglinMonsterMobRanged attackMelee attackTradesHas an inventoryWears equipmentTransforms into another mobAttacks on sightFights back when hitRuns when hurtCan be name-tagged
Piglin is defined in Minecraft Bedrock 1.26.60.5 by 61 components spread over 15 component groups. These are the real values from the game files, ready to use as the base of your own mob.
16Health
5Attack damage
0.42Movement speed
0.6 × 1.9Hitbox (w × h)
61Components
15Component groups
18Events
Type families
Other mobs and commands recognise it by these family tags:
piglinbaby_piglinmonstermobComponents 61
AI goal: attacking
behavior.charge_held_itembehavior.melee_box_attackbehavior.nearest_attackable_targetbehavior.ranged_attackAI goal: choosing a target
AI goal: fleeing and hiding
AI goal: breeding, following and players
AI goal: work, villages and blocks
AI goal: idle and special actions
AI goal: moving around
Movement type
Navigation
Jumping
Sensors and triggers
Stats and attributes
Identity, variants and flags
annotation.open_doorcollision_boxconditional_bandwidth_optimizationis_babyis_hidden_when_invisibleis_shakinglootnameablephysicspushable_by_blockpushable_by_entitytype_familyvariantDamage, fire and explosions
Player interaction, taming and riding
Drops
Loot table: loot_tables/entities/piglin.json
Natural spawning
- Population group: monster
- Spawns: underground
- Biome tags it looks for:
spawn_few_piglins,spawn_piglin
Component groups
Sets of components the game switches on and off through events (baby/adult, tamed/wild and so on):
alert_for_attack_targetsangryattack_cooldownbecome_zombiehunterinteractable_piglinmelee_unitnot_hunterpiglin_adultpiglin_babypiglin_jockeyranged_unitstart_zombificationtake_target_as_response_to_block_breakzombification_sensorEvents
admire_item_started_eventadmire_item_stopped_eventattack_cooldown_complete_eventbecome_angry_eventbecome_calm_eventbecome_zombie_eventimportant_block_destroyed_eventminecraft:entity_bornminecraft:entity_spawnedspawn_adultspawn_adult_meleespawn_adult_melee_no_huntingspawn_adult_no_huntingspawn_adult_rangedspawn_adult_ranged_no_huntingspawn_babystart_zombification_eventstop_zombification_eventCommand
/summon piglinMore on the command at Bedrock Commands.