1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Custom Craft

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

  1. Flow

    Flow Silverfish

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

    Emirhan Akpınar Slime

    Messages:
    90
    with ShapedRecipe class
     
  3. MusicNOvas

    MusicNOvas Spider Jockey

    Messages:
    43
    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 Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    OP asked to explain not to spoon feed
     
    Last edited: Apr 17, 2019
  5. ArutaVM

    ArutaVM Creeper

    Messages:
    1
    GitHub:
    ArutaVM
    Sorry, but
    Where is the position of the AAA letters like in the crafting table?
     
  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.