This type runs the command given when the item requirements are met.

```json

{

"type": "command",
"items": {
    "minecraft:egg": 1
},
"command": "summon cow ~ ~ ~"

}

```

Very simple very powerful.