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

How to fix minecraft crash when connecting to the server?

Discussion in 'Requests' started by Voter, Sep 29, 2019.

  1. Voter

    Voter Creeper

    Messages:
    3
    I added a new item and after that minecraft began to crash

    Code:
    PHP:
    $id 440;
    $name "New Item Name";

    ItemFactory::registerItem(new Item($id,0,$name), false);

    Item::addCreativeItem(Item::get($id));
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    It doesn't work like that... 440 isn't a valid item id.
     
  3. Voter

    Voter Creeper

    Messages:
    3
    Well.. How can I add new item to pmmp?
    With a texture.
     
    Fadhel likes this.
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    I doubt the possibility of that being conceivable.
     
  5. Voter

    Voter Creeper

    Messages:
    3
    It's possible. I've seen that.
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    You may only change the behaviour or texture of existing items, adding new item IDs is not possible due to how Minecraft works.
     
    EdwardHamHam and dktapps like this.
  7. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    clearly it is possible to conceive otherwise he wouldn't have conceived it...
     
  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.