forbide crafting

Discussion in 'Plugin Development' started by Thallo, Jan 29, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Thallo

    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
     
  2. Offline

    mjmr89

    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.
     
  3. Offline

    DerpinLlama

    >Minecraft
    >Forbid crafting

    [​IMG]
     
  4. Offline

    void420

    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.
     
Thread Status:
Not open for further replies.

Share This Page