Closed Kevin-writes-code closed 8 months ago
Pro Tip! You can help us label your Pull Requests by using the following branch naming convention next time you create a pull request. โค๏ธ Branch naming convention | Label |
---|---|
feature/** |
๐ Feature |
fix/** |
โจ Fix |
chore/** |
๐งน Chores |
api/** |
๐ง API |
performance/** |
๐ก Performance Optimization |
compatibility/** |
๐ค Compatibility |
If your changes do not fall into any of these categories, don't worry. You can just ignore this message in that case! ๐
We have item-models.yml
, and some resource packs are already using this file.
Description
Minecraft supports custom Textures for items since 1.14 and I thought it would be a great addition to allow TexturePack creators to add custom textures to ingots, items and so on.
Proposed changes
I added added customModelData to each items Metadata during registration, excluding heads since that'd break their textures. I also added a setter for the counter so add-ons can claim their own range for compatibility. Furthermore, and here I am a little uncertain, I had to change a line in customTextureService to not reset the customModelData. The provided Tests all passed and I am currently testing the changes on a private server. The variable customModelData could be used to get item-ids in guide.
Related Issues (if applicable)
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null values