As of Bedrock Edition 1.16, there are 2 more arguments for the replaceitem command, destroy, and keep. These are useful, but you can’t replace a specific item. So, there should be another argument, called replace. It would be very similar to the fill argument replace, where you can replace a specific block with another block, but you’d replace items.
The syntax would be: /replaceitem entity @p slot.weapon.mainhand 0 replace (Item) (data) (components: json) (replacementItem) (amount) (data) (components: json)
You would also be able to replace an item with the same item, just like how you can replace an empty slot with air by using the 'keep' argument.
This argument would completely change Bedrock Edition for the better, as currently there is no way to detect which item a player is holding, if a specific item is in a specific chest slot, and which armor a player has equipped without using any sort of mod/addon.
Please sign in to leave a comment.
2 Comments