I wanted to try to learn how to make a mirror block as an additional block to my behavior pack using a pbr texture set for use with RTX. I managed to get a regular textured block to appear in game with a little trial and error. I am new to Addons for Bedrock, and bedrock in general with all of my experience being with Java resource packs and datapacks. the Tutorial I was following didn't want to work. It had me using the minecraft:geometry component in the mirror.json block, for the block geometry and the material instance component for the texture... but if I look at other behavior packs as examples, they don't have those specified for their blocks. They look like they have nothing linking the texture to the block, so how does bedrock match textures with blocks? the structure in Java made much more sense where the models would simply link to the texture location, but here it seems like there's 10 different ways and no general consensus on the right way.
I managed to get a regularly textured block in game but I don't think it was using pbr. I deleted the mirror texture data out of the resource pack blocks.json, and the terrain.json like the RTX resource packs have it and I got the purple and black no texture block. I added back in the data in blocks.json and the terrain and realized I named my .texture_set.json wrong. Then I got the dirt/grass update block. Anybody know of any good tutorials or lessons for creating custom addon blocks?
any help, pointers, or referals to good tutorials on addon blocks would greatly be appreciated, thanks.
Surprisingly it seems to work just fine now with what I had. I loaded it up to play with making another block, and my mirror was fully reflective. I think I ran out of time when I was trying to figure it out and made one last change untested before posting here. So it is good to know that you totally can use PBR materials on custom blocks seemingly the exact same way you would use a regular texture except you have the .texture_set.json by the textures too. somehow minecraft sees the .texture_set.json and applies it instead of just using the regular png.
I wanted to try to learn how to make a mirror block as an additional block to my behavior pack using a pbr texture set for use with RTX. I managed to get a regular textured block to appear in game with a little trial and error. I am new to Addons for Bedrock, and bedrock in general with all of my experience being with Java resource packs and datapacks. the Tutorial I was following didn't want to work. It had me using the minecraft:geometry component in the mirror.json block, for the block geometry and the material instance component for the texture... but if I look at other behavior packs as examples, they don't have those specified for their blocks. They look like they have nothing linking the texture to the block, so how does bedrock match textures with blocks? the structure in Java made much more sense where the models would simply link to the texture location, but here it seems like there's 10 different ways and no general consensus on the right way.
I managed to get a regularly textured block in game but I don't think it was using pbr. I deleted the mirror texture data out of the resource pack blocks.json, and the terrain.json like the RTX resource packs have it and I got the purple and black no texture block. I added back in the data in blocks.json and the terrain and realized I named my .texture_set.json wrong. Then I got the dirt/grass update block. Anybody know of any good tutorials or lessons for creating custom addon blocks?
this is my block mirror.json
this is my behavior pack manifest.json
resource pack blocks.json
terrain_textures.json
mirror.texture_set.json:
any help, pointers, or referals to good tutorials on addon blocks would greatly be appreciated, thanks.Surprisingly it seems to work just fine now with what I had. I loaded it up to play with making another block, and my mirror was fully reflective. I think I ran out of time when I was trying to figure it out and made one last change untested before posting here. So it is good to know that you totally can use PBR materials on custom blocks seemingly the exact same way you would use a regular texture except you have the .texture_set.json by the textures too. somehow minecraft sees the .texture_set.json and applies it instead of just using the regular png.