▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
CITATTFP

CITATTFP

Datapack for change Twilight Forest portal activator item

Оцените первым
4.7K
8

Custom item to activate the Twilight Forest portal (CITATTFP)


[EN] How to use
  • Open the archive, navigate to the path: /data/twilightforest/tags/items/portal/ and open the file activator.json.
  • Its contents will look something like this:
{
  "replace": true,
  "values": [
    {
      "id": "minecraft:netherite_ingot",
      "required": false
    }
  ]
}

In this case, minecraft:netherite_ingot is the item that will replace the diamond for activating the portal.

  • Insert the ID of the item you want to use instead of minecraft:netherite_ingot. Don't forget the quotes.
  • Save the file, close the archive and move it to the folder /saves/(WorldName)/datapacks/.
How to get an item ID

To get an item ID, press the key combination F3 + H in the game, then hover over the item in your inventory.

!img

What is highlighted in red in the photo is the item ID you need to use in activator.json.

Examples of activator.json:

Replacement with a sniffer egg

{
  "replace": true,
  "values": [
    {
      "id": "minecraft:sniffer_egg",
      "required": false
    }
  ]
}

Replacement with a totem of undying

{
  "replace": true,
  "values": [
    {
      "id": "minecraft:totem_of_undying",
      "required": false
    }
  ]
}

Replacement with an egg, netherite ingot and trident

Since the activator.json file is a tag, you can add multiple items (including other tags) that will activate the portal to the Twilight Forest.

{
  "replace": true,
  "values": [
    {
      "id": "minecraft:netherite_ingot",
      "required": false
    },
    {
      "id": "minecraft:egg",
      "required": false
    },
    {
      "id": "minecraft:trident",
      "required": false
    }
  ]
}

Guide for 1.12.2

For 1.12.2 follow this plan:

  • Go to the /config/ folder, find the twilightforest.cfg file there and open it.
  • Find the line S:portalCreationItems <minecraft:diamond> - this line is responsible for changing the portal activator.

Otherwise, do the same as in the instructions above: find out the item ID, write it instead of minecraft:diamond, and reload the game.

[RU] Как использовать
  • Откройте архив, пройдите по пути: /data/twilightforest/tags/items/portal/ и откройте файл activator.json.
  • Его внутренность будет выглядеть как-то так:
{
  "replace": true,
  "values": [
    {
      "id": "minecraft:netherite_ingot",
      "required": false
    }
  ]
}

В данном случае minecraft:netherite_ingot - является тем самым предметом, который будет заменять алмаз для активации портала.

  • Вставьте вместо minecraft:netherite_ingot ID того предмета, который вы хотите использовать. Не забудьте про кавычки.
  • Сохраните файл, закройте архив и перенесите его в папку /saves/(WorldName)/datapacks/.
Как получить ID предмета

Чтобы получить ID предмета нужно нажать комбинацию клавиш F3 + H в игре, после чего навести курсор на предмет в инвентаре.

!img

То, что выделено на фото красной рамкой и является ID предмета, который нужно использовать в activator.json.

Примеры activator.json:

Замена на яйцо нюхача

{
  "replace": true,
  "values": [
    {
      "id": "minecraft:sniffer_egg",
      "required": false
    }
  ]
}

Замена на тотем бессмертия

{
  "replace": true,
  "values": [
    {
      "id": "minecraft:totem_of_undying",
      "required": false
    }
  ]
}

Замена на яйцо, незеритовый слиток и трезубец

Т.к. файл activator.json является тегом, то предметов, которые будут активировать портал в Сумеречный лес, можно добавлять несколько (в том числе и другие теги).

{
  "replace": true,
  "values": [
    {
      "id": "minecraft:netherite_ingot",
      "required": false
    },
    {
      "id": "minecraft:egg",
      "required": false
    },
    {
      "id": "minecraft:trident",
      "required": false
    }
  ]
}

Гайд для 1.12.2

На 1.12.2 следуйте этому плану:

  • Зайдите в папку /config/, там найдите файл twilightforest.cfg и откройте его.
  • Найдите строку S:portalCreationItems <minecraft:diamond> - эта строка и отвечает за смену активатора портала.

В остальном делаем то же самое, что в инструкции выше: узнаём ID предмета, вписываем его вместо minecraft:diamond и перезагружаем игру.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:3 года назад
Обновлён:1 неделю назад
Главная