Is it possible to create a new tool ?

Discussion in 'Development' started by Ayzrix, Jun 18, 2020.

  1. Ayzrix

    Ayzrix Witch

    Messages:
    57
    GitHub:
    Ayzrix
    Hi , I was wondering if it was possible to add for example a new pocketmine pickaxe by modifying another item. For example make a blaze rod become an emerald pickaxe and then break faster than a diamond pickaxe
     
  2. Sesamo

    Sesamo Silverfish

    Messages:
    18
    GitHub:
    Lowzer
    Ummm can't
     
  3. Sesamo

    Sesamo Silverfish

    Messages:
    18
    GitHub:
    Lowzer
    But mc on pc can do it.
    By use the datapack
     
  4. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    Stop providing false information. Indeed, it is possible. Steps to do it (I'm just typing this quickly in a car, correct me if I'm wrong:
    Register a new item
    You can simply register your item (check out the files in src/pocketmine/item to get an idea on how to do it)
    Get a resource pack
    You need a resource pack, don't expect pm to just magically add a texture for your item
    Make it break blocks faster
    I believe that there is a function for that (will check later:)) , but you can simply enchant it with Haste (using the if statement and the item name).
    [EDIT]
    You can set a custom recipe for it too ;)
     
    mmm545 likes this.
  5. mmm545

    mmm545 Slime

    Messages:
    90
    GitHub:
    mmm545
    hmmm actually i might do it hehe
     
  6. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    A) No one is interested.
    B) This is irrelevant.
    C) This thread has already been marked as solved (like most of the threads I've replied to :))
    [EDIT]
    The owner didn't even mark it as solved.. it's solved anyways ;-;
     
  7. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
    Actually PM doesn't allow you to register your own item or block. I've tried this before, but it never worked.
     
  8. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
  9. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    I never told you to register it using PMMP :), you have to create the Item using a plugin.
     
  10. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
    Ik that and ive tried that. It didn't work I can link my thread to this
     
  11. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
  12. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    Please stop spamming the thread with links if you cannot contribute. I've tried it myself and that's why I'm telling others. You must've done something wrong. Also, the first 'thread' if yours has something paid, and they came here asking for instructions, not 'paid' apis.
     
  13. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
    Im not spamming links, im showing you that its either not possible or very difficult to make another item on a pocketmine server
     
    Levi likes this.
  14. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    It's not that difficult, but it sure is difficult. But applying the resource pack to it... I have no idea, maybe type the item's custom name as the .png's name? I'll test it after breakfast :)
     
  15. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
    And since you claim to
    Exactly thats what I mean you can make another id for an item and add it to creative, but adding resource packs is the issue. Try it and let me know how it goes for you.
     
    Seeker likes this.
  16. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    It didn't work. Method A steps I took:
    A) register the item
    B) test if it works, /give <id>
    C) made a new resource pack, textures/items/<itemname>.png
    Didn't work.
    Method B:
    A) unregister an item you don't need
    B) register it as your item with a custom texture
    In conclusion: it is possible, gonna try MethodB tmr.
    It's only gonna break some stuff but.. I'm just helping out here
     
  17. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
    Methord B works, but you cannot add more items than there are in pocketmine
     
    Seeker likes this.
  18. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    Correction: you can add the items, but cannot use textures on them as they're for vanilla minecraft items :). If you were to code a custom cauldron or something, it would appear like 'magic'.
     
  19. esh123cookie

    esh123cookie Witch

    Messages:
    53
    GitHub:
    esh123cookie
    That what I meant, you cant add new items like in java. Only items which exist in normal mc can be modified
     
  20. Seeker

    Seeker Witch

    Messages:
    53
    GitHub:
    seeker-devs
    I might aswell try to set the ID as the texture file name.
    You are completely wrong by the way, no point in continuing this argument, we should focus on helping the guy/girl.
     

Share This Page

  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.