Skip to content

🐛 Variant texutre swap uses item_model #528

Description

@Ice424

🛑 Before you Start

  • I have searched existing bug reports for my problem.
  • I have read the F-A-Q.
  • I am using the latest version of Animated Java
  • I will only report a single bug in this report. If I have found multiple bugs, I will create a separate report for each one.

🗣️ Describe the bug

With the target mine craft version set to 1.21.1 and using the texture swap feature of variants AJ will export a data pack that attempts to swap the textures by changing the item_model component which inst a component present in this version

⚠️ Error Message

from MC logs
[17:53:11] [Server thread/ERROR]: Tried to load invalid item: 'No component with type: 'minecraft:item_model'; No component with type: 'minecraft:item_model' missed input: {"minecraft:item_model":"aj:blueprint/my_blueprint/aqua/aqua"}'
[17:53:11] [Server thread/ERROR]: Tried to load invalid item: 'No component with type: 'minecraft:item_model'; No component with type: 'minecraft:item_model' missed input: {"minecraft:item_model":"aj:blueprint/my_blueprint/aqua/orange"}'
[17:53:11] [Server thread/ERROR]: Tried to load invalid item: 'No component with type: 'minecraft:item_model'; No component with type: 'minecraft:item_model' missed input: {"minecraft:item_model":"aj:blueprint/my_blueprint/aqua/purple"}'
[17:53:11] [Server thread/ERROR]: Tried to load invalid item: 'No component with type: 'minecraft:item_model'; No component with type: 'minecraft:item_model' missed input: {"minecraft:item_model":"aj:blueprint/my_blueprint/aqua/green"}'

🔄️ How to Reproduce

Set target version to 1.21.1
Create Texture A and texture B
Create a variant that swaps texture A for texture B
Export the pack
Change the variant command will return a success however the texture will not change and there will be an error in the logs

✅ Expected Behavior

On versions below 1.21.2 the item_model component should not be used

💡 Solutions & Alternatives

No response

🟩 Minecraft Version

1.21.1

🟦 Blockbench Version

5.1.6

💻 Operating System

Linux

📃 Installed Blockbench Plugins

No response

⛰️ Minecraft Environment

No response

Metadata

Metadata

Assignees

Labels

🐛 BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions