In custom components in block, how do I use permutationToPlace in beforeOnPlayerPlace event.
My custom block has "block:part" state, I tried to place the block with a value of 'lower' of this state.
I tried to write like this, but this doesn't do anything. permutationToPlace don't have resolve().
const {block, permutationToPlace} = event;
permutationToPlace.withState('block:part', 'lower')