mojira.dev
MCPE-39589

Game crash when putting an item in the offhand of an entity with attack slots

Trying to use commands to give an entity with attack slots an item in their offhand will cause a crash.

Reproduction Steps

  1. Summon any entity that has attack slots with /summon, in chat, or by using a spawn egg.

  2. Type in chat: "/replaceitem entity @e[type=minecraft:<insert entity id here>, c=1] slot.weapon.offhand -106 <insert item id here>

Linked issues

MCPE-39134 device crash when i make pillager hold something on left hand Resolved MCPE-40309 Game crashes when making a mob hold an item on its off-hand Resolved MCPE-40909 Armor Stand Offhand Items Crash Game Resolved MCPE-41602 Zombie offhand crash Resolved MCPE-41646 Crash when I /replaceitem Resolved

Comments 10

IM NO EXPERT

I dont think bedrock supports commands like that.

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

@Antony Missine putting an item in the offhand of an drowned in it's offhand won't crash your game.

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).

@DrownedZombie You sure? Seems like too much of a coincidence that your name is DrownedZombie.

Do not try to recreate in a realm you won't be able to get back on it until it restart!

Does not appear to crash the game anymore, tested command /replaceitem entity @e[type=minecraft:pillager, c=1] slot.weapon.offhand -106 shield was successful

Makonede

(Unassigned)

171720

Confirmed

Windows

Windows 10 1803

1.9.0.3 Beta, 1.9.0.5 Beta, 1.10.0.4 Beta, 1.11.4

Retrieved