There has been a shift recently into being able to use different sources to build commands. Following along with that trend is /setblock from. I would attempt to place a block based on the selected slot of the target, and would fail if the item is not a block.
This could be paired with a component like "block_id" or "block_to_place", and would place the block from the component.
Syntax:
/setblock <x> <y> <z> from <block | entity> <slot> <replace | keep | destroy>
Please sign in to leave a comment.
1 Comments