java.lang.IllegalArgumentException: Cannot get property DirectionProperty{name=faci
ng, clazz=class net.minecraft.core.Direction, values=[up, north, south, west, east]
} as it does not exist in Block{minecraft:air}
If the player directly causes the pressure plate to be broken (or a supporting block), this just stops block updates from propagating past that point. If the pressure plate is broken for some other reason, the game simply crashes. This seems to be caused by trying to remove redstone power from nearby blocks, which depends on what surface the pressure plate is on... but if the pressure plate doesn't exist anymore, then it's not on any surface. I'm sure somewhere in the processing of breaking the block you have access to the state that it had...?
If the player directly causes the pressure plate to be broken (or a supporting block), this just stops block updates from propagating past that point. If the pressure plate is broken for some other reason, the game simply crashes. This seems to be caused by trying to remove redstone power from nearby blocks, which depends on what surface the pressure plate is on... but if the pressure plate doesn't exist anymore, then it's not on any surface. I'm sure somewhere in the processing of breaking the block you have access to the state that it had...?