How to reach the block that is below the player

Started by daneloy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to reach the block that is below the player


I need to detect if below the block my player is on is a specific block and if so, something happens.

https://imgur.com/a/TkrNSG2

I want to do something like this: When the event is triggered, the block will emit a resdstone signal and light the lamp that will be on top of it, making a bright carpet when the player walks on it. Similar to 1.19 shulk sensor.
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Something like this: Just…
Wed, 03/15/2023 - 21:04

Something like this:

Just replace the message with whatever you want to happen when the specific block is under.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ty. It worked!
Thu, 03/16/2023 - 01:26

Ty. It worked!

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Great to hear! Good luck…
Thu, 03/16/2023 - 11:47

Great to hear! Good luck with the mod