#help in block interactions and rotations

1 messages · Page 1 of 1 (latest)

snow bridge
cinder lily
#

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

snow bridge
#

How do I do that?

#

@cinder lily

cinder lily
#

What part of it do you not know how to do?

snow bridge
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

cinder lily
#

Ah. You'd just do setblock ~ ~1 ~ template:custom_door_top_block keep

snow bridge
#

Ah okay when I interact and that block can interact?

cinder lily
#

What's the issue here? It seems to be working fine

snow bridge
#

I need to know how I internet when the block rotated?

#

Because before I add rotation it in block

snow bridge
#

help in block interactions and rotations

cinder lily
#

It seems to be intractable when rotated from the video though

snow bridge
#

@buoyant garnet

snow bridge
cinder lily
#

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

cinder lily
#

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

snow bridge
#

I added rotation but look what happen

past tartan
#

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

snow bridge
#

Interesting okay thank

#

@past tartan can I use randomize event?

snow bridge