[solved]restrict the crafting of things

Discussion in 'Plugin Development' started by -JHB-, Apr 10, 2011.

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

    -JHB-

    Is there some way to restrict a player from crafting as an example iron block?
    I could find such a thing in the docu. =/
     
  2. Offline

    Carnes

    I'm not sure. But i know you could prevent them from placing an iron block.
     
  3. Offline

    -JHB-

    it's about crafting things...
    I might change my example to mhhhm some tool dia sword.
     
  4. Offline

    1337

    you can stop them from having it in there hand if you want just hook into the onPlayerMove event and check the item in there hand if it is the one you dont want set the id to null
     
  5. Offline

    -JHB-

    mhhhm they should be allowed to use it
    but they have to buy it ... This is for my job system...
    On that way you'll have a good econemy going ..
     
  6. Offline

    Carnes

    ah, i've thought of something that might work for you. Whenever they open a workbench, remove the restricted items so they can't build with them. You can restore their items after they leave the bench. This way they can still store them in boxes and so on.
     
  7. Offline

    -JHB-

    mhhhm thats an first idea thx.
    but still the real restriction would be better =/

    found something. Might work.
    net.minecraft.server.InventoryCraftResult

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
Thread Status:
Not open for further replies.

Share This Page