You use the procedure system:
place a if block [Found in logic and loops] underneath Event trigger
then insert ❏ == ❏ [Found in logic operations] on the left of it
After that insert the ❏ block [in Minecraft Components] into the first slot and select the block you want
After that get "get block at x: y: z: ❏ and insert it on the second slot
you can for example: put (Under Math) y - 1 (you find the y in minecraft components) and insert it into the y: slot this would check for the block underneath the player
Then insert the action you want into do (for example: Add potion effect [Under Player Management] with level and duration to provided player) this would give a potion effect to the player if he is standing on the block [I hope you understood this!]
You use the procedure system:
place a if block [Found in logic and loops] underneath Event trigger
then insert ❏ == ❏ [Found in logic operations] on the left of it
After that insert the ❏ block [in Minecraft Components] into the first slot and select the block you want
After that get "get block at x: y: z: ❏ and insert it on the second slot
you can for example: put (Under Math) y - 1 (you find the y in minecraft components) and insert it into the y: slot this would check for the block underneath the player
Then insert the action you want into do (for example: Add potion effect [Under Player Management] with level and duration to provided player) this would give a potion effect to the player if he is standing on the block [I hope you understood this!]
thanks