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

Add New Blocks

Discussion in 'Development' started by Zdhea, Jul 14, 2020.

  1. Zdhea

    Zdhea Spider

    Messages:
    13
    Im trying to add new blocks like stonecutter in my server . thats not important if they didnt work i just need to place them for design .
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Use
    PHP:
    ItemFactory::registerItem(new StoneCutter(), true);
     
  3. Zdhea

    Zdhea Spider

    Messages:
    13
    i know that . but what should i place in stonecutter.php ?
     
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    I looked back in the PMMP's source code, and stone cutter was already built-in. Use command /give [name] stonecutter
     
  5. Zdhea

    Zdhea Spider

    Messages:
    13
    thats the old Stonecutter . i mean new stone cutter . and stonecutter is just an example btw . for example how to add campfire ?
     
  6. dadodasyra

    dadodasyra Witch

    Messages:
    68
    GitHub:
    dadodasyra
  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.