Mod

Sal_fish's Attribute Lib

Quick rating

Sal_fish's Attribute Lib

No reviews yet

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

API/Library
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
sal_fishs_attribute_lib-1.0.6-forge-1.20.1.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Sal_fish's Attribute Lib (双拼原味咸鱼罐头)

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.step_height – The maximum block height the entity can walk up without jumping. Default: 0.6

  • generic.safe_fall_distance – 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.creative_flight – If set to a value greater than 0, the player can fly regardless of game mode. Default: 0

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

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

  • player.block_break_speed – 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 command_history.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 are fully synced between server and client.

  • Entity rendering (scale, shadow size) is adjusted automatically via mixins, ensuring visual consistency.

  • The command history feature uses a local file to store commands; it never sends anything to a server.


Feel free to use, modify, and distribute in modpacks. Feedback and suggestions are always welcome!

Sal_fish's Attribute Lib (双拼原味咸鱼罐头)

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.step_height – The maximum block height the entity can walk up without jumping. Default: 0.6

generic.safe_fall_distance – 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.creative_flight – If set to a value greater than 0, the player can fly regardless of game mode. Default: 0

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

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

player.block_break_speed – 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 command_history.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 are fully synced between server and client.

Entity rendering (scale, shadow size) is adjusted automatically via mixins, ensuring visual consistency.

The command history feature uses a local file to store commands; it never sends anything to a server.

Feel free to use, modify, and distribute in modpacks. Feedback and suggestions are always welcome!

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync