gnembon / fabric-carpet

Fabric Carpet
MIT License
1.73k stars 275 forks source link

Enhance Value#of Method for Improved Item Data Retrieval (Components compatibility) #1996

Open Gnottero opened 2 months ago

Gnottero commented 2 months ago

Overview:

This pull request introduces a new function, item_components, which accepts an item tuple as an argument and returns a list of all components within the tuple, including default components that are typically hidden.

Reason:

The primary purpose of this function is to provide access to default components, enabling users to leverage them for internal calculations, such as determining custom block breaking speeds based on the tool component.