Custom Craft

Discussion in 'Development' started by Flow, Apr 12, 2019.

  1. Flow

    Flow Spider

    Messages:
    6
    How to use custom craft in explain please ?
     
  2. Emirhan Akpınar

    Emirhan Akpınar Spider Jockey

    Messages:
    35
    GitHub:
    EmirhanWSD
    with ShapedRecipe class
     
  3. MusicNOvas

    MusicNOvas Silverfish

    Messages:
    22
    PHP:
    public function onEnable(){
            
    $this->getServer()->getPluginManager()->registerEvents($this$this);
            
    $i Item::get(Item::CHAINMAIL_HELMET);
            
    $helmet = new ShapedRecipe(["AAA","A A","   "],["A"=>Item::get(Item::EMERALD)],[$i]);
            
    $helmet->registerToCraftingManager($this->getServer()->getCraftingManager());
     
  4. Levi

    Levi Zombie Pigman

    Messages:
    764
    GitHub:
    captainleviftw
    OP asked to explain not to spoon feed
     
    Last edited: Apr 17, 2019 at 10:37 PM

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.