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

Create new armure model

Discussion in 'Development' started by Rem, Jul 27, 2021.

  1. Rem

    Rem Creeper

    Messages:
    4
    Hello, (sorry for my english I’m french)
    I want to create a new armor but I don’t know two things:
    - make that an item can be placed in the armorial inventory
    - set a new armor model in the ressource pack and use it for this armor

    please help me
     
  2. PiloudeDakar

    PiloudeDakar Witch

    Messages:
    62
    GitHub:
    piloudedakar
    FR : Salut,
    Je tiens déjà à dire que je suis en train de réaliser la même chose et que ceci est une hypotèse que je suis en train de tester et quand l'occurence ça pourrait ne pas marcher. De plus, la version 4 de pocketmine arrive donc je pense qu'il faudrait plutôt réaliser ça avec le prebuild de pmmp4 donc le plugin que je vais te présenter pour créer un item va peut-être changer(Je l'ai mis sur mon github : https://github.com/PiloudeDakar/Pmmp4; voici le changelog :https://github.com/pmmp/PocketMine-MP/blob/master/changelogs/4.0-snapshot.md).

    Pour ça, il faut d'abord créer un item qui extend Armor et l'injécter grace aux packets jusqu'au client (exemple pour un item lambda : https://github.com/DasEpicDv/CustomisedBravo), après, il va falloir dans un pack de texture et gérer un fichier pour chaques pièces d'armures qui dit leurs textures, leurs models leurs différentes formes etc. Pour cela tu peux utiliser le logiciel bridge (https://bridge-core.app/) :
    - Tu créer un pack de texture
    - Tu ajoute tes modèles et textures
    - Tu créer un renderer controller pour ton armure (renderer pour les armures de bases https://github.com/ZtechNetwork/MCB...der_controllers/armor.render_controllers.json)
    - Tu ajoutes un fichier attachables et tu rempli ce qu'ils te demandent (fichier du diamond helmet https://github.com/ZtechNetwork/MCBVanillaResourcePack/blob/master/attachables/diamond_helmet.json)
    - Encore un autre mais cette fois ci avec un .player apres le nom ATTENTION CE N4EST PAS LE MÊME QUE CELUI D'AVANT(fichier du diamond helmet https://github.com/ZtechNetwork/MCB...master/attachables/diamond_helmet.player.json).

    Ensuite tu installe tout sur ton serveur et tu voie !
    Sinon, le début de mes recherches est ici, mais j'ai juger ça trop compliqué pour être réalisé : https://forums.pmmp.io/threads/3d-armor.11098/

    English version is coming !!!
     
    Last edited: Jul 27, 2021
  3. PiloudeDakar

    PiloudeDakar Witch

    Messages:
    62
    GitHub:
    piloudedakar
    EN : Hello,
    First of all, I would say that iI'm not sure of what I'll say and this is just a theory that I'm currently testing and this could doesn't work. After, Pocketmine 4 is coming so we'll need to uptade the plugin that I'll present to you (Prebuild release on my github : https://github.com/PiloudeDakar/Pmmp4; the changelog is here (good luck to read it :p : 1200 lines :mad:) : https://github.com/pmmp/PocketMine-MP/blob/master/changelogs/4.0-snapshot.md).

    To start, we need to create the items for the armor and inject it in the client game (exemple for a besic item : https://github.com/DasEpicDv/CustomisedBravo). After, we'll create a texture pack and write a file for each armor piece where we say model, texture, differents mods and more. You can use this software bridge : https://bridge-core.app/ :

    - Create a texture pack
    - Add your models and textures
    - First of all, you need to create a renderer controller file for your armor (renderer for basic armors : https://github.com/ZtechNetwork/MCB...der_controllers/armor.render_controllers.json)
    - After, you will create an attachable file for each armor pieces you created (attachable file for the diamond helmet : https://github.com/ZtechNetwork/MCBVanillaResourcePack/blob/master/attachables/diamond_helmet.json)
    - An other FOR EACH your armor pieces but avec an .player after the name(diamond helmet file : https://github.com/ZtechNetwork/MCB...master/attachables/diamond_helmet.player.json; PAY ATTETION THIS IS DIFFERENT THAT THE OTHER FILE !!!)

    Finally, you can test this on your server and see :D:D:D!
    The start of my shearchs is here : https://forums.pmmp.io/threads/3d-armor.11098/

    Version française juste au-dessus !
     
    Last edited: Jul 28, 2021
  4. PiloudeDakar

    PiloudeDakar Witch

    Messages:
    62
    GitHub:
    piloudedakar
    I took me on hour to do this and translate it, so if you can pay me by getting starts on my github : https://github.com/PiloudeDakar I will release public plugins in a little time !
     
    Primus likes this.
  5. Rem

    Rem Creeper

    Messages:
    4
    hello back thanks for your helping but I still can't equip the item in the armor slots and when I set the armor by plugin
    I see the model of the armor in front of me which means that I do not see anything
     
  6. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    https://github.com/alvin0319/CustomItemLoader
     
    Agent likes this.
  7. Rem

    Rem Creeper

    Messages:
    4
  8. PiloudeDakar

    PiloudeDakar Witch

    Messages:
    62
    GitHub:
    piloudedakar
    You can do an command that equip the armor or with item held event
     
  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.