Started by
NotUltron
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make it so it detects a specific block 2 blocks under the current block. I have been having trouble with that. I have a command that activate this procedure. Don't ask what its for but I really need help. I have tried my research but nothing seems to work.
Edited by NotUltron on Tue, 12/26/2023 - 16:34
This is an image
I have realized it was not doing it from the block position. It was doing it from the player position.
I have found a solution. I was trying to make an animated door that can be activated with a Redstone button but I was having trouble for it to work so I tried to make it so if there is a white concrete block two blocks under it then the door will animate and change to the open door. Then same the other way but with a different block. The button will also change the concrete so the door actually works.
FiX:
Since this mod was for roleplay my solution I found is that I create a command that starts a animation and then with command blocks replace it with opened door and also play the door sound.
Command: /playdoor
Function Procedure:
All the command does is animate the door and the rest is command blocks