ModsCraft » Guides » Minecraft PE: How to Create Your Own Item

Minecraft PE: How to Create Your Own Item

WhatsApp
Telegram VKontakte Odnoklassniki Pinterest
Minecraft PE: How to Create Your Own Item

Starting with Minecraft Bedrock Edition Beta 1.12.0.2, the game introduced a new feature that allows you to create your own items using resource packs and behavior packs. In this guide, we'll briefly explain this feature.

At the end of the guide, we left a link to download an archive with a ready-made resource and behavior pack. Over time, we may update this guide by adding or changing information.


Step 1: Create a Resource Pack.

Using resources, we first need to register our item in the game and optionally assign it a custom icon.

To create a resource pack, go to the folder:

  • Windows 10: C:\Users\YourUsername\AppData\Local\Packages\
    Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\
    com.mojang\resource_packs
  • Android: \games\com.mojang\resource_packs

In this folder, create a new folder for your new pack. You can name it anything, but try to use meaningful names to avoid confusion later.

Minecraft PE: How to Create Your Own Item

Go into the created folder and create a file named manifest.json.

Open this file with a text editor and paste the following code:

We won't go into all the settings details, but the most important part here is the lines "uuid": "UNIQUE ID".

These values are mandatory; otherwise, the game system won't recognize the packs.

Getting them is easy. Go to the website https://www.uuidgenerator.net/version4. Enter the number of identifiers in the "How Many?" field and click "Generate".

Insert the obtained values instead of "UNIQUE ID" (they must not repeat!) in the manifest.json file. The result should look something like this:

In the pack folder, create another folder named items, where your items will reside.

Go into the created folder and create a file named itemName.json.

The result should look something like this:

Open the created file and fill it with the following code:

Don't forget to change the line "minecraft:itemName" to the name you gave the file.

Description of variables:

  • identifier - item identifier
  • category - item category
    • Can take the following values: Equipment, Nature, Items
  • minecraft:icon - item icon. You can read about creating your own icon at the end of the guide.
  • minecraft:use_animation - use animation:
    • eat - eating
    • camera - camera
    • crossbow - crossbow
    • bow - bow
  • minecraft:render_offsets - item appearance in hand:
    • seeds - seeds
    • flesh - flesh
    • fishes - fish
    • melon - melon

You should have something like this:


Step 2: Create a Behavior Pack.

Great! We created our item, but to make it fully functional, we need to give it "logic" using a behavior pack.

Now, in the folder \games\com.mojang\behavior_packs\, create a new folder for the behavior pack.

In the created folder, again create a manifest.json file and an items folder.

Open the newly created manifest.json file and paste the following:

Note that again you need to specify "UNIQUE ID", which you must generate again on the same site - https://www.uuidgenerator.net/version4.

In the "dependencies" section, you need to specify the "uuid" of our resource pack. This way, you can activate only the behavior pack, and the resource pack will be loaded automatically.

The result should look like this:

Now go to the items folder and create a file named itemName.json again.

In the created file, paste the following using a text editor:

Description of variables and components:

  • identifier - item identifier
  • minecraft:hand_equipped - can be held in either hand (true/false)
  • minecraft:stacked_by_data - can stack (true/false)
  • minecraft:use_duration - use duration (integer)
  • minecraft:foil - can be used as fuel (true/false)
  • minecraft:food
    • nutrition - saturation (number)
    • saturation_modifier
    • can_always_eat - can always eat
    • effects - effects received (array)
      • name - effect name
      • chance - chance of receiving (1.0 = 100%)
      • duration - duration (in seconds)
      • amplifier - effect level
  • minecraft:seed - allows planting on farmland
    • crop_result - block to be placed on farmland
  • minecraft:block - purpose of this component is unclear
  • minecraft:camera - currently not working

Now we can launch the game, activate the packs, and test the functionality of our created item!

You can get the item with the command /give @s itemIdentifier (below there is information about creating a recipe for the item).

And voila!

And since we assigned it the minecraft:food component and listed the effects, now you can eat the item and receive effects!

