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

Solved Custom craft

Discussion in 'Development' started by Bluzzi, Oct 25, 2017.

  1. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    Hello, I want to know how to put spaces in a custom craft, I try to put some air (id 0) but the craft does not work after...

    Sorry for my bad English, I'm French.

    PHP:
    Server::getInstance()->getCraftingManager()->registerRecipe(
                new 
    ShapedRecipe(Item::get(41409),
                [
                    
    "aaa",
                    
    "ara",
                    
    "aaa"
                
    ],
                [
                    
    "a" => Item::get(25100),
                    
    "r" => Item::get(25101),           
                ])
            );
     
  2. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    PHP:
    Server::getInstance()->getCraftingManager()->registerRecipe(
                new 
    ShapedRecipe(Item::get(41409),
                [
                    
    "   ",
                    
    " r ",
                    
    "   "
                
    ],
                [
                    
    "r" => Item::get(25101),         
                ])
            );
     
    Levi and Bluzzi like this.
  3. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    Basiclly for air put spaces or just don't put anything if there is nothing after it at the same line:
    PHP:
    "",
    "r"
     
    Levi and Bluzzi like this.
  4. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    I try with spaces, and it does not work either, then after if I put nothing at all, well I can not make a beautiful presentation :/

    French for Friscowz :):
    J'ai essayer avec des espaces, et ça ne marche pas non plus, puis aprés si je met rien du tout, et bien je ne peux pas faire une belle présentation :D
     
  5. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    Looks like SOFe gave you warn point for talking only with french LMAO
    mdr il ta donné des points de ban toi aussi XD ?
     
    Bluzzi likes this.
  6. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    and Pocketmine's craft recipes use spaces, weird
     
    Bluzzi likes this.
  7. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    PHP:
    "r" // why not ? it's not really that bad.
     
    Bluzzi likes this.
  8. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    Yes, but I like when it's really classy :D

    Bah on m'a rien dit pour le moment, mais j'ai deja vue des français ce faire grondé lol...
     
  9. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    yeah last i had some discussions with SOFe on dms about this he actually banned Armagedon because of me LMAO
     
    Ayush and Bluzzi like this.
  10. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    Excuse me, I was trying hard, do not put the lines that are not used, and put spaces.

    Exemple:
    PHP:
    Server::getInstance()->getCraftingManager()->registerRecipe(
                new 
    ShapedRecipe(Item::get(30201),
                [
                    
    "rrr",
                    
    "r r"
                
    ],
                [
                    
    "r" => Item::get(41401),       
                ])
            );
     
  11. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    Bluzzi thats what i said
     
  12. Marabou

    Marabou Baby Zombie

    Messages:
    137
    GitHub:
    wiligangster
    OFF TOPIC !!!!!!!!!!!
     
  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.