Question: how to do setblock in minecraft pe?
Answer: position is the x y z coordinate for the block to replace. tileName is name of the replacement block. ( See Minecraft Item Names) tileData is optional. It is the data value for the replacement block. ...  replace is optional. ...  keep is optional. ...  destroy is optional.