How can you detect when a player is on top of a block?

Started by ------- on

Topic category: Help with MCreator software

Active 12 months ago
Joined Jul 2021
Points:
673

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
How can you detect when a player is on top of a block?
Tue, 03/01/2022 - 20:14 (edited)

Hi! I wanted to make a mod where there is a block that hurts you when you are on top of it, the problem is that when i use when player collides with block it hurts you also when you touch it in the sides, and i dont want that, what can i do?

 

PD: sorry for the bad english

Edited by ------- on Tue, 03/01/2022 - 20:14
Active 1 year ago
Joined Mar 2020
Points:
772

User statistics:

  • Modifications: 2
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 138
 Maybe You Could Use {When…
Tue, 03/01/2022 - 21:46

 Maybe You Could Use {When entity walks on block} then copy the procedure on the trigger '-'

Active 12 months ago
Joined Jul 2021
Points:
673

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
Thanks! I will try
Tue, 03/01/2022 - 21:52

Thanks! I will try