#Custom Optifine Entity Model not working??

293 messages · Page 1 of 1 (latest)

subtle basin
#

Anyone know how to make Custom Boat model texture packs with optifine? I'm using block bench.

I have exported the file as a JEM file. I created a pathway for entity, named the JEM model after the ID of the acacia boat resource pack, then created a seperate pathway into textures, with the texture of the model. Yet when I go into the game, the boat is the default version. The custom resource pack folder IS a proper resource pack folder as well. It has the pack meta, etc. So it works fine, just don't know why my boat textures and model aren't loading in? Maybe I have the name wrong??

empty portalBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

subtle basin
#

I used CEM template, followed instructions properly, exported as JEM, exported texture file, made sure it was under the "Optifine entity" section.

I just don't know what I'm doign wrong

fierce wren
subtle basin
#

But there are resource packs that have custom boat models that only require optifime

#

And they work fine without the EMF and ETF mods

fierce wren
#

ok so your boat model just doesn't show up at all?

subtle basin
#

it doesn't show up like AT ALL

fierce wren
#

is your boat just boat.jem or is it a specific variant like oak_boat.jem

subtle basin
#

its a specific variant

#

specifically the Raft with chest.jem

#

I also tried using boat.jem but nothing happened either

fierce wren
#

ok interesting it saves it as chest_raft.jem

#

I'm not 100% sure if that's the correct name

#

I'm gonna boot up my game and test

subtle basin
#

alr alr, i'll give it a try

#

just to double check, the file path should be resource pack > assets > minecraft > optifine > cem > chest_raft.jem

#

and then after minecraft, i need to put the texture of that into textures > entity and it should also be named chest_raft

subtle basin
#

hmm, yeah that's what i got

fierce wren
#

ok interesting so I'm using EMF and ETF which should functionally be the same as Optifine
and using chest_raft.jem does work

#

could you show your model in Blockbench with the whole screen?

subtle basin
#

yeah sure

#

don't mind the texture names on the left. I changed them to "chest_raft" in the textures file path in my resource pack

fierce wren
#

ah ok so yea there is an issue with this
have you seen the tutorial on the CEM template loader?

subtle basin
#

I have

fierce wren
#

all elements must be inside the root bones that were created as part of the template

subtle basin
#

oh?

#

what does that mean

fierce wren
#

are all those cubes inside the original folders?

subtle basin
#

Oh

fierce wren
#

cus otherwise they will not show up in the game

subtle basin
#

I see

#

so

#

just to clarify

#

the only thing that matters is the blocks in the right file

#

size, etc does not matter

fierce wren
#

basically

#

there is no size limit to entity models

#

that I know of

#

so yea recreate those 6 folders and name them exactly

subtle basin
#

Can I chuck all the blocks into one file, or do I actually have to sort it properly

fierce wren
#

you can put them all in one

#

and leave the others empty

#

just make sure they are all present

subtle basin
#

ok, let me do it, give me like 3 mins and i'll get back to you whether it works or not

fierce wren
#

alright 👍
I would recommend putting them all in the "bottom" folder so they don't have weird animations to deal with

subtle basin
#

LMAOO

#

i mean

#

it definetely did something

subtle basin
fierce wren
#

ohh
ok so in entity models, you can't rotate cubes, but you can rotate folders
so for every rotated cubes/group of cubes with the same angle, they must go in a folder

#

that might be a challenge since you have 430 cubes

subtle basin
#

oh hellllll nah

#

so

#

how do i do that

#

because i can't create new folders

#

i only have 6 folders to work with

fierce wren
#

not new root folders

#

but inside those folders you can do whatever you want

subtle basin
#

oh

#

I see what you mean

#

so

#

should i reset all the rotated cubes to normal 90 degrees

#

THEN put them into a new folder

#

and then rotate them

fierce wren
#

you can do I think ctrl shift g when you select cubes

fierce wren
#

I would save a copy first

#

so you can see what everything should be angled like

#

so yea not sure why Blockbench let you rotate individual cubes...

#

it should have some sort of warning message

subtle basin
#

alright

#

i think im just going to create a new model

#

very similar

fierce wren
#

that might be faster ngl

subtle basin
#

because I can't be asked moving all those cubes lmao

#

430 cubes is crazy

#

although i don't actually have too many rotated cubes

fierce wren
#

also one thing to note, the more faces you have on your model, the more laggy it is

subtle basin
#

although, i DO have some rotated cubes inside the actual car itself

#

if i leave them in, will it still be bugged?

fierce wren
#

I think yea their rotations will just be set to 0

#

one more thing, looks like your texture isn't working

subtle basin
#

really? how so

fierce wren
#

it's all purple and black

#

which means the game can't load it

subtle basin
#

wait are you talking about the in game ss or in blocbench

#

ahh

fierce wren
#

in the game

#

is your texture named "bamboo.png" in assets/minecraft/textures/entity/chest_boat?

