#Help
1 messages · Page 1 of 1 (latest)
?rotatable blocks
Remove the minecraft:rotation component from your components block
didnt work
are you receiving any content log error from this file?
nope
im confused
I see nothing wrong so far... It looks almost identical to the template given in wiki, which works...
where are your material instances? how are you sure that there is no rotation if you have no texture?
you need material instances here to provide that texture to your block
how do i do that
im confused by that
If you directly use the code in the rotatable blocks wiki page, you'll see how the block rotates... I recommend you using it and adding the components you need to fully accomplish whatever you want to.
cvonfusion
sorry i dont understand it
What do you don't understand
what ur saying to do
Change the format version to "format_version": "1.16.100" inside the blocks.json
Where are you working on this pack, in the development folders or the main folders?
If you are in the main folders, you will need to exit the game each change, if in the dev folders, you only need to exit the world and go back in to see changes. Working in the main folders can also lead to caching issues and you will not see changes sometimes... that is why I ask.
Your code looks ok and should work. I will take it into my Help Desk add-on to see if any other issues. Is the above the latest changes? If not, repost the BP file.
your blocks.json entry is overriding the rotation
Apparently, blocks.json saying which is north/south/etc comes after your permutation, whereas, if you define the material instance inside the block, it is applied and then the rotation is done....
adding this workedjson "minecraft:material_instances": { "*": {"texture": "chest_inventory_side","render_method": "opaque","ambient_occlusion": false,"face_dimming": false}, "up": {"texture":"chest_inventory_top","render_method": "opaque","ambient_occlusion": false,"face_dimming": false}, "south": {"texture":"chest_inventory_front","render_method": "opaque","ambient_occlusion": false,"face_dimming": false}, "down": {"texture":"chest_inventory_top","render_method": "opaque","ambient_occlusion": false,"face_dimming": false} },
Here the directions are relative to the player, the side facing the player is south, for the material instances, like if you did not know which way you were facing, any directions, the far side of the block is north, the closest to you is south, west is left side and east is right. Even I did not know that, we usually just put these material instances in the permutations.. so I just learned something new troubleshooting your block.
deveploment
caps lock sorrry
Be sure to rename that blocks.json entry so that it does not conflict with the material instance in side the block bp file
Thank you for helping him. ❤️
i don’t get what you mean
if you name it the same as your block, it applies to the block. we do not want that, you are defining this inside of the block for the reasons I listed above
In case it is not clear, put that code for the material instance in side the block code components
sorry im going to try now
so what do i name it?
does this go in the block.json
Does not matter, you will not use it, can delete, but just add a number to it or something to keep in case you need later
so i renam my block.json file?
No. Look at the picture I sent, what am I pointing to?
the identfier
Yes. If you have it as the same name, the block uses it. So we do not want the block to use it, so rename it.
okay
We want the block to use the material instance I told you to add
The material instance is a component. It goes in the block's component section
so the bp
yes
so this?
Yes. Test it
yes
and if you find you never need that again, delete out of there. when testing, just rename until you are sure
it worked tahnkyou

thank you so much