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

Registering new item (HELP)

Discussion in 'Development' started by kazuya, May 26, 2017.

  1. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    I am trying to register a new item but I am getting this error

    "Symbol does not appear in the shape: X" (EXCEPTION) in "/src/pocketmine/inventory/ShapedRecipe" at line 99"



    Code:

    $this->getServer()->getCraftingManager()->registerRecipe((new ShapedRecipe(Item::get(Item::GOLDEN_APPLE, 2, 1)->setCustomName(C::GOLD . 'Golden Head'),
    "XXX",
    "XYX",
    "XXX"
    ))->setIngredient("X", Item::get(Item::GOLD_INGOT, 0, 8))->setIngredient("Y", Item::get(Item::SKULL, 3, 1)));
    }

    this used to work before but not it doesn't.. I am using Tesseract
     
  2. DaPigGuy

    DaPigGuy Slime

    Messages:
    86
    GitHub:
    DaPigGuy
    This forum is not for spoons.
     
    DogTheBlock likes this.
  3. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    oh, my bad
     
  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.