#Help

1 messages · Page 1 of 1 (latest)

swift kettle
#

My block only places in one direction i need help for example a chest

#

i want it to be places in a differnt direction please help

cursive lark
#

?rotatable blocks

chrome karmaBOT
swift kettle
cursive lark
#

Remove the minecraft:rotation component from your components block

cursive lark
#

are you receiving any content log error from this file?

swift kettle
cursive lark
#

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?

swift kettle
cursive lark
# swift kettle

you need material instances here to provide that texture to your block

swift kettle
#

how do i do that

cursive lark
swift kettle
#

im confused by that

cursive lark
#

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.

swift kettle
#

cvonfusion

cursive lark
#

What do you don't understand

swift kettle
#

what ur saying to do

wet linden
#

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.

wet linden
#

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.

swift kettle
#

caps lock sorrry

wet linden
#

Be sure to rename that blocks.json entry so that it does not conflict with the material instance in side the block bp file

uncut apex
wet linden
#

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

swift kettle
#

sorry im going to try now

swift kettle
wet linden
#

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

swift kettle
#

so i renam my block.json file?

wet linden
#

No. Look at the picture I sent, what am I pointing to?

swift kettle
#

the identfier

wet linden
#

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.

swift kettle
#

okay

wet linden
#

We want the block to use the material instance I told you to add

swift kettle
#

do i add taht in the block.json?

#

or in the behaviour pack

wet linden
#

The material instance is a component. It goes in the block's component section

swift kettle
#

so the bp

wet linden
#

yes

swift kettle
swift kettle
wet linden
#

Yes. Test it

swift kettle
wet linden
#

yes

#

and if you find you never need that again, delete out of there. when testing, just rename until you are sure

swift kettle
#

it worked tahnkyou

wet linden
swift kettle
#

thank you so much