AutoSwitch

Automatic switching of tools when you perform an action.

Редакция NLZONE · 2 мин чтения · 1 просмотр
AutoSwitch
Скачать AutoSwitch1.16 – 26w14a · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Automatic switching of tools when you perform an action.

  • Тип: мод
  • Загрузчик: fabric, neoforge
  • Версии Minecraft: 1.16 – 26w14a
  • Скачиваний на Modrinth: 189 964

Подробно

[](https://modrinth.com/mod/fabric-api "Download Fabric API")

AutoSwitch is a Minecraft mod available on Fabric and NeoForge for automatically switching the active tool to the correct one when attacking or interacting with blocks or entities - you attack a stone block, it switches to a pickaxe, then when you hit an annoying gravel patch it switches to a shovel. Which tool is chosen and when is all configurable, taking into account information such as the current enchantments on the tool, the target's blockstate, or an entity's equipment.

AutoSwitch uses a HOCON config file autoswitch.conf, located in the config folder which is next to the resource pack folder. A quick way to navigate there is by going to Options > Resource Packs > navigate up one folder.

The mod can be toggled on/off in game by pressing R (default).

> This section only applies to AutoSwitch 12+. Earlier versions used a different config format.

There are four sections in the config file - three for defining selectors and targets when various actions occur, and one for general feature configuration:

attack-action - rules used when attacking (entities or blocks). interact-action - rules used when interacting (right-clicking entities or blocks). stat-change-action - rules triggered by stat events (e.g., a totem of undying activates, works only in singleplayer). feature-config - Controls the overall behavior of the mod.

priority - integer; higher values are given precedence what multiple targets match. target - an IdSelector of type BLOCK, ENTITY, STAT, or an EXPRESSION allowing the combination of other targets). tools - ordered array of IdSelectors or EXPRESSIONs with the ITEM type to switch to, or be an empty list (to disable switching for that target).

IdSelectors can reference tags or specific explicit IDs (#minecraft:stone, minecraft:enderchest). They have an optional data field to allow matching against things like specific item enchantments or blockstates. The player data field can be applied to any type of selector, allowing matching based on the player's condition such as if they are crouching or a certain distance away from a target.

EXPRESSIONs can have as many elements or as much depth as you wish, allowing for a great deal of control. The default config covers a wide range of cases and should serve as a great basis for expanding.

Simply resave the config file while the game is running for it to be automatically reloaded.

Expressions can be nested to any depth you desi

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также