For now there is a workaround
you can add a custom component to the item with the onUseOn event(you would have to get the block using a method like this however)
onUseOn: e => { const block = e.blockFace == 'North' ? e.block.north(1) : e.blockFace == 'East' ? e.block.east(1) : e.blockFace == 'South' ? e.block.south(1) : e.blockFace == 'West' ? e.block.west(1) : e.blockFace == 'Up' ? e.block.above(1) : e.block.below(1) }
Note that this event triggers after the block is placed, but before the itemStack is updated
For now there is a workaround
you can add a custom component to the item with the onUseOn event
(you would have to get the block using a method like this however)
Note that this event triggers after the block is placed, but before the itemStack is updated