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 hoglin command
Using the summon command to spawn in a minecraft hoglin is simple, take the command and enter into chat and presto you have a hoglin.
Summon hoglin that is immune to becoming a zombie
When TimeInOverworld reaches 300 the hoglin will become zombie. You can prevent hoglin from turning into a zombie when in the overworld by setting the IsImmuneToZombification:1
/summon minecraft:hoglin ~ ~ ~ {IsImmuneToZombification:1}How to summon a baby hoglin (piglet)
Like most passive mobs in Minecraft, you can summon a piglet by setting the Age tag to a negative number (under the "Additional" tab).
/summon minecraft:hoglin ~ ~ ~ {Age:-1200} (Grows up in 60 seconds)/summon minecraft:hoglin ~ ~ ~ {Age:-6000} (Grows up in 5 minutes)
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.