Crafting Question?

Discussion in 'Plugin Development' started by Epicballzy, May 1, 2014.

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

    Epicballzy

    Is it possible to make a item you can use to craft into an item that you cant craft?

    Ex:
    You have a Gold Ingot, and your'e able to use it to craft, but when it has a specific name, you can't craft with it.

    Is that possible?
     
  2. Offline

    kennethbgoodin

    Should be possible. Listen to the craft event and check if the item has a name, and if so, if that name equals one of the names of items you don't want to be crafted.
     
  3. Offline

    BillyGalbreath

    Its possible, but its going to be glitchy as hell. The client controls crafting system. The server just verifies, and can modify the results if needed. However, latency can create problems for you. Ghost items, items that appear long enough for a user to grab them, exploiting the system. etc.
     
  4. Offline

    Epicballzy

    kennethbgoodin BillyGalbreath Thanks. I don't think I'm going to go down that path, and how would you remove an item from a players inv with item meta only? if its named Hello then remove that item on right click...
     
  5. Offline

    ZeusAllMighty11

    Yes it's possible, I've done this with a plugin in the past.


    Uhm no. Not from my experience, anyway.



    @OP

    What you need to do is check the prepared crafting event, grab the inventory and check the slots and their items. Then set the result in the inventory.
     
  6. Offline

    kennethbgoodin


    Epicballzy Loop through their inventory, check if each slot has an item, if so check if it has a name, and if so check that name, and if it equals the given name ("Hello"), clear the item at that index/slot.
     
Thread Status:
Not open for further replies.

Share This Page