How to use /Execute

How to use /execute

/Execute is a command that lets you execute a command as another player or as a mob/entity

To start, the usage is like this: /Execute     

Things you can make using this includes Randomizers and you can make certain entities say something.

Randomizer example:

"/execute @r[type=armor_stand,tag=Randomizer] ~ ~ ~ /setblock redstone_block ~ ~ ~" will make a random armor stand with the scoreboard tag of "Randomizer" set a block at the location of their feet to be a redstone block

You can make an entity even execute a /execute command inside of a /execute command! It would look something like this for custom crafting: "/execute @e[type=Item,tag=CustomCrafting1] ~ ~ ~ /execute @e[type=Item,tag=CustomCrafting2,r=0] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:"minecraft:",Count:1b,display:{name:"",CustomName:"Crafted Item",CustomNameVisible:1b,Tags:[CraftedItem]}". To make the newly crafted item kill the items that created it, a command block would use the following commands: "/execute @e[type=Item,tag=CraftedItem] ~ ~ ~ kill @e[type=Item,tag=!CraftedItem,r=0]".