#help in block interactions and rotations
1 messages · Page 1 of 1 (latest)
I think the issue is that when you place the bottom door with the /setblock command, it triggers its setup event. You could potentially change the setblock command in the setup to be in keep mode, and then destroy the bottom door block if there's no top door above it
What part of it do you not know how to do?
Look at this video, @cinder lily
I mean what part of what I said
I've watched the video
and looked at the code
I was just wondering what part of my potential solution is confusing
Part of setblock command
Ah. You'd just do setblock ~ ~1 ~ template:custom_door_top_block keep
Ah okay when I interact and that block can interact?
@cinder lily It worked and now the problem is how I interact with the rotated block
Here is the video:
What's the issue here? It seems to be working fine
I need to know how I internet when the block rotated?
Because before I add rotation it in block
help in block interactions and rotations
It seems to be intractable when rotated from the video though
@buoyant garnet
Ah. You should be able to incorporate the block state for rotation into your block to get it to line up with the vanilla door
How I do that?
I don't know the exact details. I was just giving you an idea tobwork off of. Probably something with more permutations or minecraft:transformation
here's the logic of how i made my own door{ // opening event "condition": "!q.block_state('your_door_state') && q.block_state('minecraft:cardinal_direction') == 'north'", "set_block_state": { "your_door_state": true }, "set_block_at_pos": { "block_type": { "name": "your_door_identifier", "states": { "minecraft:cardinal_direction": "north", "your_door_state": true } }, "block_offset": [0, 1, 0] } },change the cardinal direction for each direction of course
// closing event
"condition": "q.block_state('your_door_state') && q.block_state('minecraft:cardinal_direction') == 'north'",
"set_block_state": {
"your_door_state": false
},
"set_block_at_pos": {
"block_type": {
"name": "your_door_identifier",
"states": {
"minecraft:cardinal_direction": "north",
"your_door_state": false
}
},
"block_offset": [0, 1, 0]
}
},``` repeat the process
hope this will help you to create your own door
And it worked now
no