181 comment
  1. Guest avatar
    Костя
    12:30 19 Jul 19
    Как добавить собственный блок?
  2. Guest avatar
    dima play
    20:24 8 Jul 19
    Если есть вопросы о чем-то косаемого создания предметов/блоков и т.д., задавайте.
    1. Guest avatar
      Артём Мудрак
      0:30 13 Jul 19
      Пробовал сделать аддон который позволяет применять поводок к жителям деревни
      В майкрафт-вики вычитал что за это отвечает параметр minecraft:leashable
      https://minecraft.gamepedia.com/Bedrock_Edition_entity_components_documentation#minecraft:leashable
      Но что-то не получается
      Аддон добавляется в игре но возможность посадить жителя на поводок не работает
    2. Guest avatar
      Диман
      10:43 26 Jul 19
      Как создать блок?
    3. Guest avatar
      Eugene 21
      21:12 17 Aug 19
      Как с тобой можно связаться? Любая соц сеть я везде есть! Мне надо кое что узнать, и вопросы задать! Прошу помоги
    4. Guest avatar
      Салман Гаджиев
      7:15 16 Mar 20
      А для какой версии майна создали это яблоко? И где можно это изменить?
    5. Guest avatar
      ipl
      13:26 9 Apr 20
      Как создать блок
    6. Guest avatar
      LuckyDog
      15:38 9 Jun 20
      Можешь помочь? У меня майн не видит связи с id набора, как это исправить?
  3. Guest avatar
    dima play
    20:21 8 Jul 19
    Да ладно, ребят, все просто, как 2x2!
  4. Guest avatar
    Копслей
    11:34 4 Jul 19
    Ребят что за тег data пишется после item в коде этом:
    {
    "format_version": "1.12",
    "minecraft:recipe_shaped": {
    "description": {
    "identifier": "идентификаторРецепта"
    },

    "tags": [ "crafting_table" ],
    "pattern": [
    "III",
    "III",
    "III"
    ],
    "key": {
    "I": {
    "item": "идентификаторПредмета"
    }
    },
    "result": {
    "item": "идентификаторПолучаемогоПредмета"
    }
    }
    }
    1. Guest avatar
      Анастасия Тейлор
      3:04 2 Aug 19
      Это разновидность предмета
      Например доски - березовые, дубовые и т.д.
  5. Guest avatar
    Саша Коваленко
    22:09 1 Jul 19
    А есть видео урок ато я почти нечего не понял
  6. Guest avatar
    ArtyomTank or Naredsh
    3:19 24 Jun 19
    Где взять документацию?
    Та которую можно скачать на официальном сайте даёт инфу только о мобах и текстурах
    1. Guest avatar
      ArtyomTank or Naredsh
      3:29 24 Jun 19
      Хочется создавать не только еду, но и оружие с доспехами
      1. Guest avatar
        ArtyomTank or Naredsh
        7:43 24 Jun 19
        Сорян, не заметил ссылочку в конце статьи
  7. Guest avatar
    Полина Румцева (Molina)
    12:26 17 Jun 19
    Всем привет. У меня есть вопрос. Ни предметы из моих модов, ни из найденных в интернете не отображаются в инвентаре в творческом режиме. Их можно получить только крафтом или командой. Может какую-то строку, о которой я не знаю, надо прописать? Может, глюк самой игры, который ещё не поправили? Подскажите, пожалуйста. :*
    1. Avatar Admin
      Admin
      18:31 17 Jun 19
      Вроде как пользовательский предмет нельзя получить из инвентаря творческого режима. Нужно ждать версию 1.13 и новый API, который добавит эти возможности, возможно.
      1. Guest avatar
        Полина Румцева (Molina)
        18:41 17 Jun 19
        Понятно, значит буду ждать. Спасибо.
      2. Guest avatar
        dima play
        11:46 20 Jun 19
        Хотя да, возможно еще в этом то и проблема.
    2. Guest avatar
      Анастасия Тейлор
      3:03 2 Aug 19
      В свойствах предмета тип такого:
      "identifier": "lamps:black_lamp",
      "register_to_creative_menu": true,
  8. Guest avatar
    Worsly
    16:19 3 Jun 19
    Супер! Больше гайдов по теме аддонов, пожалуйста!
  9. Guest avatar
    Pavel Lebedev
    11:21 31 May 19
    Если у вас не работает то просто в мире где вы включили пак, включите эксперементальный режим. Это обязательно!
  10. Guest avatar
    Pavel Lebedev
    20:39 28 May 19
    Вот он, он!
    Майнкрафт будущего:)

Immerse yourself in a unique adventure with classic survival, anarchy, a clan system, and constant events!…

PvP, Survival
IP:Port craft.pe:19132
Online 400 / 1501
Version 1.1 - 1.26
Play