EntityJS

EntityJS

496k Downloads

Multiple custom projectiles only use one of their textures.

Rad586 opened this issue ยท 8 comments

commented

Report an issue or feature request

Mod Version:
0.2.4 (latest)

Minecraft Version:
1.19.2

Minecraft Modloader:
Fabric

Describe the Bug/Feature Request:
Multiple custom projectiles only use one of their textures.

Screenshots or Logs:
image
image

Additional Information:
Environment:
image

Texture files are put in these locations, which should work as expected:
kubejs\assets\kubejs\textures\item and kubejs\textures\entity\projectiles
script:

StartupEvents.registry('entity_type', e => {
    e.create('dynamite', 'entityjs:projectile')
        .item(item => item.canThrow(true))
        .sized(0.4, 0.4)
        .renderScale(0.4, 0.4, 0.4)

    e.create('sticky_torch', 'entityjs:projectile')
        .item(item => item.canThrow(true))
        .sized(0.5, 0.5)
        .renderScale(0.5, 0.5, 0.5)

    e.create('sticky_ender_pearl', 'entityjs:projectile')
        .item(item => item.canThrow(true))
        .sized(0.5, 0.5)
        .renderScale(0.5, 0.5, 0.5)
})
commented

kubejs.zip
Here's a kubejs folder for reproducing this issue.

commented

Alright, I'll take a look

commented

i believe its supposed to be textures/item folder the item textures go in which is what the projectile renderer renders from. you currently have your item textures in the textures/entity/item folder. It needs to be the same as base kubejs and where it reads item textures from

commented

that all being said it still is defaulting to a random texture so this is definitely a bug

commented

This was a bug on my end with the renderer, a fix should be out within an hour

commented

I accidentally messed up the file location in the file I upload, the textures are actually in the right location on my side.
Thanks for taking a further look into this issue!

commented

Alright this should be fixed as of EntityJS 1.19.2-0.2.5

commented

Thanks for the quick fix! This issue is solved!