Fabric API

Fabric API

152M Downloads

[1.21.4] datagen of custom bow generates pulling models but NOT base model

Ioandar opened this issue ยท 1 comments

commented

I am porting from 1.21.1 to 1.21.4 using 0.119.2+1.21.4

I am using datagen and make my bow-models with

itemModelGenerator.registerBow(ModItems.AMBER_BOW);

This generates these models in "src\main\generated\assets\tomcraftmod\models\item"

amber_bow_pulling_0.json
amber_bow_pulling_1.json
amber_bow_pulling_2.json
but NOT
amber_bow.json

So ingame the pulling is shown correctly BUT the base model is not

When I manually add the "amber_bow.json" all is fine

Why is the base model not generated?
please push me in the right direction for what I do wrong
thank you! cheers imp

commented

found it myself....
seems you have to upload() to make the bow appear with texture and all

hope thats how it is done right. At least it works

itemModelGenerator.upload        (ModItems.AMBER_BOW, Models.BOW);
itemModelGenerator.registerBow(ModItems.AMBER_BOW);