subtle basin
#

ohhh wait

#

i don't have that file path

#

i just put it straight into the entity folder

fierce wren
#

ah ok
also, could you show the first few lines of your jem file in a text editor?

#

it should have info on the texture the model is using

subtle basin
#

sure

subtle basin
fierce wren
#

ok you can remove the entire line that starts with "texture"

#

that's making it use a texture in the item folder which I don't think works

#

if you remove that line then it defaults to using the vanilla texture
which is the one in entity/chest_boat

#

well the one in the vanilla file location, which you are also replacing with this pack

subtle basin
#

wait @fierce wren

#

what if instead of recreating a model, if i just put EVERY single rotated cube into a folder, and put that folder into the "bottom" folder

#

would that fix it maybe?

fierce wren
#

well each set of cubes with a different angle needs its own folder

#

so not exactly

subtle basin
#

just fixed it actually, im getting small progress but it's going really really well

#

slight issue with the positioning however

#

in block bench it looks normal

#

but in game (i haven't adjusted the texture yet, i jsut wanted to make sure the model was at least working first), its a bit weird

#

It's like rotated and positioned really weirdly @fierce wren

subtle basin
#

ok @fierce wren

#

got the model done, the positioning is still weird

#

but i tried to apply the texture, but it comes back with this

subtle basin
#

yeah not sure why the texture isn't working. I renamed the texture in the blockbench as chest_raft (same as what the CEM template texture is called).

I also changed the name of the texture in the entity folder multiple times to bamboo, chest_raft, etc. I even tried to put them into the folder like you said with entity > chest_boat

Afterwards, i deleted the entire texture line like you said as well.

The texture is still black

fierce wren
#

ok I'm back lemme read all this

subtle basin
#

and for some reason everytime I change the texture (even though it doesn't load), the position of the baot changes too

#

all good

fierce wren
#

ok so it looks like the "bottom" folder has these rotations by default so you should try to replicate that

#

so 0, -90, -90

#

also when you save your model in Blockbench it probably re-added the texture line to the file

#

which you should remove so it uses the texture in entity/chest_boat

subtle basin
fierce wren
#

ok interesting
maybe the output log says something useful

#

!faq output log

empty portalBOT
# fierce wren !faq output log
FAQ
Java: Output Log

The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it.
(PS: Optifine likes to hide vanilla errors/warnings for some weird reason, so always load the game up without it if you don't need it for your pack to work!)
If you don't understand the errors/warnings feel free to show and ask about them (in a help channel).

subtle basin
#

wait

#

i'll double check the file

#

so delete the entire texture line

#

then in the chest_boat file

#

what should the texture name be called?

#

@fierce wren shouuld it be named chest_raft

#

also does this code look right:

#

ahh

#

there we go

#

the texture worked now

#

but the rotation is still off

subtle basin
fierce wren
#

ok so you can probably put everything inside a subfolder in bottom, and rotate it to counteract the bottom's rotation

subtle basin
#

just tried that

#

doesn't seem to work

#

@fierce wren

#

this is what happens as soon as i move it

#

nvm smh it's a download

#

uhh

#

1 sec

#

Moving by arrows is fine

#

But this is what happens as soon as I try touching the actual element position

#

@fierce wren

fierce wren
#

yeaaa the angled cubes move weirdly

subtle basin
#

again, like i tried to just move the stuff around even tho it wont sit right with the player and looks weirdi n block bench

#

but if i moe the boat down

#

then refresh the pack

#

then the boat in game moves like north east or sum

#

instead of just down

#

like idk wtf to do

fierce wren
#

Maybe I can take a look at the model
when you have things in rotated folders then translation gets weird

subtle basin
#

Here's the model. Let me know if you do decide to take a look at it and see if you can figure out the problem with positioning it right. Because I'm literally so stuck

fierce wren
#

ah ok I see what might be going on
you're trying to move the position of the "bottom" bone, but that will just be undone in the game to always be the default values
so trying to move the model by moving the root bone will just result in it moving in a weird way in a different direction

#

the bottom bone should stay at position -15 -1 -4

#

also you've sent a bbmodel, not a jem model

#

so it doesn't behave the same way when you edit it

#

in jem models, the position of the group is independant of the position of the cubes inside it

#

but when I try to change the group position in the bbmodel it also messes with the cube positions

subtle basin
#

ah okay I see

#

in that case what should I do?

#

also here's the Jem file

#

@fierce wren

#

let me know what I can do to fix it, or even if you wanted to try to fix it 😭 I do appreciate all the help you've given so far though, massive help

fierce wren
#

ok I'm working on it to see what actually works

#

why are all of these cube's positions like 0.0005 pixels off 😭

#

do you have a version before you messed with all the rotation stuff

#

maybe the position values are cleaner

subtle basin
#

Im pretty sure like

#

wait

#

actually

#

no i don't

#

wait

#

maybe i do

fierce wren
#

🙏

#

One of the annoying things about these models with few limitations is that it's easy to make it just slightly off

subtle basin
#

im pretty sure the main reason why it's so off

#

are the rotated cubes

#

im trying to fix it up rq

#

i might have to get back to you on this tomorrow

#

because i need to fix a lot of the cubes

#

how many pixels do you need for it to work properly? @fierce wren

#

say if I had something like 16.625

#

does that work

fierce wren
#

oh I just want to be able to center the model

#

and the whole thing being 0.0005 pixels off makes that almost impossible

#

so as long as the model is symmetrical around some nice number it should be fine

subtle basin
#

okay

#

so like the number 16.625 is fine

#

its like relatively clean

subtle basin
fierce wren
#

yea

#

exactly

#

preferably it would be mostly whole numbers

#

but ofc you have to use decimals sometimes for details

subtle basin
#

yeah I'll have to get back to you tomorrow

#

it seems that basically ALL the cubes are weird

#

gonna have to edit 430 cubes lmaoo

subtle basin
#

So there will be quite a few decimals. The top is 2 decimal places

#

Maybe SOME have 3 but not much

fierce wren
#

yeah that's fine
as long as it can be centered around a nice point

subtle basin
#

I don’t understand because like

#

I tried to move it around, but it was shifting the rotated blocks

fierce wren
#

what model format are you creating the model in

subtle basin
#

I’m creating it in optifine entity

fierce wren
#

ok so that's good

#

if you just create it using the template it should be easier

subtle basin
subtle basin
#

And that would be a bit uhh

fierce wren
#

yea true...

subtle basin
#

Annoying hahaha

subtle basin
#

hey @fierce wren what is the id or jem model thingo for a acacia boat with chest

fierce wren
#

idk, probably just acacia_chest_boat

subtle basin
#

I tried that, doesn't seem to work

#

works fine with chest_raft @fierce wren but nothing else works

#

even tried oak and all that other stuff

fierce wren
#

what Minecraft version are you on

subtle basin
#

1.20.1

fierce wren
#

oh then I think you can't have a separate jem model for the different types of boats
that was added in 1.21.4

#

you will need to use the random entities features

#

with .properties files and all that

#

which I have little experience in

subtle basin
#

ahhhh

#

i see

#

no worries then

#

thanks tho

fierce wren
#

Here's the docs, idk how helpful they are
https://optifine.readthedocs.io/random_entities.html

subtle basin
#

tysm

#

very helpful

sharp berry
#

@fierce wrensorry to interrupt but I have a question about blockbench please

fierce wren
#

can you open a new ticket please

sharp berry
fierce wren
#

uh could you link it

sharp berry
#

it's called piglin retexture

#

#1364597862142312478

fierce wren
#

ok thanks

#

oh that's for Bedrock Edition, idk anything about that

#

I only do Java

sharp berry
#

well it's not about that

#

it's just a general question about blockbench

#

like the app

fierce wren
#

oh it's about spawning piglins without armor?

#

Bedrock edition is different enough that any knowledge I have about Java is likely not applicable

sharp berry
#

but I didn't replace the file of my old mob

fierce wren
#

Sorry but idk about that, Bedrock entity models work completely differently from Java

sharp berry
#

oh

fierce wren
#

I would try things like moving files to other folders to see what file is causing it

#

but idk any more than that

sharp berry
#

damn I think the old textures are just gone

fierce wren
#

!faq backup

empty portalBOT
# fierce wren !faq backup
FAQ
Blockbench: Backups

🖥️ The Desktop version of Blockbench (by default) creates backups of your projects every 10 minutes.
To access them, go to Help > Open Backup Folder, and search for your backup in the folder.
PS: The interval and how long old backups are kept can be changed in the Blockbench settings (File > Preference > Settings > Application).

📱 The mobile/web version (and the desktop app) saves a backup if the model wasn't saved properly before exiting the app.
You can access the backup on the start screen after reopening the app.

subtle basin
#

damn my ticket just got hijacked fr

#

😂

fierce wren
#

ikr

sharp berry
#

my bad

#

it seemed like you guys were done

subtle basin
#

@fierce wren

#

thank you for all the help man

#

finally got it to work hahahaa

#

I also found out what the issue was

#

As I thought, the placement of the blocks shouldn't matter. Even if it was like 5.0000893 on the position or something. It shouldn't affect the entire model completely.

Turns out my issue was making the model, but then what I did was instead of loading the CEM template, I instead just made the model, then like you said, created my OWN folders called "bottom" and all that other stuff.

Instead, what I should've done was load the CEM template model, copy and paste MY model into it, but it all into Bottom (it'll shift the positioning around). Then adjust the position, and then once I like it, I delete all the original boat models and textures, replacing it with my own texture.

Then in the end result I get this:

fierce wren
#

alright! glad you figure it out, looks great

subtle basin
#

hahaha, ty tho. You were a massive help man