How do I make a motion sensor block?

Started by Polar404 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a motion sensor block?

I would like to know how to make a block that detects the movement of any entity that passes in front of its front facet (imagine the same as the observer's face), as a consequence, emitting redstone energy to its back facet (imagine the same as the observer's back , which emit energy when they notice a block change).

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm that might be a little…
Tue, 03/19/2024 - 12:18

Hmm that might be a little hard, what you could do is to Directional blocks to check in what direction the block is facing and then getting the offset X, Y & Z cords and then using any of the entity blocks using square cube checks like the "Does entity exist at" and setting the size to 1 and the location to the directional offset. 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I might be a little confused…
Sat, 03/23/2024 - 20:08

I might be a little confused about how to do these things you just told me lol

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make this:   Change…
Thu, 01/30/2025 - 17:17

You can make this:

 

Change the x, y and z values accordingly with the direction where you want to detect.

Andd change the amount of repetitions accordingly with the distance.