Why not have this be
```java
event.setConsumeItem(!entityhuman.abilities.canInstantlyBuild);
...
    if (event.consumeItem()) {
        --itemstack.count;
```