Is there a specific command that I can do to summon an enderman holding a command block with a custom command preset?

I tried the following command, but the command block doesn't have a command inside:

summon minecraft:enderman ~ ~ ~ {carriedBlockState:{Name:"minecraft:command_block"},TileEntityData:{Command:"time set 1000"}}
  • What edition is this? Java or bedrock?
    – Penguin
    May 14, 2021 at 22:23
  • Minecraft Java Edition May 14, 2021 at 22:34
  • I did /summon enderman ~ ~ ~ {carriedBlockState:{Name:"minecraft:command_block"},TileEntityData:{Command:"time set 1000"}}, but once when the enderman places the command block down, there is no command set inside the command block May 14, 2021 at 22:59
  • 2
    looking at the nbt of an enderman, it looks like endermen only store the state of the block they are holding (which is used to display the block model), but that's about it May 15, 2021 at 1:03
  • I'm making this into a canonical for any tile entity data on an enderman's held block. May 15, 2021 at 16:44


You must log in to answer this question.

Browse other questions tagged .