Minecraft 1.20.5 has changed syntax on many commands, so most commands will no longer work without an update.
An update is in progress, you can check compatibility progress here.
Loading
Page
Try the Commands Troubleshooting and Help page if you get stuff with server errors.
Minecraft summon piglin command
Using the summon command to spawn in a minecraft piglin is simple, take the command and enter into chat and presto you have a piglin.
Summon piglin that is immune to becoming a zombie
When TimeInOverworld reaches 300 the piglin will become zombie. You can prevent piglin from turning into a zombie when in the overworld by setting the IsImmuneToZombification:1
/summon minecraft:piglin ~ ~ ~ {IsImmuneToZombification:1}Summon a baby piglin
The same IsBaby tag as used for zombies and their counter parts. Generally the age tag won't work with this mob.
/summon minecraft:piglin ~ ~ ~ {IsBaby:1}Suggestions or found a bug
Leave me a comment/like on:Minecraft Versions Permalinks
If you're looking for a particular summon mob generator you can link to these specific versions of the command generator.