Hey is there a possibility to forbid a player to craft something in his 3x3 craft box so that the player can have something in his inventory but cant craft it ?? like he can have an axe in his inventory but cant craft a new one in his crafting box thx Thallo
I'm not sure if, when you cancel an event, it will cancel whatever the game was going to do either way, but maybe use onRightClick, check if its a crafting station, and if so, cancel the event.
I'm not sure you can specifically deny only some crafting. You could make it impossible to interact with crafting boxes through BlockInteractEvent I think but that happens when the player opens it, not when he creates a new item. To do finer grain control you will need to wait for more inventory / item pickup hooks.