#model data working one day but not the next

1 messages · Page 1 of 1 (latest)

jade owlBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1738011754:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

teal birch
#

For more context:

I was making a custom block and I was like.. oh I must've done smth wrong the texture and model aren't loading, then I was like lets see if voidsteel (the model I made yesterday works) low and behold its not working either

#

all I did was move the resource pack to a different minecraft installation

#

and I used the exact same command to give myself the item

#

and both the new custom block and the item i made yesterday aren't loading

#

i've checked the texture locations, item/model definition file, and the actual model file itself

#

nothing...

#

OOH UPDATE: I just checked a custom item which uses a texture as a model (still [item_model=...] just a png instead of a blockbench model

#

and it loaded fine

#

so its just .json models that aren't loading

sly raptor
#

Show your work

teal birch
#

idk why in my brain i thought i could avoid this

teal birch
sly raptor
#

Code blocks, please

teal birch
#

:/ ok

#

just putting this here for copy

sly raptor
#

Ok, and what's the item_model component on the item look like?

teal birch
#

...i fixed one of them `

#

i'm listing the custom block

#

brace yourself

#

Veil Hunters\Datapacks\veilitems\data\minecraft\tags\function

#

load.json

{
    "values": [
    "veilitem:void_forge/load"
    ]
}
#

tick.json

{
    "values": [
    "veilitem:void_forge/main"
    ]
}
#

Veil Hunters\Datapacks\veilitems\data\veilitem\function\void_forge

#

load.mcfunction

give @p item_frame[item_model="veilhunter:void_forge/void_forge",entity_data={id:"minecraft:item_frame",Item:{id:"minecraft:glow_item_frame",count:1},Fixed:1b,Invisible:1b,Silent:1b,Invulnerable:1b,Tags:["void_forge"]}] 1
#

main.mcfunction

execute as @e[type=minecraft:glow_item_frame,tag=void_forge,tag=!placed] at @s run function veilitem:void_forge/mechanics/place
execute as @e[type=minecraft:glow_item_frame,tag=void_forge,tag=placed] at @s unless block ~ ~ ~ minecraft:dropper run function veilitem:void_forge/mechanics/remove
#

Veil Hunters\Datapacks\veilitems\data\veilitem\function\veil_forge\mechanics

#

place.mcfunction

setblock ~ ~ ~ minecraft:dropper
playsound veilhunter:block.void_forge.place block @a[distance=0..3] ~ ~ ~
particle minecraft:soul_fire_flame ~ ~ ~ 0 0 0 1 10
tag @s add placed
#

remove.mcfunction

summon item ~ ~0.5 ~ {CustomNameVisible:1b,CustomName:'"Void Forge"',Item:{id:"minecraft:glow_item_frame",count:1,components:{"minecraft:entity_data":{id:"minecraft:glow_item_frame",Fixed:1b,Invisible:1b,Silent:1b,Invulnerable:1b,Tags:["void_forge"]},"minecraft:item_model":"veilhunter:void_forge/void_forge"}}}
kill @e[type=item,nbt={Item:{id:"minecraft:dropper"}},distance=0..2,sort=nearest,limit=1]
kill @s
#

@sly raptor sorry for ping... solved the model issue it was incorrect naming of a file, however could you help with the custom block

#

as i've done something wrong/I incorrectly ported something from 1.16

sly raptor
#

What in the world is all this for now?

sly raptor
teal birch
#

bc my keyboard doesnt have a code block key

sly raptor
#

I didn't ask for it though, you just decided to drop a bunch of stuff on me

teal birch
#

so i have to copy the key each time

sly raptor
#

That's absurd

teal birch
#

not on you necessarily

sly raptor
#

It shouldn't take 15 minutes to do that. Here, copy this into a notepad ```

teal birch
#

and it was originally related to the issue

#

before i solved it myself

sly raptor
#

No, this is something new. I'm not arguing with you here

#

Resolve this thread, open a new one if you have another issue.

teal birch
#

hence why i pasted the code for the custom block

#

because thats where the model is called in the component item _model

jade owlBOT
teal birch
#

but then as mentioned i solved it

teal birch
sly raptor
#

I am not arguing with you here. This is a new issue

sly raptor
#

New issue, new thread

jade owlBOT
#
Question Closed

Your question, #1333535139212558456 (model data working one day but not the next), was resolved!

Original Message

#1333535139212558456 message

Duration open

1h4m

teal birch
#

to avoid me spending ages copying it over

#

but luckily it allowed me to copy with the code blocks

sly raptor
#

But the thread has gone on long enough that there is extraneous detail here that makes it harder to help, so as to determine it isn't important to the problem at hand

teal birch
#

and im not overexaggerating on how long it takes because right at the start of the thread i sent this

#

i wouldn't have said that

sly raptor
#

Additionally, starting a new thread has the benefit of pinging helpers again, which is especially useful as this is data pack related now, rather than purely a resource pack issue

teal birch
#

if it wasn't painful

sly raptor
#

I do not care

teal birch
sly raptor
#

If you need help, ask for it

teal birch