Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Item Attribute Modification Capabilities #40

Open
2 of 5 tasks
pokesmells opened this issue Oct 17, 2024 · 0 comments
Open
2 of 5 tasks

[FEATURE] Item Attribute Modification Capabilities #40

pokesmells opened this issue Oct 17, 2024 · 0 comments
Labels
✨ Enhancement New feature or request

Comments

@pokesmells
Copy link

pokesmells commented Oct 17, 2024

What is your feature request?

Item Attribute Modification (Minecraft 1.20.1 - NBT-based)

  • NBT Modifications: Item attributes will be modified by accessing the item's AttributeModifiers tag in the NBT data. This allows users to change attributes like armor, attack damage, etc.

  • Item Identification: Modifications will target items by their name and mod ID (e.g., techreborn:quantum_boots). Users can clamp onto any item in the game.

  • Hooking into Item Slots: The system will hook into the item's slot (e.g., armor, weapon) where it is equipped. This ensures that the modified attributes are applied when the item is in use.

Item Attribute Modification (Minecraft 1.21+ - Component-based)

  • Component-based Overrides: In Minecraft 1.21+, the component system simplifies item modification. Instead of using NBT, the item’s component will be overridden with a custom one containing the modified attributes.

  • User-defined Components: Users can specify new attributes (e.g., changing armor from +20 to +5) by overriding the default item component.

  • Easy Updates: The new component system allows for dynamic changes and easier future updates compared to the NBT approach.

Key Features

  • Cross-Version Compatibility: The system supports attribute modification for any item across different versions (1.20.1 via NBT, 1.21+ via components).

  • Flexible Customization: Users can change attributes like armor or attack damage by referencing the item name and mod ID, allowing for easy item tuning in modded environments.

What type of change is this?

  • Visual
  • Features/Mechanics
  • Performance
  • Compat
  • Others
@pokesmells pokesmells added the ✨ Enhancement New feature or request label Oct 17, 2024
@pokesmells pokesmells changed the title [Feature] Item Attribute Modification Capabilities [FEATURE] Item Attribute Modification Capabilities Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant