I have this simple script to summon an armor stand.
import mcpi.minecraft as minecraft
mc = minecraft.Minecraft.create()
cmd = '/summon armor_stand ~ ~2 ~1 {NoBasePlate:1,ShowArms:1,Invulnerable:1,CustomNameVisible:1b,Tags:["SocialBot"]}'
mc.postToChat(cmd)
but, it doesn't work when run.
Could anyone help me understand what's going wrong and help me with executing commands please?
Best,
Sri.