Sal_fish's Attribute Lib

Sal_fish's Attribute Lib (双拼原味咸鱼罐头) – a Forge 1.20.1 library adding configurable attributes and cross-session command memory.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Sal_fish's Attribute Lib
Скачать Sal_fish's Attribute Lib1.20.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Sal_fish's Attribute Lib (双拼原味咸鱼罐头) – a Forge 1.20.1 library adding configurable attributes and cross-session command memory.

  • Тип: мод
  • Загрузчик: forge
  • Версии Minecraft: 1.20.1
  • Скачиваний на Modrinth: 4 311

Подробно

A lightweight attribute library for Minecraft Forge 1.20.1, designed to give modpack creators and players fine-grained control over entity properties through the vanilla attribute system. It also includes a cross-session command memory feature that persists command history across game sessions.

📦 Shared Attributes (applied to all living entities) These attributes are automatically added to every living entity. Modpack makers can set default values globally or per entity type, and other mods can modify them dynamically.

generic.scale – Controls the visual size and hitbox of the entity. Default: 1.0

generic.stepheight – The maximum block height the entity can walk up without jumping. Default: 0.6

generic.safefalldistance – The maximum vertical distance the entity can fall before taking fall damage. Default: 3.0

👤 Player-Only Attributes These are added only to players and affect gameplay balance and interaction ranges.

generic.creativeflight – If set to a value greater than 0, the player can fly regardless of game mode. Default: 0

player.blockinteractionrange – The maximum distance at which the player can interact with blocks (place, break, use). Default: 4.5

player.entityinteractionrange – The maximum distance at which the player can interact with entities (attack, use). Default: 3.0

player.blockbreakspeed – A multiplier applied to the player’s block breaking speed. Default: 1.0

All attributes support any value (technically bounded by Java integer limits), allowing pack authors to fine-tune everything from movement to reach without creating dozens of separate modifiers.

🧠 Command Memory System The mod automatically remembers the last 50 commands typed in chat (messages starting with /) and saves them to a commandhistory.txt file in the Minecraft game directory.

History persists across world changes and even after completely exiting the game.

Commands are stored in order and are accessible via the ↑ / ↓ arrow keys in the chat screen, just like the vanilla chat history.

No extra configuration needed – it works out of the box.

🔧 Usage Simply install this mod on both server and client. No configuration files or dependencies required.

For modpack authors: Use the provided attribute registries to assign custom values to players and mobs via command blocks, scripts (CraftTweaker, KubeJS), or your own mods.

For other developers: Add this library as a dependency and access the attribute registry objects directly from ModAttributes.

📄 Technical Notes Attributes are registered using Forge’s DeferredRegister and ar

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

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

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

Редакция NLZONE

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

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

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

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