#i Need Help With an animated Model (1.21.3)

75 messages ยท Page 1 of 1 (latest)

versed quiverBOT
#
Conflicting tags detected

It looks like you have applied tags to this post that conflict. Please only apply the tags that are relevant to your post. We can only help you if we know the context of your question, and applying incorrect tags makes this confusing.

You can refer to #1029373817119838218 for a description of what each tag is for!

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.

#

<:e:1311744042664726618>

loud rover
#

in a good or in a bad way ๐Ÿค” ?

clever elbow
#

in a bad way, The animation aint working

#

everything else works just fine with custom model data

#

the animation is 10 frames and none show up

loud rover
#

It works fine for me in Blockbench.
Does it work for you in Blockbench too?

clever elbow
#

yeah but i meant ingame

loud rover
#

is there an ohio.png.mcmeta file in the same folder as the ohio.png?

clever elbow
#

yup

#

{
"animation": {
"frametime": 2
}
}

#

uhm i now see the mistake i guess

loud rover
#

what's the mistake?

clever elbow
#

i think that theres no order for the animation to play

loud rover
#

if nothing is specified it just goes from frame 0 to the last frame in order

#

(and then repeats again and again)

clever elbow
#

it should loop

#

{
"animation": {
"frametime":5,
"frames": [
1,
2,
3,
4,
5
]
}

#

From a tutorial but i think that doesnt work also

loud rover
clever elbow
#

hmm

#

then idk whats wrong

loud rover
#

your issue is not that it doesn't animate, your issue is that the game cannot find or load your texture

#

can you open your .json model in a text editor and show the first couple lines of text?

clever elbow
#

kk

#

{
"format_version": "1.9.0",
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"1": "block/custom/ohio",
"2": "block/custom/crystalschwert",
"particle": "block/custom/crystalschwert"
},
"elements": [
{
"from": [8, 9.5, 8],
"to": [10, 11.5, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 10, 14]},
"faces": {
"north": {"uv": [7, 6, 8, 7], "texture": "#2"},
"east": {"uv": [7, 7, 8, 8], "texture": "#2"},
"south": {"uv": [8, 0, 9, 1], "texture": "#2"},
"west": {"uv": [8, 1, 9, 2], "texture": "#2"},
"up": {"uv": [9, 3, 8, 2], "texture": "#2"},
"down": {"uv": [9, 3, 8, 4], "texture": "#2"}
}
},
{

loud rover
#

and ohio.png and ohio.png.mcmeta are both in the same folder as crystalschwert?

clever elbow
#

yes

loud rover
#

actually, why is your ohio.png 32x300 ๐Ÿค” ?
300 is not (cleanly) divisible by 32

clever elbow
#

hmm Wait a minute

loud rover
#

if it's meant to be 10 frames it needs to be 32x320
if it's meant to be 9 frames it needs to be 32x288

clever elbow
#

oh

loud rover
#

unless your frames are not meant to be square

#

in which case you need to define the height and width in your mcmeta file

clever elbow
#

mhh and what should this look like?

loud rover
#
{
    "width": 32,
    "height": 30,
    "animation": {
        "frametime": 2
    }
}```
clever elbow
#

hm still doesnt work properly

loud rover
#

still error texture ingame?
if yes:

#

!faq output-log

versed quiverBOT
# loud rover !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).

clever elbow
#

hm?

#

im so lost With this pedro_pascal

loud rover
#

the output log will tell you what problem Minecraft has with the texture/model

clever elbow
#

Ohh ok

#

Missing block model: 'minecraft:item/custom/schwert'
,
Missing textures in model minecraft:custom/aether-totem#inventory:
minecraft:textures/atlas/blocks.png:minecraft:block/custom/aether-totem
,
Missing textures in model minecraft:netherite_sword#inventory:
minecraft:textures/atlas/blocks.png:minecraft:block/custom/ohio

#

I still dont know Whats Wrong

#

Image minecraft:block/custom/ohio size 32,300 is not multiple of frame size 32,32

loud rover
clever elbow
#

i put it in the mc.meta

loud rover
#

oh wait, I put it in the root

#

should be:

{
    "animation": {
        "width": 32,
        "height": 30,
        "frametime": 2
    }
}``` instead, my bad
clever elbow
#

Thank You SOO Much this helps me soo much for my Server bblike

#

but this is still a weird glitch c.c

#

thats Weird if it doesnt have custom model data that the display stuff is messed up yoshi_what

#

do you know how to fix this?

clever elbow
loud rover
clever elbow
#

Mh okay and I could fix it with item-generated right?

loud rover
#

?

#

I'm saying you are currently specifying item/generated.
But it should be item/handheld

clever elbow
#

{"parent": "item/generated","textures": {"layer0": "item/netherite_sword"},"overrides":

[

{ "predicate": {"custom_model_data": 1}, "model": "item/custom/schwert"},

{ "predicate": {"custom_model_data": 2}, "model": "item/custom/crystal-schwert-v1"}

]}

#

So to just replace it

#

?

clever elbow
clever elbow
#

{"parent": "item/handheld","textures": {"layer0": "item/fishing_rod"},"overrides":

[

{ "predicate": {"custom_model_data": 1}, "model": "item/custom/crystalangel"},

{ "predicate": {"custom_model_data": 2}, "model": "item/custom/lol"}

]}

#

@loud rover The Fishing rod model is backwards, Any idea Why?

loud rover
#

Because fishing rods have their own parent
always a good idea to check the default item model to see what needs to be before the custom_model_data overrides/predicates section

clever elbow
#

ok

#

{
"parent": "item/handheld_rod",
"textures": {
"layer0": "item/fishing_rod"
},
"overrides": [
{
"predicate": {
"cast": 1
},
"model": "item/fishing_rod_cast"
}
]
}

#

could something like this work?

loud rover
#

well, if you wanna mix it with custom_model_data it would look something like this:

{
  "parent": "item/handheld_rod",
  "textures": {
    "layer0": "item/fishing_rod"
  },
  "overrides": [
    { "predicate": {"cast": 1 }, "model": "item/fishing_rod_cast"},
    { "predicate": {"custom_model_data": 1}, "model": "item/custom/crystalangel"},
    { "predicate": {"custom_model_data": 1, "cast": 1}, "model": "item/custom/crystalangel_cast"},
    { "predicate": {"custom_model_data": 2}, "model": "item/custom/lol"}
  ]
}```
I gave your crystalangel an example how to tell it to swap the model if it's your custom model and cast, but it's not a requirement to have that line.
#

1.21.4 item_model stuff definitely made stuff like this easier (since you don't need to merge your custom stuff with default files)

clever elbow
#

kk thx