Trying to use commands to give an entity with attack slots an item in their offhand will cause a crash.
Reproduction Steps
Summon any entity that has attack slots with /summon, in chat, or by using a spawn egg.
Type in chat: "/replaceitem entity @e[type=minecraft:<insert entity id here>, c=1] slot.weapon.offhand -106 <insert item id here>
Linked issues
is duplicated by 14
Comments 10
This command used to work in version 1.7 but they are bugged now in betas which includes the new 1.10.0.3 beta version
But now they do. According to the Official Minecraft Wiki page on Bedrock Edition beta 1.10.0.4 under "Fixes":
Custom entities can now be used with the
[type=]
command argument.
I am having this issue when giving armor stands shields in their offhands. Is there any progress on this?
**Edit**
/replaceitem entity @e[type=armor_stand] slot.weapon.offhand 0 shield
Also crashes when trying to place in other items like totem
Command updated to proper command*** I just did it on the top of my head
It crashes the game for armor stands. I wish there was an update on this issue or some sort of response from admins.
This bug has been reported to our internal bug tracker for further testing and a fix. It is scheduled to be fixed in one of the future updates (no specific date can be provided).
IM NO EXPERT
I dont think bedrock supports commands like that.