#textures on different sides

22 messages · Page 1 of 1 (latest)

wary flare
#

I did see a post similar to this but they were on 1.20.1 and i am for sure on 1.21.1. and i am getting the default purple and black texture ingame. please help (the pear is only a test/joke block)

twilit isleBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

wary flare
sterile crag
#
  1. I am unsure if KubeJS automagically translates domainless JS ResourceLocations (eg mod:id but missing the mod:) but default behaviour in (Neo)Forge is that domainless = vanilla minecraft, so the game might be attempting to search for the pear texture amongst the vanilla textures
  2. for blocks, you must specify what sub-directory the asset (texture) is in. For blocks, that means the ResourceLocation should be something like kubejs:block/pear_top
    Switch out your code, though I've honestly never seen someone pass an object to the KubeAssetGenerator before, might work, might now

if it still doesn't work, try this

event.create(pear)
.modelGenerator(model => {
    model.texture('top', 'kubejs:block/pear_top')
    model.texture('down', 'kubejs:block/pear_bottom')
    model.texture('side', 'kubejs:block/pear')
})
wary flare
#

i just tried specifying the folder this same way, so i will try this model generator way!

wary flare
#

it still isnt working

wary flare
#

i might have put it on the wrong layer here

#

im going to fix the layering and see if that works

wary flare
sterile crag
#

Can you provide logs?

prime viperBOT
#

Please send your Minecraft log. It can be found at /minecraft/logs/latest.log.
Note! Minecraft and KubeJS logs differ. Please send the latest.log, not a KubeJS log.
Please send the file directly, without links or snippets.

wary flare
#

@sterile crag

#

(sorry if its late for you)

prime viperBOT
#

Paste version of latest.log from @wary flare

sterile crag
#

odd

[18Dec2025 19:32:06.328] [modloading-worker-0/INFO] [KubeJS Startup/]: Loaded script startup_scripts:testing.js in 0.045 s
[18Dec2025 19:32:06.357] [modloading-worker-0/INFO] [KubeJS Startup/]: Loaded 2/2 KubeJS startup scripts in 2.341 s with 0 errors and 0 warnings

No errors
There was 0 mentions of pear-anything having missing textures either, only aspear berry from supplementaries >.>

wary flare
#

???????

#

Im so confused

#

Im gonna go play a different modpack and come back to this tommorow lmao

#

And just to be correct in order to rerun startup config I need to exit out of the entire game and I dont need to exit curseforge

And I save the progress in the file (visual studio code) by pressing the file button and hitting save

sterile crag