Summoning a wolf using a command block for example, leads to the wolf glitching inside the command block and turning slightly dark rather than stepping on the command block and moving on.
How to reproduce
Start by obtaining a command block by using the command
/give @a minecraft:command_block
Then summon a wolf using the command block, you will notice that the wolf glitches inside the command block and changes color while suffocating.
Observations: When a wolf is summoned by using a command block, it glitches inside it.
Expectations: It should step on the command block.
Note: When entering the command
/summon wolf ~ ~1 ~
in the command block, it will differ leading to the mob spawning on top of the command block, so if that's the case, summoning a wolf should also spawn the wolf on top of the command block or it maybe intentional.
Attachments
Comments 7
@unknown It does indeed work and does allow the mob to spawn on top of the command block rather than glitching inside it. Thanks 🙂
To clarify specifically why this occurs, the command block's default execution position is at the center of the block, aka [x.5, y.5, z.5]. The behavior here is expected.
@unknown Yeah that could be the case, but even if so. The fact that it starts glitching inside the command block and turns dark confirms that its a bug, it should reposition the mobs.
It doesn't glitch into the block, it's summoned inside it to begin with. As for entities turning dark when inside blocks, refer to comments like this: https://bugs.mojang.com/browse/MC-93465?focusedId=269032&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-269032
@unknown Yeah I agree with this information, but I've reported many bugs about mobs/entities glitching and turning black and they all turned out to be valid, so all the information you mentioned is indeed correct. But its better if a command block repositions the mob when summoned, or at least push it away after glitching inside it rather than the mob getting stuck inside the block and suffocating.
The default position for command blocks is the inside of the command block itself, for all commands.
By summoning the wolf inside of the command block, you are causing the glitchy behaviour, not the game itself. If the game places an entity inside of a block outside of commands, that's a bug, but if it's due to a command, you're responsible for making sure that the mob is not inside of the block if you don't want it to happen.
It is often useful for commands to be able to summon entities inside of blocks for various different use cases, so fixing this "issue" would inherently cause a lot of problems for command creations.
Hi there! I have replicated this action across versions, and it seems to be the way Minecraft's code works. To get a more successful summon, try running /summon wolf ~ ~1 ~, which should summon it slightly above the command block.
Hope this helps! 🙂