With tap on a certain block is not the subject of a certain (not coal for e.g) will be written in chat "tap whith the coal." How to do it ?
Learn PHP ._. PHP: public function onTap(PlayerInteractEvent $event){if(!$event->getBlock() === Block::/*block*/){//CODE}}
And here php? So I just do not understand. It is as though a PM API is .-. And about the PM API then ask apparently cancelled ?
I tried to do it, but it did not and that's why I asked here ... I'm not a great programmer and a novice.
You're comparing object with an integer wont work always will return false! fix PHP: if(!$event->getBlock->getId() === Block::/* block *.)