#Can anyone see why several of my blocks are appearing as "update" blocks?

1 messages · Page 1 of 1 (latest)

inner turtle
#

Was adding some more ores to my add-on and they're all showing up as update blocks. Not really sure why, I pretty much copy pasted the stuff I'm already using for several other blocks and modified names, components, etc.

brave glen
#

Is it bc there's no material instances or unit cube?

inner turtle
#

I don't think those are necessary for custom block textures to show up

#

at least my other ores don't have them at all

brave glen
#

Weird, mines usually need unit cube and material instances

#

So everything is the same except identifiers then huh?

inner turtle
#

I was honestly a little confused looking at this, not sure how the block pulls the texture from terrain_texture.json

#

The texture isn't really referenced anywhere

#

unless it just takes the part after the identifier

brave glen
#

??? You're not even using a blocks.json?

uneven nebulaBOT
inner turtle
#

blocks.json isn't a requirement

#

this is all that's in mine and I'm even removing that here soon

brave glen
#

Wait then how are your blocks getting the textures then wtf?

inner turtle
#

uhh

brave glen
#

(╯°□°)╯︵ ┻━┻

inner turtle
#

it's not an issue with the textures at all

#

modified another blocks texture and it worked just ifne

brave glen
#

Wha? Huh??? Bedrock???

inner turtle
#

Idk, I've never needed to identify anything in blocks.json

brave glen
#

Neither have I, i used material instances

inner turtle
#

never really needed those either

#

I am using them in a few blocks

brave glen
#

Then how? Wha?? Huh???

inner turtle
#

but I'm not really sure why I'm using them tbh

brave glen
#

Can you rty it at least?

inner turtle
#
"minecraft:material_instances": {
                "*": {
                    "texture": "gemstone_ore_block"
                }
            },```
#

should just be this, right?

brave glen
#

Yes

#

You might also need unit cube

inner turtle
#

never seen that component in my entire life

#

?unit_cube

#

?unit cube

#

excuse me

#

why did you get permission for FAQ bot in forums

brave glen
#

😵‍💫 I am now baffled how you made blocks

inner turtle
#

is it just minecraft:unit_cube

#

and nothing?

#

oh hey! it worked!

#

But then..

#

Why have any of my blocks worked

gloomy laurel
# inner turtle

Now it's gonna disappear if ur too far, then it's gonna unload.

#

Quick tip: use blocks.json for ur block textures and/maybe add material_instances too, then it won't unload if ur far cuz u are not using a model.

PS: unit_cube counts as a block model.

inner turtle
#

what

gloomy laurel
#

Wdym what? That's how unit cubes work

#

It's hard to explain, but block persons know what I am trying to say.

idle wren
#

It acts like a normal block with opaque

red glade
#

@inner turtle You have to use either blocks.json or the material_instances{} component to set block textures, otherwise the block has nowhere to pull textures from. I'm certain that your blocks used to work because you had them defined in blocks.json, or you were pulling them from, or using, another addon in your world that did define the textures.

You cannot make blocks with textures without one or the other.

Using the material_instances{} component is the easier and more typical way to do it, as blocks.json is more or less depreciated, although it still has some uses.

inner turtle
#

I never did though

#

They're just working without anything

red glade
#

I very much doubt that. Either you had an addon active in the world you tested on that had matching texture path references (did you use another addon to copypasta from to build off of/learn from?) or you had blocks.json defined and accidentally deleted it by mistake somehow.

There's no way that your blocks were magically pulling textures on their own. Straight up.

inner turtle
#

I did not, I've only ever had my one addon on any world

#

I have about 60 blocks with no blocks.json references and no material instances that all work fine

red glade
#

Would you be willing to show us? Like, via an upload or something? If what you're saying truly is the case, then I'd be very interested in seeing it firsthand and determining what kind of inheritance shenanigans are being used to make it work.

gloomy laurel
inner turtle