Sound​s

Sound​s

2M Downloads

Support for server plugins that show custom items with custom model data

FaultyFunctions opened this issue · 1 comments

commented

Have you read the compatibility information above?

  • Yes, I have read and understand the compatibility note.

Mod Loader

Fabric

Game Version

1.21.1

Mod Version

2.2.1

Describe the Feature

So plugins like Nexo or ItemsAdder work by showing the player minecraft:paper but just with a custom model data applied to make it appear like a different item (and custom NBT data for different functionality). I was wondering if you could add support for defining an item with custom model data on it so we can assign custom blocks on our server custom UI sounds using the Sounds mod. Currently you hear paper if the base item uses paper but it could be any custom block and you would just be hearing paper sounds from it.

Use Case

Supporting custom sounds for the custom blocks on our Minecraft server for better immersion.

Additional Information

No response

commented

Supporting custom model data and NBT for sounds in the Sounds mod isn't feasible, it would drastically increase the complexity of an already slow sound definition lookup system. These workarounds can be unstable and are difficult to maintain. Creating a dedicated mod for your custom blocks and adding relevant sounds' sound definitions is the recommended approach here.

Alternatively, I might look into creating a "Sounds" component, but this would make Sounds no-longer client-sided, which is not really my intention here. I will make an event in the API where mod developers can override the final sound event used for dynamic items/blocks etc.